include polkit-gnome in default autorun to allow suspend to work
This commit is contained in:
parent
6e97e4b0fe
commit
03ccc408b0
@ -7,3 +7,4 @@ mmsdtng &
|
||||
nm-applet &
|
||||
pasystray &
|
||||
xfce4-power-manager &
|
||||
/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 &
|
||||
|
3
rc.lua
3
rc.lua
@ -22,6 +22,9 @@ vkbd.init("ansi")
|
||||
function powermenu.suspend()
|
||||
awful.spawn("dbus-send --system --print-reply --dest=org.freedesktop.login1 /org/freedesktop/login1 org.freedesktop.login1.Manager.Suspend boolean:true")
|
||||
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
|
||||
-- Check if awesome encountered an error during startup and fell back to
|
||||
|
Loading…
Reference in New Issue
Block a user