Suspend on some machines after 1 hour inactivity

This commit is contained in:
Andrew Scott 2023-03-06 13:54:51 -05:00
parent 1ce6bebd27
commit 48177ecef0
Signed by: a
GPG key ID: 7CD5A5977E4931C1

View file

@ -72,12 +72,12 @@ xsettingsd &
$HOME/.local/bin/pipewire-launcher & $HOME/.local/bin/pipewire-launcher &
{{- end }} {{- end }}
{{- if (or (eq .chezmoi.hostname "helix") (eq .chezmoi.hostname "triangulum")) }} {{- if (or (eq .chezmoi.hostname "helix") (eq .chezmoi.hostname "triangulum")) }}
xidlehook --not-when-fullscreen --timer 120 "killall -q redshift && xrandr --output eDP-1 --brightness .1" "xrandr --output eDP-1 --brightness 1 && redshift -r & disown" --timer 480 "xset s activate" "xrandr --output eDP-1 --brightness 1 && redshift -r & disown" & xidlehook --not-when-audio --not-when-fullscreen --timer 120 "killall -q redshift && xrandr --output eDP-1 --brightness .1" "xrandr --output eDP-1 --brightness 1 && redshift -r & disown" --timer 480 "xset s activate" "xrandr --output eDP-1 --brightness 1 && redshift -r & disown" --timer 3600 "loginctl suspend" "xrandr --output eDP-1 --brightness 1 && redshift -r & disown" &
cbatticon -u 20 -i standard -c "systemctl hibernate" & cbatticon -u 20 -i standard -c "loginctl suspend" &
$HOME/.local/bin/tint2-launcher & $HOME/.local/bin/tint2-launcher &
{{- end }} {{- end }}
{{- if eq .chezmoi.hostname "hydrus"}} {{- if eq .chezmoi.hostname "hydrus"}}
xidlehook --not-when-fullscreen --timer 360 "xset s activate" "" & xidlehook --not-when-audio --not-when-fullscreen --timer 360 "xset s activate" "" &
$HOME/.local/bin/dual-polybar-launcher & $HOME/.local/bin/dual-polybar-launcher &
{{- end }} {{- end }}
sh ~/.fehbg & sh ~/.fehbg &