forced lock/unlock now works, TBD suspend/resume
This commit is contained in:
parent
b5a947407c
commit
bdcbcec533
@ -163,7 +163,7 @@
|
|||||||
services.screen-locker = {
|
services.screen-locker = {
|
||||||
enable = true;
|
enable = true;
|
||||||
xautolock.enable = false;
|
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"}),
|
{description = "show the menubar", group = "launcher"}),
|
||||||
-- My customizations
|
-- My customizations
|
||||||
awful.key({ modkey }, "x", function()
|
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)
|
end)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user