From: martin f. krafft Date: Fri, 8 Dec 2023 15:46:47 +0000 (+0100) Subject: switch to xautolock X-Git-Url: https://git.madduck.net/etc/awesome.git/commitdiff_plain/5df2eb8518ed60fe876a21a4ead3037a47eddd59 switch to xautolock --- diff --git a/.config/awesome/rc.lua b/.config/awesome/rc.lua index 5b4ca3e..eadc1c9 100644 --- a/.config/awesome/rc.lua +++ b/.config/awesome/rc.lua @@ -904,11 +904,10 @@ awful.key({ cmdkey }, "l", function () awful.spawn("libreoffice") end), awful.key({ cmdkey }, "p", function () awful.spawn("pavucontrol") end), awful.key({ cmdkey }, "i", function () awful.spawn(terminal .. " -name irc -e env MOSH_TITLE_NOPREFIX=true mosh --family=all -- irc-host tmux new -As irc irssi") end), awful.key({ cmdkey }, "x", function () - awful.spawn("/usr/bin/xscreensaver -no-capture-stderr") - os.execute("sleep 5") - awful.spawn("xscreensaver-command -lock") + awful.spawn("xautolock -enable") + awful.spawn("xautolock -locknow") end), -awful.key({ cmdkey, "Shift" }, "x", function () awful.spawn("xscreensaver-command -exit") end), +awful.key({ cmdkey, "Shift" }, "x", function () awful.spawn("xautolock -disable") end), awful.key({ cmdkey }, "BackSpace", function () awful.spawn("pkill -USR1 offlineimap") end),