about summary refs log tree commit diff stats
path: root/home-manager/swayidle
diff options
context:
space:
mode:
Diffstat (limited to 'home-manager/swayidle')
-rw-r--r--home-manager/swayidle/config5
-rw-r--r--home-manager/swayidle/default.nix29
2 files changed, 0 insertions, 34 deletions
diff --git a/home-manager/swayidle/config b/home-manager/swayidle/config
deleted file mode 100644
index d49aaa56..00000000
--- a/home-manager/swayidle/config
+++ /dev/null
@@ -1,5 +0,0 @@
-timeout 180 'swaylock -f -c 000000'
-
-timeout 360 'systemctl suspend-then-hibernate'
-
-before-sleep 'swaylock -f -c 000000'
diff --git a/home-manager/swayidle/default.nix b/home-manager/swayidle/default.nix
deleted file mode 100644
index d9f001d5..00000000
--- a/home-manager/swayidle/default.nix
+++ /dev/null
@@ -1,29 +0,0 @@
-{
-  config,
-  pkgs,
-  ...
-}: {
-  services.swayidle = {
-    enable = true;
-    events = [
-      {
-        event = "before-sleep";
-        command = "${pkgs.swaylock}/bin/swaylock -f ";
-      }
-    ];
-    timeouts = [
-      {
-        timeout = 180;
-        command = "${pkgs.swaylock}/bin/swaylock -fFu ";
-      }
-      {
-        timeout = 360;
-        # TODO systemctl is installed?
-        command = "systemctl suspend-then-hibernate";
-      }
-    ];
-    # systemdTarget = ""; # TODO this might be usefull
-  };
-}
-# vim: ts=2
-