1
0

Add xautolock

This commit is contained in:
dump_stack() 2019-07-12 17:03:43 +00:00
parent 35285b632b
commit 80431b113d
Signed by: dump_stack
GPG Key ID: BE44DA8C062D87DC

View File

@ -10,6 +10,21 @@ in {
services.xserver.windowManager.xmonad.enable = true;
services.xserver.windowManager.xmonad.enableContribAndExtras = true;
services.xserver.xautolock = {
enable = true;
time = 5; # minutes
locker = "${pkgs.i3lock}/bin/i3lock -n -c 000000";
notify = 10; # seconds
notifier = "${pkgs.libnotify}/bin/notify-send \"Locking in 10 seconds\"";
killtime = 20; # minutes
killer = "${pkgs.systemd}/bin/systemctl suspend";
extraOptions = [ "-secure" ];
};
services.redshift = {
enable = true;
latitude = secrets.latitude;