From 045d8e753582197bd678941a72dc1c080e87a0c2 Mon Sep 17 00:00:00 2001 From: joygnu Date: Sun, 11 Aug 2024 08:45:09 +0200 Subject: [PATCH] remove nixos-switch.log --- home/hypridle/default.nix | 4 ++-- home/zsh/rebuild.sh | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) 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