forced lock/unlock now works, TBD suspend/resume

This commit is contained in:
Motiejus Jakštys 2023-09-20 14:25:41 +03:00
parent b5a947407c
commit bdcbcec533
2 changed files with 2 additions and 2 deletions

View File

@ -163,7 +163,7 @@
services.screen-locker = {
enable = true;
xautolock.enable = false;
lockCmd = "${pkgs.slock}/bin/slock ${pkgs.xorg.xset}/bin/xset dpms force off";
lockCmd = ''${pkgs.bash}/bin/bash -c "${pkgs.xorg.xset}/bin/xset dpms force off; /run/wrappers/bin/slock"'';
};
};
};

View File

@ -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.1; xset dpms force off; xlock")
awful.spawn.with_shell("loginctl lock-session")
end)
)