]> git.rmz.io Git - dotfiles.git/blobdiff - xprofile.d/10-screensaver.sh
xprofile: separate xprofile from xinit
[dotfiles.git] / xprofile.d / 10-screensaver.sh
diff --git a/xprofile.d/10-screensaver.sh b/xprofile.d/10-screensaver.sh
new file mode 100755 (executable)
index 0000000..8a2368d
--- /dev/null
@@ -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