0
0
Fork 0
mirror of https://github.com/stronk-dev/Tokyo-Night-Linux.git synced 2024-10-17 20:58:16 -04:00
tokyo-night-linux/.config/polybar/cuts/scripts/style-switch.sh

21 lines
746 B
Bash
Raw Normal View History

2021-07-18 05:26:12 -04:00
#!/usr/bin/env bash
SDIR="$HOME/.config/polybar/cuts/scripts"
# Launch Rofi
MENU="$(rofi -no-config -no-lazy-grab -sep "|" -dmenu -i -p '' \
-theme $SDIR/rofi/styles.rasi \
<<< " Black| Adapta| Dark| Red| Green| Teal| Gruvbox| Nord| Solarized| Cherry|")"
case "$MENU" in
*Black) "$SDIR"/styles.sh --mode1 ;;
*Adapta) "$SDIR"/styles.sh --mode2 ;;
*Dark) "$SDIR"/styles.sh --mode3 ;;
*Red) "$SDIR"/styles.sh --mode4 ;;
*Green) "$SDIR"/styles.sh --mode5 ;;
*Teal) "$SDIR"/styles.sh --mode6 ;;
*Gruvbox) "$SDIR"/styles.sh --mode7 ;;
*Nord) "$SDIR"/styles.sh --mode8 ;;
*Solarized) "$SDIR"/styles.sh --mode9 ;;
*Cherry) "$SDIR"/styles.sh --mode10 ;;
esac