diff options
author | mono-b <monoblanco@DRAINERDOMAIN.localdomain> | 2022-12-26 04:08:53 -0300 |
---|---|---|
committer | mono-b <monoblanco@DRAINERDOMAIN.localdomain> | 2022-12-26 04:08:53 -0300 |
commit | 8dc8f2d52338fd87e7763995e6732f5a295300e8 (patch) | |
tree | 56ea8a124b9a81e42251ffa1be92ad6475d7bef3 /polybar/cuts/scripts/style-switch.sh |
huh
Diffstat (limited to 'polybar/cuts/scripts/style-switch.sh')
-rwxr-xr-x | polybar/cuts/scripts/style-switch.sh | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/polybar/cuts/scripts/style-switch.sh b/polybar/cuts/scripts/style-switch.sh new file mode 100755 index 0000000..e693e53 --- /dev/null +++ b/polybar/cuts/scripts/style-switch.sh @@ -0,0 +1,20 @@ +#!/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 |