summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsinanmohd <sinan@firemail.cc>2023-05-02 09:57:43 +0530
committersinanmohd <sinan@firemail.cc>2023-05-02 10:01:45 +0530
commitb74eba259ce6f1a080cd89906a742a46e5de2e1d (patch)
treeb276051153014b87bd8ec1f0d2fb4b80c1d71007
parent67361ea9768cb6d0bb44350ee1ea0b87d72b9367 (diff)
winit: clean up
* shorter cmds * lock screen even if wlr-randr call fails * on inactivity decrease brightness 10%
-rwxr-xr-x.config/wayland/winit6
1 files changed, 3 insertions, 3 deletions
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" &