summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-x.config/X11/xinitrc6
-rwxr-xr-x.local/bin/dock4
-rwxr-xr-x.local/bin/idle6
-rwxr-xr-x.local/bin/screensaver9
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' '' &