From b74eba259ce6f1a080cd89906a742a46e5de2e1d Mon Sep 17 00:00:00 2001 From: sinanmohd Date: Tue, 2 May 2023 09:57:43 +0530 Subject: winit: clean up * shorter cmds * lock screen even if wlr-randr call fails * on inactivity decrease brightness 10% --- .config/wayland/winit | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to '.config/wayland') diff --git a/.config/wayland/winit b/.config/wayland/winit index 96d1b7f..472740b 100755 --- a/.config/wayland/winit +++ b/.config/wayland/winit @@ -15,7 +15,7 @@ sleep 3 && wireplumber & disp="$(wlr-randr | grep -om1 '^[^ ]*')" timeout=60 # seconds >5 swayidle \ - timeout "$((timeout - 5))" " brightnessctl --save && brightnessctl set 10%" \ + timeout "$((timeout - 5))" "brightnessctl --save; brightnessctl set 10%-" \ resume "brightnessctl --restore" \ - timeout "$timeout" "wlr-randr --output ${disp} --off && waylock -init-color 0x000000" \ - resume "wlr-randr --output ${disp} --on && wlr-randr --output ${disp} --adaptive-sync enabled" & + timeout "$timeout" "wlr-randr --output ${disp} --off; waylock" \ + resume "wlr-randr --output ${disp} --on --adaptive-sync enabled" & -- cgit v1.2.3