Lock XScreenSaver before hibernating.

This commit is contained in:
Kolan Sh 2020-04-27 11:41:17 +03:00
parent 6837a73977
commit f62d2b88df
1 changed files with 2 additions and 2 deletions

4
rc.lua
View File

@ -117,8 +117,8 @@ end
menu_items = freedesktop.menu.new() menu_items = freedesktop.menu.new()
myawesomemenu = { myawesomemenu = {
{ "next wall", cfgpath.."/set_wall.sh "..home.."/wallpapers/" }, { "next wall", cfgpath.."/set_wall.sh "..home.."/wallpapers/" },
{ "pm-suspend-hybrid", "sudo pm-suspend-hybrid" }, { "suspend-hybrid", "sh -c 'xscreensaver-command -lock && sudo pm-suspend-hybrid'" },
{ "pm-hibernate", "sudo pm-hibernate" }, { "hibernate", "sh -c 'xscreensaver-command -lock && sudo pm-hibernate'" },
{ "lock", "xscreensaver-command --lock" }, { "lock", "xscreensaver-command --lock" },
{ "reboot", "sudo shutdown -r now" }, { "reboot", "sudo shutdown -r now" },
{ "poweroff", "sudo poweroff" }, { "poweroff", "sudo poweroff" },