forced lock/unlock now works, TBD suspend/resume
This commit is contained in:
parent
b5a947407c
commit
bdcbcec533
@ -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"'';
|
||||
};
|
||||
};
|
||||
};
|
||||
|
@ -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)
|
||||
)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user