]> git.rmz.io Git - dotfiles.git/blob - xprofile.d/10-screensaver.sh
xprofile: use xss-lock and loginctl lock-session to trigger i3lock
[dotfiles.git] / xprofile.d / 10-screensaver.sh
1 alias xidlehook-client='xidlehook-client --socket $XIDLEHOOK_SOCKET'
2
3 if [[ $(hostname) == "hactar" ]]; then
4 xidlehook \
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' '' \
10 &
11 elif [[ $(hostname) == "chronos" ]]; then
12 xidlehook \
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' '' \
18 &
19 elif [[ $(hostname) == "skull-canyon" ]]; then
20 xidlehook \
21 --socket=$XIDLEHOOK_SOCKET \
22 --not-when-fullscreen \
23 --timer 300 'xset dpms force off' '' \
24 --timer 300 'i3lock -c 000000' '' \
25 &
26 fi
27
28 xss-lock -- i3lock --nofork --color=000000 &