1
0
Fork 0
mirror of https://github.com/lcpz/awesome-copycats.git synced 2026-03-23 05:55:12 +00:00

fix logout menu

This commit is contained in:
Crescent617 2023-07-08 09:19:13 +08:00
parent b2e9ccb013
commit 28ad916308
2 changed files with 4 additions and 1 deletions

2
rc.lua
View file

@ -77,7 +77,7 @@ awful.spawn.with_shell(
'if (xrdb -query | grep -q "^awesome\\.started:\\s*true$"); then exit; fi;' 'if (xrdb -query | grep -q "^awesome\\.started:\\s*true$"); then exit; fi;'
.. 'xrdb -merge <<< "awesome.started:true";' .. 'xrdb -merge <<< "awesome.started:true";'
-- list each of your autostart commands, followed by ; inside single quotes, followed by .. -- list each of your autostart commands, followed by ; inside single quotes, followed by ..
.. 'dex --environment Awesome --autostart --search-paths "$XDG_CONFIG_DIRS/autostart:$XDG_CONFIG_HOME/autostart"' -- https://github.com/jceb/dex .. 'dex --environment Awesome --autostart --search-paths "$XDG_CONFIG_DIRS/autostart:$HOME/.config/autostart"' -- https://github.com/jceb/dex
) )
--]] --]]

View file

@ -225,6 +225,9 @@ function theme.at_screen_connect(s)
onlock = function() onlock = function()
awful.spawn.with_shell "slock" awful.spawn.with_shell "slock"
end, end,
onpoweroff = function()
awful.spawn.with_shell "shoutdown -h now"
end,
}, },
}, },
} }