blob: 96d1b7fb00c85f5a0883621c7c9654918883e226 (
plain) (
tree)
|
|
#!/bin/sh
# background
swaybg -m fill -i "${XDG_DATA_HOME:-$HOME/.local/share}/wall" &
# notification deamon
mako &
# audio
pipewire &
pipewire-pulse &
sleep 3 && wireplumber &
# 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 && waylock -init-color 0x000000" \
resume "wlr-randr --output ${disp} --on && wlr-randr --output ${disp} --adaptive-sync enabled" &
|