i3-and-kde-plasma
i3-and-kde-plasma copied to clipboard
Command to shutdown the screen is not working
Hi Alexander,
Thank you for posting your config!
However, this bindsym doesn't work for me:
bindsym $mod+Shift+e exec --no-startup-id qdbus org.kde.ksmserver /KSMServer org.kde.KSMServerInterface.logout -1 -1 -1
If I execute this command in the terminal:
qdbus org.kde.ksmserver /KSMServer org.kde.KSMServerInterface.logout -1 -1 -1
I get this error:
Cannot find 'org.kde.KSMServerInterface.logout' in object /KSMServer at org.kde.ksmserver
I tried under Kubuntu 19.04 with i3 4.16.1 and Kubuntu 20.04 with 4.17.1.
Did you find a workaround?
Lucas
I have found a discussion where it seems to be the case that on KDE 5, the command has apparently changed a little bit.
If you get it to work, feel free to create a pull request!
Thanks for the link but this doesn't help... I hope somebody will find the solution.
after some reading I got it to work by changing qdbus
to qdbus-qt5
@rafaelkallis I tried that but it's not working
According to StackOverflow, this is the new interface:
qdbus org.kde.Shutdown /Shutdown logout
qdbus org.kde.Shutdown /Shutdown logoutAndReboot
qdbus org.kde.Shutdown /Shutdown logoutAndShutdown
But this will apply the action immediately. It is not clear how to display the confirmation menu