Rofi
This commit is contained in:
Executable
+10
@@ -0,0 +1,10 @@
|
||||
#!/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
|
||||
Reference in New Issue
Block a user