dots/configs/home/.config/polybar/old/scripts/style-switch.sh

16 lines
488 B
Bash
Raw Normal View History

2022-04-03 01:11:04 +02:00
#!/usr/bin/env bash
SDIR="$HOME/.config/polybar/scripts"
# Launch Rofi
MENU="$(rofi -no-config -no-lazy-grab -sep "|" -dmenu -i -p '' \
-theme $SDIR/rofi/styles.rasi \
<<< " Default| Nord| Gruvbox| Dark| Cherry|")"
case "$MENU" in
*Default) "$SDIR"/styles.sh --default ;;
*Nord) "$SDIR"/styles.sh --nord ;;
*Gruvbox) "$SDIR"/styles.sh --gruvbox ;;
*Dark) "$SDIR"/styles.sh --dark ;;
*Cherry) "$SDIR"/styles.sh --cherry ;;
esac