summaryrefslogtreecommitdiff
path: root/polybar/cuts/scripts/color-switch.sh
diff options
context:
space:
mode:
authormono-b <monoblanco@DRAINERDOMAIN.localdomain>2022-12-26 04:08:53 -0300
committermono-b <monoblanco@DRAINERDOMAIN.localdomain>2022-12-26 04:08:53 -0300
commit8dc8f2d52338fd87e7763995e6732f5a295300e8 (patch)
tree56ea8a124b9a81e42251ffa1be92ad6475d7bef3 /polybar/cuts/scripts/color-switch.sh
huh
Diffstat (limited to 'polybar/cuts/scripts/color-switch.sh')
-rwxr-xr-xpolybar/cuts/scripts/color-switch.sh55
1 files changed, 55 insertions, 0 deletions
diff --git a/polybar/cuts/scripts/color-switch.sh b/polybar/cuts/scripts/color-switch.sh
new file mode 100755
index 0000000..83941b6
--- /dev/null
+++ b/polybar/cuts/scripts/color-switch.sh
@@ -0,0 +1,55 @@
+#!/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 \
+<<< " amber| blue| blue-gray| brown| cyan| deep-orange|\
+ deep-purple| green| gray| indigo| blue-light| green-light|\
+ lime| orange| pink| purple| red| teal| yellow| amber-dark|\
+ blue-dark| blue-gray-dark| brown-dark| cyan-dark| deep-orange-dark|\
+ deep-purple-dark| green-dark| gray-dark| indigo-dark| blue-light-dark|\
+ green-light-dark| lime-dark| orange-dark| pink-dark| purple-dark| red-dark| teal-dark| yellow-dark|")"
+ case "$MENU" in
+ ## Light Colors
+ *amber) "$SDIR"/colors-light.sh --amber ;;
+ *blue) "$SDIR"/colors-light.sh --blue ;;
+ *blue-gray) "$SDIR"/colors-light.sh --blue-gray ;;
+ *brown) "$SDIR"/colors-light.sh --brown ;;
+ *cyan) "$SDIR"/colors-light.sh --cyan ;;
+ *deep-orange) "$SDIR"/colors-light.sh --deep-orange ;;
+ *deep-purple) "$SDIR"/colors-light.sh --deep-purple ;;
+ *green) "$SDIR"/colors-light.sh --green ;;
+ *gray) "$SDIR"/colors-light.sh --gray ;;
+ *indigo) "$SDIR"/colors-light.sh --indigo ;;
+ *blue-light) "$SDIR"/colors-light.sh --light-blue ;;
+ *green-light) "$SDIR"/colors-light.sh --light-green ;;
+ *lime) "$SDIR"/colors-light.sh --lime ;;
+ *orange) "$SDIR"/colors-light.sh --orange ;;
+ *pink) "$SDIR"/colors-light.sh --pink ;;
+ *purple) "$SDIR"/colors-light.sh --purple ;;
+ *red) "$SDIR"/colors-light.sh --red ;;
+ *teal) "$SDIR"/colors-light.sh --teal ;;
+ *yellow) "$SDIR"/colors-light.sh --yellow ;;
+ ## Dark Colors
+ *amber-dark) "$SDIR"/colors-dark.sh --amber ;;
+ *blue-dark) "$SDIR"/colors-dark.sh --blue ;;
+ *blue-gray-dark) "$SDIR"/colors-dark.sh --blue-gray ;;
+ *brown-dark) "$SDIR"/colors-dark.sh --brown ;;
+ *cyan-dark) "$SDIR"/colors-dark.sh --cyan ;;
+ *deep-orange-dark) "$SDIR"/colors-dark.sh --deep-orange ;;
+ *deep-purple-dark) "$SDIR"/colors-dark.sh --deep-purple ;;
+ *green-dark) "$SDIR"/colors-dark.sh --green ;;
+ *gray-dark) "$SDIR"/colors-dark.sh --gray ;;
+ *indigo-dark) "$SDIR"/colors-dark.sh --indigo ;;
+ *blue-light-dark) "$SDIR"/colors-dark.sh --light-blue ;;
+ *green-light-dark) "$SDIR"/colors-dark.sh --light-green ;;
+ *lime-dark) "$SDIR"/colors-dark.sh --lime ;;
+ *orange-dark) "$SDIR"/colors-dark.sh --orange ;;
+ *pink-dark) "$SDIR"/colors-dark.sh --pink ;;
+ *purple-dark) "$SDIR"/colors-dark.sh --purple ;;
+ *red-dark) "$SDIR"/colors-dark.sh --red ;;
+ *teal-dark) "$SDIR"/colors-dark.sh --teal ;;
+ *yellow-dark) "$SDIR"/colors-dark.sh --yellow
+ esac