Redirect logs to null device after writing to file

This commit is contained in:
Andrew Scott 2024-06-08 07:12:45 -04:00
parent e3a511014a
commit cdc898f7e4
Signed by: a
GPG key ID: 7CD5A5977E4931C1
2 changed files with 4 additions and 4 deletions

View file

@ -39,7 +39,7 @@ swayidle -dw \
resume "wlr-randr --output eDP-1 --on && kanshictl reload" \
lock "waylock-launcher" \
before-sleep "waylock-launcher" \
2>&1 | tee -a "$log_file" &
2>&1 | tee -a "$log_file" >/dev/null &
{{- else if eq .chezmoi.hostname "hydrus" }}
# lock: 5m, display: 15m
swayidle -dw \
@ -48,10 +48,10 @@ swayidle -dw \
resume 'kanshictl switch dual' \
lock 'waylock-launcher' \
before-sleep 'waylock-launcher' \
2>&1 | tee -a "$log_file" &
2>&1 | tee -a "$log_file" >/dev/null &
{{- else }}
# lock after 5m
swayidle -dw \
timeout 300 'waylock-launcher' \
2>&1 | tee -a "$log_file" &
2>&1 | tee -a "$log_file" >/dev/null &
{{- end }}

View file

@ -17,6 +17,6 @@ else
-init-color 0x000000 \
-fail-color 0x000000 \
-input-color 0x525c62 \
2>&1 | tee -a "$log_file" &
2>&1 | tee -a "$log_file" >/dev/null &
fi