summaryrefslogtreecommitdiff
path: root/.local/bin
diff options
context:
space:
mode:
authorAdam Stück <adam@adast.xyz>2023-02-22 18:30:20 +0100
committerAdam Stück <adam@adast.xyz>2023-02-22 18:30:20 +0100
commit7464e8fc26a762b213348ad1b050e21fa2be64ce (patch)
treef0ffb7c8d1b3f2579502491c457ea81a37ebc24f /.local/bin
parentf5a8605de8b202ad656caee6ba072a98b5c53953 (diff)
replace betterlockscreen -> slock
Diffstat (limited to '.local/bin')
-rwxr-xr-x.local/bin/dock2
-rwxr-xr-x.local/bin/lock (renamed from .local/bin/idle)5
2 files changed, 4 insertions, 3 deletions
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/lock
index ae40ff3..191c876 100755
--- a/.local/bin/idle
+++ b/.local/bin/lock
@@ -1,6 +1,9 @@
#!/bin/sh
+xset dpms 5
xidlehook \
--detect-sleep --not-when-audio --not-when-fullscreen \
- --timer 300 'betterlockscreen -l' '' \
--timer 60 'systemctl suspend' '' &
+slock
+kill $!
+xset dpms 300