From afce173903cc96e348fa9cf4a0d65c5933f47ea4 Mon Sep 17 00:00:00 2001 From: Alice Gaudon Date: Wed, 24 Jul 2019 14:27:10 +0200 Subject: [PATCH] Fix leave menu shutdown and reboot --- README.md | 2 +- rc.lua | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 7c621de..8111cff 100644 --- a/README.md +++ b/README.md @@ -20,5 +20,5 @@ By default, Simple Awesome uses - Add a media control widget - Manage workspaces - 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) diff --git a/rc.lua b/rc.lua index c6bdda9..8a5004c 100644 --- a/rc.lua +++ b/rc.lua @@ -142,12 +142,12 @@ lock_icon = awesome.load_image(awful.util.getdir("config") .. "/icons/lock.svg") shutdownMenu_items = { { "Shutdown", function() - awful.spawn('sudo /sbin/shutdown -h now') + os.execute('shutdown now') end, shutdown_icon }, { "Restart", function() - awful.spawn('sudo /sbin/shutdown -r now') + os.execute('shutdown -r now') end, restart_icon }, { "Logout",