dotfiles/waybar/modules/switch-wallpaper.sh
2024-04-02 21:52:23 -05:00

10 lines
396 B
Bash

# -n tells `wal` to skip setting the wallpaper.
wal -i ~/Wallpapers/ -n
# Using feh to tile the wallpaper now.
# We grab the wallpaper location from wal's cache so
# that this works even when a directory is passed.
swww img "$(< "${HOME}/.cache/wal/wal")" --transition-type wipe --transition-angle 45 --transition-fps 90
cp ~/.cache/wal/cava-config ~/dotfiles/cava/config && pkill -USR2 cava