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/pwidgets/scripts/style-switch.sh

18 lines
599 B
Bash
Raw Normal View History

2021-07-18 05:26:12 -04:00
#!/usr/bin/env bash
SDIR="$HOME/.config/polybar/pwidgets/scripts"
# Launch Rofi
MENU="$(rofi -no-config -no-lazy-grab -sep "|" -dmenu -i -p '' \
-theme $SDIR/rofi/styles.rasi \
<<< " Default| Nord| Gruvbox| Dark| Cherry| White| Black|")"
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 ;;
*White) "$SDIR"/styles.sh --white ;;
*Black) "$SDIR"/styles.sh --black ;;
esac