summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2019-09-06 11:54:30 +0200
committerAlan Pearce2019-09-06 11:54:30 +0200
commit14354e6765b968d9f625446be8534fe28d8e7092 (patch)
tree1d9995a81c02ca5ea70e34cd587f24fbf848379d
parentde693c7795cd7d693ef327ec2cca06563668633a (diff)
downloadnixos-configuration-14354e6765b968d9f625446be8534fe28d8e7092.tar.lz
nixos-configuration-14354e6765b968d9f625446be8534fe28d8e7092.tar.zst
nixos-configuration-14354e6765b968d9f625446be8534fe28d8e7092.zip
window-manager: notify before lock
-rw-r--r--modules/programs/window-manager.nix2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/programs/window-manager.nix b/modules/programs/window-manager.nix
index c0322ac..1ca1e10 100644
--- a/modules/programs/window-manager.nix
+++ b/modules/programs/window-manager.nix
@@ -17,6 +17,8 @@
     xautolock = {
       enable = true;
       locker = "${pkgs.i3lock-color}/bin/i3lock-color";
+      enableNotifier = true;
+      notifier = "${pkgs.libnotify}/bin/notify-send \"Locking in 10 seconds\"";
       time = 5;
     };
   };