diff options
-rwxr-xr-x | .config/river/autostart.sh | 5 |
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' & |