include polkit-gnome in default autorun to allow suspend to work

This commit is contained in:
Izaya 2022-09-07 09:51:21 +10:00
parent 6e97e4b0fe
commit 03ccc408b0
2 changed files with 4 additions and 0 deletions

View File

@ -7,3 +7,4 @@ mmsdtng &
nm-applet & nm-applet &
pasystray & pasystray &
xfce4-power-manager & xfce4-power-manager &
/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 &

3
rc.lua
View File

@ -22,6 +22,9 @@ vkbd.init("ansi")
function powermenu.suspend() function powermenu.suspend()
awful.spawn("dbus-send --system --print-reply --dest=org.freedesktop.login1 /org/freedesktop/login1 org.freedesktop.login1.Manager.Suspend boolean:true") awful.spawn("dbus-send --system --print-reply --dest=org.freedesktop.login1 /org/freedesktop/login1 org.freedesktop.login1.Manager.Suspend boolean:true")
end end
function powermenu.poweroff()
awful.spawn("dbus-send --system --print-reply --dest=org.freedesktop.login1 /org/freedesktop/login1 org.freedesktop.login1.Manager.PowerOff boolean:true")
end
-- {{{ Error handling -- {{{ Error handling
-- Check if awesome encountered an error during startup and fell back to -- Check if awesome encountered an error during startup and fell back to