fix bg/colors update race

This commit is contained in:
Adam 2023-12-30 22:54:44 -05:00
parent 1a9b5a19dc
commit 02cb1ab465

View file

@ -4,8 +4,9 @@
# not by itself though it should work regardless
# Pick a random wallpaper and save a copy
wal -i ~/Pictures/Wallpapers
cp $(awk {print} ~/.cache/wal/wal) ~/.cache/wal/bg
# Leave these &&s to prevent a race
wal -i ~/Pictures/Wallpapers &&
cp $(awk {print} ~/.cache/wal/wal) ~/.cache/wal/bg &&
# Update themes for other stuff it it exists
[[ -x "$(command -v pywalfox)" ]] && pywalfox update