arch-scripts/pywal/update-waybar-theme.sh
2025-09-08 04:42:01 -06:00

17 lines
362 B
Bash
Executable File

#!/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