X-Git-Url: https://git.rmz.io/dotfiles.git/blobdiff_plain/e7cceae8485ba5c329b3ccde56530bd2551b1e72..03e18ae17a72f3db72ee65eb290d35fb13d66237:/xinit/xprofile.d/10-screensaver.sh diff --git a/xinit/xprofile.d/10-screensaver.sh b/xinit/xprofile.d/10-screensaver.sh index 0b36249..8a2368d 100755 --- a/xinit/xprofile.d/10-screensaver.sh +++ b/xinit/xprofile.d/10-screensaver.sh @@ -1,6 +1,26 @@ -#!/usr/bin/env bash +alias xidlehook-client='xidlehook-client --socket $XIDLEHOOK_SOCKET' -xset s 600 -xset dpms 300 900 1800 # 5m 15m 30m -# settings can be found in Xresources -xautolock -detectsleep & +if [[ $(hostname) == "hactar" ]]; then + xidlehook \ + --socket=$XIDLEHOOK_SOCKET \ + --not-when-fullscreen \ + --timer 300 'xset dpms force off' '' \ + --timer 300 'i3lock -c 000000' '' \ + --timer 3600 'systemctl suspend' '' \ + & +elif [[ $(hostname) == "chronos" ]]; then + xidlehook \ + --socket=$XIDLEHOOK_SOCKET \ + --not-when-fullscreen \ + --timer 300 'xset dpms force off' '' \ + --timer 300 'i3lock -c 000000' '' \ + --timer 1800 'systemctl suspend' '' \ + & +elif [[ $(hostname) == "skull-canyon" ]]; then + xidlehook \ + --socket=$XIDLEHOOK_SOCKET \ + --not-when-fullscreen \ + --timer 300 'xset dpms force off' '' \ + --timer 300 'i3lock -c 000000' '' \ + & +fi