#!/bin/bash # Check if an image path is provided if [ -z "$1" ]; then echo "Usage: $0 /path/to/image" exit 1 fi # Run pywal to generate the color scheme wal -i "$1" # Copy the generated Waybar CSS to your .config directory cp "${HOME}/.cache/wal/colors-waybar.css" "${HOME}/.config/waybar/" # Reload Waybar to apply the new theme killall -SIGUSR2 waybar