summaryrefslogtreecommitdiff
path: root/.config/wayland/winit
diff options
context:
space:
mode:
authorsinanmohd <sinan@firemail.cc>2023-05-03 12:07:31 +0530
committersinanmohd <sinan@firemail.cc>2023-05-03 12:07:31 +0530
commitfdd9bae3ee6c08e58b410e5514597131188d5936 (patch)
treea6fb2ba95ba88c4c144a694475bd8316cf6949a6 /.config/wayland/winit
parent498fb33ec1bcac506ba59282f0dd5b29c61afab2 (diff)
winit: properly parallelize tasks
Diffstat (limited to '.config/wayland/winit')
-rwxr-xr-x.config/wayland/winit6
1 files changed, 3 insertions, 3 deletions
diff --git a/.config/wayland/winit b/.config/wayland/winit
index 4bb25cb..1423d45 100755
--- a/.config/wayland/winit
+++ b/.config/wayland/winit
@@ -9,7 +9,7 @@ mako &
# audio
pipewire &
pipewire-pulse &
-sleep 3 && wireplumber &
+sleep 1 && wireplumber &
# wob
wobpipe="${XDG_RUNTIME_DIR:-${TMPDIR:-/tmp}}/wobpipe" &&
@@ -17,8 +17,8 @@ mkfifo "$wobpipe" &&
tail -f "$wobpipe" | wob &
# screen lock
-disp="$(wlr-randr | grep -om1 '^[^ ]*')"
-timeout=60 # seconds >5
+disp="$(wlr-randr | grep -om1 '^[^ ]*')" &&
+timeout=60 && # seconds >5
swayidle \
timeout "$((timeout - 5))" "brightnessctl --save; brightnessctl set 10%-" \
resume "brightnessctl --restore" \