about summary refs log tree commit diff
path: root/home/wm/swaylock/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'home/wm/swaylock/default.nix')
-rw-r--r--home/wm/swaylock/default.nix34
1 files changed, 0 insertions, 34 deletions
diff --git a/home/wm/swaylock/default.nix b/home/wm/swaylock/default.nix
deleted file mode 100644
index a22d548..0000000
--- a/home/wm/swaylock/default.nix
+++ /dev/null
@@ -1,34 +0,0 @@
-{ config, lib, pkgs, ... }:
-let isEnabled = config.my.home.wm.windowManager == "sway";
-in
-{
-  config = lib.mkIf isEnabled {
-    xdg.configFile."swaylock/config" = { source = ./config; };
-
-    services.swayidle = {
-      enable = true;
-      events = [
-        {
-          event = "before-sleep";
-          command = "${pkgs.swaylock}/bin/swaylock -fF";
-        }
-        {
-          event = "lock";
-          command = "${pkgs.swaylock}/bin/swaylock -fF";
-        }
-      ];
-      timeouts = [
-        {
-          timeout = 300;
-          command = "${pkgs.sway}/bin/swaymsg \"output * dpms off\"";
-          resumeCommand = "${pkgs.sway}/bin/swaymsg \"output * dpms on\"";
-        }
-        {
-          timeout = 310;
-          command = "${pkgs.systemd}/bin/loginctl lock-session";
-        }
-      ];
-    };
-
-  };
-}