diff options
author | sils <sils@sils.li> | 2023-08-15 13:33:15 +0200 |
---|---|---|
committer | sils <sils@sils.li> | 2023-08-15 13:33:15 +0200 |
commit | d3dfca63d92d32f1fe31136155d399fc0b2b83a2 (patch) | |
tree | 3f480b55728ef321d825190b83debe6a091cc2cf | |
parent | Fix(u/sils/swayidle): Add timeout for screen locking (diff) | |
download | nix-config-d3dfca63d92d32f1fe31136155d399fc0b2b83a2.tar.gz nix-config-d3dfca63d92d32f1fe31136155d399fc0b2b83a2.zip |
Fix(u/sils/swayidle): Turn screen off after 140 seconds.
-rw-r--r-- | users/sils/swayidle/default.nix | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/users/sils/swayidle/default.nix b/users/sils/swayidle/default.nix index 216165d..20eabad 100644 --- a/users/sils/swayidle/default.nix +++ b/users/sils/swayidle/default.nix @@ -17,6 +17,11 @@ timeout = 120; command = "${pkgs.swaylock}/bin/swaylock -f"; } + { + timeout = 140; + command = "${pkgs.hyprland}/bin/hyprctl dispatch dpms off"; + resumeCommand = "${pkgs.hyprland}/bin/hyprctl dispatch dpms on"; + } ]; systemdTarget = "hyprland-session.target"; }; |