Logout, suspend, restart, shutdown [Solved]

Post Reply
Message
Author
Torque
Posts: 3
Joined: Mon Mar 04, 2019 12:29 pm

Logout, suspend, restart, shutdown [Solved]

#1 Post by Torque »

I can't find the links or scripts for Xfce Action button in /usr/bin or /usr/sbin.
I am thinking of setting up Pekwm and want to hook Suspend, Restart etc to function keys.

Code: Select all

KeyPress = "F6" { Actions = "exit" } 
	Keypress = "F7" {Actions = "Exec systemctl reboot" }
        Keypress = "F8" {Actions = "Exec systemctl poweroff" }
        KeyPress = "F5" { Actions = "Exec systemctl suspend" }
The above is for systemd.
If I could just summon with one key the shutdown etc box that Xfce does with the action button that would be fine.
Last edited by Torque on Tue Mar 05, 2019 6:11 pm, edited 1 time in total.

User avatar
dolphin_oracle
Developer
Posts: 20024
Joined: Sun Dec 16, 2007 1:17 pm

Re: Logout, suspend, restart, shutdown

#2 Post by dolphin_oracle »

the xfce logout menu is

Code: Select all

/usr/bin/xfce4-session-logout
but that probably won't run without Xfce session running.

you could use the classic commands for shutdown and reboot

Code: Select all

halt
reboot
I don't know what the one for suspend is.
http://www.youtube.com/runwiththedolphin
lenovo ThinkPad X1 Extreme Gen 4 - MX-23
FYI: mx "test" repo is not the same thing as debian testing repo.

Torque
Posts: 3
Joined: Mon Mar 04, 2019 12:29 pm

Re: Logout, suspend, restart, shutdown

#3 Post by Torque »

dolphin oracle
As you suspected the xfce4 session logout doesn't work in Pekwm. I think I can manage everything but Suspend and I think there must be code for this somewhere?
Thanks

Vincent17
Posts: 75
Joined: Tue Feb 20, 2018 1:07 am

Re: Logout, suspend, restart, shutdown

#4 Post by Vincent17 »

As I found out here, there are lots of shutdown commands. For suspend, there are also sudo pm-suspend and systemctl suspend. HTH

Torque
Posts: 3
Joined: Mon Mar 04, 2019 12:29 pm

Re: Logout, suspend, restart, shutdown

#5 Post by Torque »

I have sudo pm-suspend working in Pekwm now.
Thanks.

Post Reply

Return to “XFCE Desktop Environment”