diff options
author | Adam Stück <adam@adast.xyz> | 2023-02-22 07:16:03 +0100 |
---|---|---|
committer | Adam Stück <adam@adast.xyz> | 2023-02-22 07:16:03 +0100 |
commit | b48537a1d256f821abe3cd5a2842e2908c89d184 (patch) | |
tree | 1fc1dd03065e98a9b930f681d8f7beb662139787 /.local/bin | |
parent | 3b360b69d4967ff3a6935b66c923602d4413ff41 (diff) |
feat: idle timeout lockscreen
Re-adds betterlockscreen.
Don't remember why I removed it in the first place.
Diffstat (limited to '.local/bin')
-rwxr-xr-x | .local/bin/dock | 4 | ||||
-rwxr-xr-x | .local/bin/idle | 6 | ||||
-rwxr-xr-x | .local/bin/screensaver | 9 |
3 files changed, 8 insertions, 11 deletions
diff --git a/.local/bin/dock b/.local/bin/dock index e1050a0..2f9ec22 100755 --- a/.local/bin/dock +++ b/.local/bin/dock @@ -21,7 +21,7 @@ dock () { xrandr --output HDMI-1 --mode 2560x1440 --rate 70 --primary xrandr --output eDP-1 --off xwallpaper --center ~/.local/share/bg - # betterlockscreen -u ~/.local/share/lock >/dev/null 2>&1 & + betterlockscreen -u ~/.local/share/lock >/dev/null 2>&1 & } undock () { @@ -30,7 +30,7 @@ undock () { xrandr --output eDP-1 --mode 1920x1080 --primary xrandr --output HDMI-1 --off xwallpaper --center ~/.local/share/bg - # betterlockscreen -u ~/.local/share/lock >/dev/null 2>&1 & + betterlockscreen -u ~/.local/share/lock >/dev/null 2>&1 & } main "$@" diff --git a/.local/bin/idle b/.local/bin/idle new file mode 100755 index 0000000..ae40ff3 --- /dev/null +++ b/.local/bin/idle @@ -0,0 +1,6 @@ +#!/bin/sh + +xidlehook \ + --detect-sleep --not-when-audio --not-when-fullscreen \ + --timer 300 'betterlockscreen -l' '' \ + --timer 60 'systemctl suspend' '' & diff --git a/.local/bin/screensaver b/.local/bin/screensaver deleted file mode 100755 index 37005fc..0000000 --- a/.local/bin/screensaver +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/sh - -xset dpms 300 -# xset s off - -# xidlehook \ -# --detect-sleep --not-when-audio --not-when-fullscreen \ -# --timer 300 'betterlockscreen -l' '' \ -# --timer 300 'systemctl suspend' '' & |