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 | |
parent | 3b360b69d4967ff3a6935b66c923602d4413ff41 (diff) |
feat: idle timeout lockscreen
Re-adds betterlockscreen.
Don't remember why I removed it in the first place.
-rwxr-xr-x | .config/X11/xinitrc | 6 | ||||
-rwxr-xr-x | .local/bin/dock | 4 | ||||
-rwxr-xr-x | .local/bin/idle | 6 | ||||
-rwxr-xr-x | .local/bin/screensaver | 9 |
4 files changed, 10 insertions, 15 deletions
diff --git a/.config/X11/xinitrc b/.config/X11/xinitrc index 12af84a..a840c00 100755 --- a/.config/X11/xinitrc +++ b/.config/X11/xinitrc @@ -37,11 +37,9 @@ clipmenud & playerctld daemon & redshift -l 55.7:12.6 -t 5700:4000 -g 0.9 -m randr -v & unclutter -b & -# nextcloud --background & xwallpaper --center ~/.local/share/bg & -# betterlockscreen -u ~/.local/share/lock & -~/.local/bin/screensaver & +betterlockscreen -u ~/.local/share/lock & +~/.local/bin/idle & ~/.local/bin/comptoggle & ~/.local/bin/rate & -# sxhkd & exec i3 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' '' & |