summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-x.config/wayland/winit8
1 files changed, 1 insertions, 7 deletions
diff --git a/.config/wayland/winit b/.config/wayland/winit
index 42f2c19..4192d05 100755
--- a/.config/wayland/winit
+++ b/.config/wayland/winit
@@ -18,10 +18,4 @@ mkfifo "$wobpipe" &&
tail -f "$wobpipe" | wob &
# screen lock
-disp="$(wlr-randr | grep -om1 '^[^ ]*')" &&
-timeout=60 && # seconds >5
-swayidle \
- timeout "$((timeout - 5))" "brightnessctl --save; brightnessctl set 10%-" \
- resume "brightnessctl --restore" \
- timeout "$timeout" "wlr-randr --output ${disp} --off; swaylock" \
- resume "wlr-randr --output ${disp} --on --adaptive-sync enabled" &
+caffeine -st 1