summaryrefslogtreecommitdiff
path: root/.local/bin
diff options
context:
space:
mode:
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