dotfiles/waybar/modules/switch-wallpaper.sh
2024-07-11 09:20:42 -04:00

11 lines
426 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
# Copy cava and update config
cp ~/.cache/wal/cava-config ~/dotfiles/cava/config && pkill -USR2 cava