aboutsummaryrefslogtreecommitdiff
path: root/modules/home-manager/swayidle.nix
diff options
context:
space:
mode:
Diffstat (limited to 'modules/home-manager/swayidle.nix')
-rw-r--r--modules/home-manager/swayidle.nix29
1 files changed, 0 insertions, 29 deletions
diff --git a/modules/home-manager/swayidle.nix b/modules/home-manager/swayidle.nix
deleted file mode 100644
index 33cd495..0000000
--- a/modules/home-manager/swayidle.nix
+++ /dev/null
@@ -1,29 +0,0 @@
-{
- config,
- lib,
- pkgs,
- ...
-}:
-
-{
- options.swayidle.enable = lib.mkEnableOption "Enable swayidle configuration";
- config = lib.mkIf config.swayidle.enable {
- services.swayidle = {
- enable = true;
- timeouts = [
- {
- timout = "600";
- command = "${pkgs.sway}/bin/swaymsg output * dpms off";
- }
- {
- timout = "900";
- command = "${pkgs.systemd}/bin/systemctl suspend";
- }
- ];
- events = [
- { event = "resume"; command = "${pkgs.sway}/bin/swaymsg output * dpms on"; }
- { event = "before-sleep"; command = "${pkgs.hyprlock}/bin/hyprlock"; }
- ];
- };
- };
-}