From 7464e8fc26a762b213348ad1b050e21fa2be64ce Mon Sep 17 00:00:00 2001 From: Adam Stück Date: Wed, 22 Feb 2023 18:30:20 +0100 Subject: replace betterlockscreen -> slock --- .local/bin/dock | 2 -- .local/bin/idle | 6 ------ .local/bin/lock | 9 +++++++++ 3 files changed, 9 insertions(+), 8 deletions(-) delete mode 100755 .local/bin/idle create mode 100755 .local/bin/lock (limited to '.local') diff --git a/.local/bin/dock b/.local/bin/dock index 2f9ec22..5f8ec04 100755 --- a/.local/bin/dock +++ b/.local/bin/dock @@ -21,7 +21,6 @@ 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 & } undock () { @@ -30,7 +29,6 @@ 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 & } main "$@" diff --git a/.local/bin/idle b/.local/bin/idle deleted file mode 100755 index ae40ff3..0000000 --- a/.local/bin/idle +++ /dev/null @@ -1,6 +0,0 @@ -#!/bin/sh - -xidlehook \ - --detect-sleep --not-when-audio --not-when-fullscreen \ - --timer 300 'betterlockscreen -l' '' \ - --timer 60 'systemctl suspend' '' & diff --git a/.local/bin/lock b/.local/bin/lock new file mode 100755 index 0000000..191c876 --- /dev/null +++ b/.local/bin/lock @@ -0,0 +1,9 @@ +#!/bin/sh + +xset dpms 5 +xidlehook \ + --detect-sleep --not-when-audio --not-when-fullscreen \ + --timer 60 'systemctl suspend' '' & +slock +kill $! +xset dpms 300 -- cgit v1.2.3-70-g09d2