#[SOLVED] How do I logout of a session and return to my DM through the terminal

50 messages · Page 1 of 1 (latest)

lethal island
#

Basically gnome-session-quit but without gnome

#

loginctl terminate-user $USERleaves me on a black screen with a blinking underline and no ability to interact

#

same for loginctl terminate-session $XDG_SESSION_ID

#

exit, logout and ctrl + D all just close the window instead of logging me out

lethal island
#

hyprland

#

ik theres just the exit bind

#

but im trying to get a terminal command so i can use it in wlogout

gritty inlet
#

probably just kill hyprland

lethal mesa
#

From a quick read of the documentation, hyprctl dispatch exit might work.

#

@lethal island

lethal island
#

that logs me out but does not send me to my DM

#

i lose any ability to interact with my pc

#

and have to reboot it

lethal mesa
#

Huh

#

Weird

#

Maybe check what the exit keybind runs

lethal island
lethal mesa
#

So the same thing

#

That’s quite weird

lethal island
#

yeah

#

the problem is nothing i try brings me to sddm

#

and all of them result in no ability to interact

lethal mesa
lethal island
#

the only thing thats worked is setting a hyprland keybind to exit

#

but im trying to get it working under wlogout so i have more options than exit

lethal mesa
#

That’s simply bizarre. I’ve got nothing.

lethal island
#

this when uncommented brings me back out to sddm no issues

#

but i want the options like if i was using a DE

#

because its much more convenient to have a gui with all my power options than typing a command or having 6 keybinds

lethal mesa
#

You could have the button run the keybind or something

#

Like when you press log out it emulates a Mod + Shift + E, though I don’t know how practical that is on Wayland

lethal island
#

mmm ill try that

#

idk if itll work though

#

im pretty sure the action in the config has to be a terminal command

#

is there a way to have the terminal execute specifc inputs?

lethal mesa
lethal island
#

zamn 😔

#

ig in theory i could just have 6 binds

#

but that is exceedingly lame

frozen leaf
#

hyprctl quit

lethal mesa
lethal mesa
frozen leaf
#

jts dispatch quit

lethal mesa
#

That doesn’t exist according to the documentation

lethal island
#

hyprland dispatch exit suddenly works

#

i tried it in the terminal instead of in wlogout and it worked

#

tried it again in wlogout and it works

#

idfk man