Thursday, May 9, 2024
9
rated 0 times [  9] [ 0]  / answers: 1 / hits: 11282  / 3 Years ago, thu, october 7, 2021, 5:37:41

When I click on the exit icon there is a suspend option. When I click this the computer suspends, which works really well. I want to create a custom key mapping on the suspend command XK86Sleep (ThinkPad sleep button) which I can create using the keyboard settings.



I have seen pm-suspend from numerous sources, but this requires root and so does not work. What command does XFCE use when pressing the Suspend option through the UI as described above?



XFCE 4.8, Ubuntu 12.04, ThinkPad T60


More From » command-line

 Answers
6

Try using this for the command



xfce4-session-logout -s


man xfce4-session-logout




The xfce4-session-logout command allows you to programmatically
logout
from your Xfce session. It requests the session manager to display the
logout confirmation screen, or, if given one of the command-line
options below, causes the session manager to take the requested action
immediately.



--suspend
Suspend without displaying the logout dialog



[#36819] Saturday, October 9, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
lintical

Total Points: 344
Total Questions: 122
Total Answers: 106

Location: Sint Maarten
Member since Mon, Oct 12, 2020
4 Years ago
;