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/cuts/scripts/style-switch.sh | |
| parent | 9f004955033387eebf3f58aec2501fba5020f307 (diff) | |
feat(polybar): update polybar style
Diffstat (limited to 'config/polybar/cuts/scripts/style-switch.sh')
| -rwxr-xr-x | config/polybar/cuts/scripts/style-switch.sh | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/config/polybar/cuts/scripts/style-switch.sh b/config/polybar/cuts/scripts/style-switch.sh new file mode 100755 index 0000000..e693e53 --- /dev/null +++ b/config/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 |
