11 lines
512 B
Bash
Executable File
11 lines
512 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
COLOR_DIR="$HOME/.config/rofi/colors"
|
|
colors=$(find "$COLOR_DIR" -maxdepth 1 -name "*.rasi" -printf "%f\n" | sed "s/\.rasi$//" | sort)
|
|
selected=$(echo -e "$colors" | rofi -dmenu -theme "$HOME/.config/rofi/theme-switcher/theme-switcher.rasi" -i -p "Select Color Theme:")
|
|
|
|
if [ -n "$selected" ]; then
|
|
echo "@import \"~/.config/rofi/colors/${selected}.rasi\"" > "$HOME/.config/rofi/shared/colors.rasi"
|
|
notify-send "Rofi Colors Switched" "Colors are now: $selected" -u normal -t 3000
|
|
fi
|