forked from ashpie/simple-awesome
Fix leave menu shutdown and reboot
This commit is contained in:
parent
93009fb6cb
commit
afce173903
@ -20,5 +20,5 @@ By default, Simple Awesome uses
|
|||||||
- Add a media control widget
|
- Add a media control widget
|
||||||
- Manage workspaces
|
- Manage workspaces
|
||||||
- Improve "leave menu"'s design
|
- Improve "leave menu"'s design
|
||||||
- Modify "start menu"
|
- Modify "start menu", make everything work
|
||||||
- Make "start menu" and "leave menu" not sticky (they currently stay open and focus even when clicking outside)
|
- Make "start menu" and "leave menu" not sticky (they currently stay open and focus even when clicking outside)
|
||||||
|
4
rc.lua
4
rc.lua
@ -142,12 +142,12 @@ lock_icon = awesome.load_image(awful.util.getdir("config") .. "/icons/lock.svg")
|
|||||||
shutdownMenu_items = {
|
shutdownMenu_items = {
|
||||||
{ "Shutdown",
|
{ "Shutdown",
|
||||||
function()
|
function()
|
||||||
awful.spawn('sudo /sbin/shutdown -h now')
|
os.execute('shutdown now')
|
||||||
end,
|
end,
|
||||||
shutdown_icon },
|
shutdown_icon },
|
||||||
{ "Restart",
|
{ "Restart",
|
||||||
function()
|
function()
|
||||||
awful.spawn('sudo /sbin/shutdown -r now')
|
os.execute('shutdown -r now')
|
||||||
end,
|
end,
|
||||||
restart_icon },
|
restart_icon },
|
||||||
{ "Logout",
|
{ "Logout",
|
||||||
|
Loading…
Reference in New Issue
Block a user