summaryrefslogtreecommitdiff
path: root/.local/bin
diff options
context:
space:
mode:
Diffstat (limited to '.local/bin')
-rwxr-xr-x.local/bin/dock4
-rwxr-xr-x.local/bin/idle6
-rwxr-xr-x.local/bin/screensaver9
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' '' &