aboutsummaryrefslogtreecommitdiff
path: root/.config/river/autostart.sh
diff options
context:
space:
mode:
authorJustine Smithies <justine@smithies.me.uk>2024-03-08 20:00:31 +0000
committerJustine Smithies <justine@smithies.me.uk>2024-03-08 20:00:31 +0000
commit34cca98a51c2e9cee58d80d2c70c3dd1dc598739 (patch)
tree810db1135a4f94293aefa0ee332af5a9e202b57f /.config/river/autostart.sh
parentbe020c5a49fa7f2d24c39230c8b6be6049e7fe30 (diff)
Fix River autostart script ref swaylock wallpaper
Diffstat (limited to '.config/river/autostart.sh')
-rwxr-xr-x.config/river/autostart.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/.config/river/autostart.sh b/.config/river/autostart.sh
index 1d1eaa8..5b4065c 100755
--- a/.config/river/autostart.sh
+++ b/.config/river/autostart.sh
@@ -19,8 +19,9 @@ pkill -f /usr/libexec/xdg-desktop-portal-wlr
pkill -f kanshi
kanshi &
+read -r wallpaper<~/.cache/wallpaper
pkill -f swaybg
-swaybg -m fill -i ~/.cache/wallpaper &
+swaybg -m fill -i "$wallpaper" &
pkill -f dunst
dunst &
@@ -33,5 +34,5 @@ export wallpaper='~/.cache/wallpaper'
pkill -f swayidle
swayidle -w \
timeout 300 'swaylock -f -i $wallpaper' \
- timeout 600 'wlopm --off \*;swaylock -F -i ~/.cache/wallpaper' resume 'wlopm --on \*' \
+ timeout 600 'wlopm --off \*;swaylock -F -i $wallpaper' resume 'wlopm --on \*' \
before-sleep 'swaylock -f -i $wallpaper' &