aboutsummaryrefslogtreecommitdiff
path: root/src/.config/polybar/scripts/style-switch.sh
diff options
context:
space:
mode:
authorAaditya Dhruv <[email protected]>2023-08-27 00:48:12 -0500
committerAaditya Dhruv <[email protected]>2023-08-27 00:48:12 -0500
commit598dc8dc0b06b13da8c4e2824dcff7d55a26fbf0 (patch)
tree8d1516fbbc46efea004548e5c2a348cd2e219409 /src/.config/polybar/scripts/style-switch.sh
parentde575ce30b06e140a53a59ed8343a6ed4e76a6e7 (diff)
restructuring dotfiles to streamline ansible
Diffstat (limited to 'src/.config/polybar/scripts/style-switch.sh')
-rwxr-xr-xsrc/.config/polybar/scripts/style-switch.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/.config/polybar/scripts/style-switch.sh b/src/.config/polybar/scripts/style-switch.sh
new file mode 100755
index 0000000..e0188f3
--- /dev/null
+++ b/src/.config/polybar/scripts/style-switch.sh
@@ -0,0 +1,15 @@
+#!/usr/bin/env bash
+
+SDIR="$HOME/.config/polybar/forest/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