From e039cd2ace1f986112019e0b7754986dd34494e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Motiejus=20Jak=C5=A1tys?= Date: Sun, 17 Sep 2023 22:32:41 +0300 Subject: [PATCH] rc.lua: lock a bit after turning off the screen --- modules/profiles/desktop/rc.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/profiles/desktop/rc.lua b/modules/profiles/desktop/rc.lua index 8f23132..6d2808f 100644 --- a/modules/profiles/desktop/rc.lua +++ b/modules/profiles/desktop/rc.lua @@ -331,7 +331,7 @@ globalkeys = gears.table.join( {description = "show the menubar", group = "launcher"}), -- My customizations awful.key({ modkey }, "x", function() - awful.spawn.with_shell("sleep 0.2; slock xset dpms force off") + awful.spawn.with_shell("xset dpms force off; sleep 0.1; slock") end) )