diff --git a/home/hypridle/default.nix b/home/hypridle/default.nix index 2702c81..92d7ae7 100644 --- a/home/hypridle/default.nix +++ b/home/hypridle/default.nix @@ -4,12 +4,12 @@ settings = { listener = [ { - timeout = 600; + timeout = 300; on-timeout = "hyprctl dispatch dpms off"; on-resume = "hyprctl dispatch dpms on"; } { - timeout = 1200; + timeout = 600; on-timeout = "systemctl suspend"; on-resume = "hyprctl dispatch dpms on"; } diff --git a/home/hyprland/default.nix b/home/hyprland/default.nix index 5648838..f356ec1 100644 --- a/home/hyprland/default.nix +++ b/home/hyprland/default.nix @@ -48,7 +48,7 @@ exec-once = [ "ags" - "hypridle" + "sh ~/nix/home/hyprland/scripts/hypridle.sh" ]; windowrule = [ diff --git a/home/hyprland/scripts/hypridle.sh b/home/hyprland/scripts/hypridle.sh new file mode 100644 index 0000000..a438b73 --- /dev/null +++ b/home/hyprland/scripts/hypridle.sh @@ -0,0 +1,6 @@ +#!/bin/sh + +hostname=$(hostname) + +[ "$hostname" = "latop" ] && hyprilde +