From 482e8af041d7e40f74c47f5dba1544dae46cf6e1 Mon Sep 17 00:00:00 2001 From: Blista Kanjo Date: Thu, 1 Jun 2023 00:01:38 -0400 Subject: refactor: use the correct systemd reboot and shutdown commands --- .config/awesome/rc.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to '.config/awesome/rc.lua') diff --git a/.config/awesome/rc.lua b/.config/awesome/rc.lua index 1e63329..2f9c091 100644 --- a/.config/awesome/rc.lua +++ b/.config/awesome/rc.lua @@ -117,9 +117,9 @@ myawesomemenu = { { "change wallpaper", function() awful.spawn.easy_async_with_shell("sh -c 'nitrogen'") end }, { "xdg_menu refresh", function() awful.spawn.easy_async_with_shell("sh -c 'xdg_menu --format awesome --root-menu /etc/xdg/menus/arch-applications.menu > ~/.config/awesome/xdgmenu.lua'") end }, { "refresh", awesome.restart }, - { "reboot", function() awful.spawn("sh -c 'lxsudo reboot now'") end }, + { "reboot", function() awful.spawn("sh -c 'systemctl reboot'") end }, -- { "quit", function() awesome.quit() end }, - { "shutdown", function() awful.spawn("sh -c 'lxsudo shutdown now'") end}, + { "shutdown", function() awful.spawn("sh -c 'systemctl poweroff'") end}, { "stagnate", function() awful.spawn.easy_async_with_shell("sh -c 'systemctl hibernate'") end}, { "suspend", function() awful.spawn.easy_async_with_shell("sh -c 'systemctl suspend'") end}, { "logout", function () awful.spawn("sh -c 'pkill -9 -u $USER'") end }, -- cgit v1.2.3