diff options
-rwxr-xr-x | .config/X11/xinitrc | 1 | ||||
-rwxr-xr-x | .local/bin/screensaver | 9 |
2 files changed, 10 insertions, 0 deletions
diff --git a/.config/X11/xinitrc b/.config/X11/xinitrc index 88cc5bb..76b2e6a 100755 --- a/.config/X11/xinitrc +++ b/.config/X11/xinitrc @@ -42,4 +42,5 @@ unclutter -b & nextcloud --background & ~/.local/bin/picom-toggle & ~/.local/bin/rate & +~/.local/bin/screensaver & exec i3 diff --git a/.local/bin/screensaver b/.local/bin/screensaver new file mode 100755 index 0000000..7b25bf9 --- /dev/null +++ b/.local/bin/screensaver @@ -0,0 +1,9 @@ +#!/bin/sh + +# xset -dpms +xset s off + +xidlehook \ + --detect-sleep --not-when-audio --not-when-fullscreen \ + --timer 300 'betterlockscreen -l' '' \ + --timer 300 'systemctl suspend' '' & |