dotfiles icon indicating copy to clipboard operation
dotfiles copied to clipboard

Ending the X-Session

Open se7kn8 opened this issue 6 years ago • 7 comments

(first: I really like this project)

Problem:

If I exit i3 via mod+shift+e it gets closed, but not the KDE-Environment. Is there any way to also close the KDE-Environment?

se7kn8 avatar Jan 20 '19 18:01 se7kn8

Thank you! Glad you are enjoying this!

I think you can rebind what $mod+Shift+e does. So

bindsym $mod+Shift+e exit

will exit i3. With ; you can execute multiple commands. Something like this should work:

bindsym $mod+Shift+e exit; killall plasmashell

avivace avatar Jan 20 '19 18:01 avivace

Thanks for the fast answer! killall plasmashell just kills the overlay of the kde-environment, but it doesn't stop the x-session.

se7kn8 avatar Jan 21 '19 20:01 se7kn8

Unsure if this has been resolved but i did this ;killall ksmserver but im using the i3 nagbar so it may work slightly differently. but just killing plasmashell didnt do enough for me. Just figured id post what i found worked

popcorn9499 avatar Feb 09 '19 22:02 popcorn9499

Thank you for the contribution, @popcorn9499! This isn't resolved because AFAIK the X Session must be stopped by whom started it (e.g. the login manager) so a general solution is very much appreciated.

avivace avatar Feb 09 '19 23:02 avivace

Ya when i get a chance I will find a proper solution that is more graceful but that worked for the time being i figured. Better than getting stuck everytime in between closed and not closed. I will let you know what my solution ends up being

popcorn9499 avatar Feb 10 '19 14:02 popcorn9499

I was able to end x (logout) using the following command which also closes i3: qdbus org.kde.ksmserver /KSMServer logout 0 3 3

casey-miller avatar Dec 08 '19 19:12 casey-miller

I was able to end x (logout) using the following command which also closes i3: qdbus org.kde.ksmserver /KSMServer logout 0 3 3

Does this fix it for you? @popcorn9499 @SE7-KN8

avivace avatar Dec 17 '19 12:12 avivace