diff options
| author | Anhgelus Morhtuuzh <anhgelus.morhtuuzh@gmx.com> | 2023-07-25 23:46:05 +0200 |
|---|---|---|
| committer | Anhgelus Morhtuuzh <anhgelus.morhtuuzh@gmx.com> | 2023-07-25 23:46:05 +0200 |
| commit | c57e8ab185623510e527400a34d729b313daffc4 (patch) | |
| tree | 7b67d44894255ce4810d8074d68fce88f66d37d0 /config/polybar/shapes/scripts/style-switch.sh | |
| parent | 9f004955033387eebf3f58aec2501fba5020f307 (diff) | |
feat(polybar): update polybar style
Diffstat (limited to 'config/polybar/shapes/scripts/style-switch.sh')
| -rwxr-xr-x | config/polybar/shapes/scripts/style-switch.sh | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/config/polybar/shapes/scripts/style-switch.sh b/config/polybar/shapes/scripts/style-switch.sh new file mode 100755 index 0000000..9444131 --- /dev/null +++ b/config/polybar/shapes/scripts/style-switch.sh @@ -0,0 +1,32 @@ +#!/usr/bin/env bash + +FILE="$HOME/.config/polybar/shapes/glyphs.ini" + +# Replace Glyphs +change_style() { + sed -i -e "s/gleft = .*/gleft = $1/g" $FILE + sed -i -e "s/gright = .*/gright = $2/g" $FILE + + polybar-msg cmd restart +} + + +# Launch Rofi +MENU="$(rofi -no-config -no-lazy-grab -sep "|" -dmenu -i -p '' \ +-theme $HOME/.config/polybar/shapes/scripts/rofi/styles.rasi \ +<<< "♥ Style-1|♥ Style-2|♥ Style-3|♥ Style-4|♥ Style-5|♥ Style-6|♥ Style-7|♥ Style-8|♥ Style-9|♥ Style-10|♥ Style-11|♥ Style-12|")" + case "$MENU" in + ## Light Colors + *Style-1) change_style ;; + *Style-2) change_style ;; + *Style-3) change_style ;; + *Style-4) change_style ;; + *Style-5) change_style ;; + *Style-6) change_style ;; + *Style-7) change_style ;; + *Style-8) change_style ;; + *Style-9) change_style ;; + *Style-10) change_style ;; + *Style-11) change_style ;; + *Style-12) change_style ;; + esac |
