diff --git a/home/hypridle/default.nix b/home/hypridle/default.nix index 39e9a64..6588c39 100644 --- a/home/hypridle/default.nix +++ b/home/hypridle/default.nix @@ -10,12 +10,12 @@ ]; listener = [ { - timeout = 300; + timeout = 600; on-timeout = "hyprctl dispatch dpms off"; on-resume = "hyprctl dispatch dpms on"; } { - timeout = 600; + timeout = 1200; on-timeout = "systemctl suspend"; on-resume = "hyprctl dispatch dpms on"; } diff --git a/home/zsh/rebuild.sh b/home/zsh/rebuild.sh index 66d47e0..514becc 100755 --- a/home/zsh/rebuild.sh +++ b/home/zsh/rebuild.sh @@ -4,6 +4,8 @@ hostname=$(hostname) if [[ $hostname == *"desktop"* ]]; then sudo nixos-rebuild switch --flake ~/nix/#desktop &>nixos-switch.log || (cat nixos-switch.log | grep --color error && false) + rm nixos-switch.log elif [[ $hostname == *"laptop"* ]]; then sudo nixos-rebuild switch --flake ~/nix/#laptop &>nixos-switch.log || (cat nixos-switch.log | grep --color error && false) + rm nixos-switch.log fi