From 5df2eb8518ed60fe876a21a4ead3037a47eddd59 Mon Sep 17 00:00:00 2001 From: "martin f. krafft" Date: Fri, 8 Dec 2023 16:46:47 +0100 Subject: [PATCH 1/1] switch to xautolock --- .config/awesome/rc.lua | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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), -- 2.39.5