X-Git-Url: https://git.rmz.io/dotfiles.git/blobdiff_plain/f65351a4282b68f599c318a86bb51952a31f17ce..367a240534f2e939fbb15baed6a34736b7360637:/xprofile.d/10-screensaver.sh?ds=sidebyside diff --git a/xprofile.d/10-screensaver.sh b/xprofile.d/10-screensaver.sh new file mode 100755 index 0000000..8a2368d --- /dev/null +++ b/xprofile.d/10-screensaver.sh @@ -0,0 +1,26 @@ +alias xidlehook-client='xidlehook-client --socket $XIDLEHOOK_SOCKET' + +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