From 53e3531dfdc27aaac4f2555ba6715594a1baf292 Mon Sep 17 00:00:00 2001 From: sinanmohd Date: Sat, 24 Jun 2023 21:11:12 +0530 Subject: winit: adapt caffeine --- .config/wayland/winit | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to '.config/wayland/winit') 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 -- cgit v1.2.3