summaryrefslogtreecommitdiff
path: root/.config/wayland/winit
diff options
context:
space:
mode:
authorsinanmohd <sinan@firemail.cc>2023-06-24 21:11:12 +0530
committersinanmohd <sinan@firemail.cc>2023-06-24 21:56:27 +0530
commit53e3531dfdc27aaac4f2555ba6715594a1baf292 (patch)
tree3a52c6ea3953e0030d21ccb8a49b21a203fd86be /.config/wayland/winit
parent6f9e094ceb48f74e37bcd8f222d8887a602b8af5 (diff)
winit: adapt caffeine
Diffstat (limited to '.config/wayland/winit')
-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