]>
git.rmz.io Git - dotfiles.git/blob - xprofile.d/10-screensaver.sh
1 alias xidlehook
-client='xidlehook-client --socket $XIDLEHOOK_SOCKET'
3 if [[ $(hostname) == "hactar" ]]; then
5 --socket=$XIDLEHOOK_SOCKET \
6 --not-when-fullscreen \
7 --timer 300 'xset dpms force off' '' \
8 --timer 300 'loginctl lock-session' '' \
9 --timer 3600 'systemctl suspend' '' \
11 elif [[ $(hostname) == "chronos" ]]; then
13 --socket=$XIDLEHOOK_SOCKET \
14 --not-when-fullscreen \
15 --timer 300 'xset dpms force off' '' \
16 --timer 300 'loginctl lock-session' '' \
17 --timer 1800 'systemctl suspend' '' \
19 elif [[ $(hostname) == "skull-canyon" ]]; then
21 --socket=$XIDLEHOOK_SOCKET \
22 --not-when-fullscreen \
23 --timer 300 'xset dpms force off' '' \
24 --timer 300 'loginctl lock-session' '' \
28 # FIXME: as soon as dpms force off comes on the session is locked regardles
29 # TODO: maybe there is no need for xidlehook
30 # Although, I'm not sure how suspend will work
31 # xset s 300 60 # notify after 300, lock 60 after
32 # xset dpms 300 360 1800
33 xss
-lock -- i3lock
--nofork --color=000000 &