about summary refs log tree commit diff
path: root/users/fcuny/desktop/sway/sway-idle.nix
diff options
context:
space:
mode:
Diffstat (limited to 'users/fcuny/desktop/sway/sway-idle.nix')
-rw-r--r--users/fcuny/desktop/sway/sway-idle.nix11
1 files changed, 11 insertions, 0 deletions
diff --git a/users/fcuny/desktop/sway/sway-idle.nix b/users/fcuny/desktop/sway/sway-idle.nix
new file mode 100644
index 0000000..7db37bf
--- /dev/null
+++ b/users/fcuny/desktop/sway/sway-idle.nix
@@ -0,0 +1,11 @@
+{ pkgs, config, ... }:
+
+{
+  services.swayidle = {
+    enable = true;
+    timeouts = [{
+      timeout = 300;
+      command = "${pkgs.swaylock}/bin/swaylock -fF -c 1D2021";
+    }];
+  };
+}