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/styles.sh | |
| parent | 9f004955033387eebf3f58aec2501fba5020f307 (diff) | |
feat(polybar): update polybar style
Diffstat (limited to 'config/polybar/cuts/scripts/styles.sh')
| -rwxr-xr-x | config/polybar/cuts/scripts/styles.sh | 89 |
1 files changed, 89 insertions, 0 deletions
diff --git a/config/polybar/cuts/scripts/styles.sh b/config/polybar/cuts/scripts/styles.sh new file mode 100755 index 0000000..94b6739 --- /dev/null +++ b/config/polybar/cuts/scripts/styles.sh @@ -0,0 +1,89 @@ +#!/usr/bin/env bash + +# Color files +PFILE="$HOME/.config/polybar/cuts/colors.ini" +RFILE="$HOME/.config/polybar/cuts/scripts/rofi/colors.rasi" + +# Change colors +change_color() { + # polybar + sed -i -e "s/background = #.*/background = #${BG}/g" $PFILE + sed -i -e "s/background-alt = #.*/background-alt = #8C${BG}/g" $PFILE + sed -i -e "s/foreground = #.*/foreground = #${FG}/g" $PFILE + sed -i -e "s/foreground-alt = #.*/foreground-alt = #33${FG}/g" $PFILE + sed -i -e "s/primary = #.*/primary = $AC/g" $PFILE + + # rofi + cat > $RFILE <<- EOF + /* colors */ + + * { + al: #00000000; + bg: #${BG}BF; + bga: #${BG}FF; + fg: #${FG}FF; + ac: ${AC}FF; + se: ${AC}1A; + } + EOF + + polybar-msg cmd restart +} + +if [[ $1 = "--mode1" ]]; then + BG="0a0a0a" + FG="f5f5f5" + AC="#fdd835" + change_color +elif [[ $1 = "--mode2" ]]; then + BG="263238" + FG="DFDFDF" + AC="#00BCD4" + change_color +elif [[ $1 = "--mode3" ]]; then + BG="112526" + FG="C4AAA5" + AC="#EE7313" + change_color +elif [[ $1 = "--mode4" ]]; then + BG="461320" + FG="f5f5f5" + AC="#fdd835" + change_color +elif [[ $1 = "--mode5" ]]; then + BG="092F1C" + FG="f5f5f5" + AC="#fdd835" + change_color +elif [[ $1 = "--mode6" ]]; then + BG="003C3C" + FG="CFCFCF" + AC="#00acc1" + change_color +elif [[ $1 = "--mode7" ]]; then + BG="3C3836" + FG="EBDBB2" + AC="#FB4934" + change_color +elif [[ $1 = "--mode8" ]]; then + BG="2E3440" + FG="D8DEE9" + AC="#BF616A" + change_color +elif [[ $1 = "--mode9" ]]; then + BG="002b36" + FG="839496" + AC="#b58900" + change_color +elif [[ $1 = "--mode10" ]]; then + BG="1F1626" + FG="FFFFFF" + AC="#FFD16F" + change_color +else + cat <<- _EOF_ + No option specified, Available options: + --mode1 --mode2 --mode3 --mode4 --mode5 + --mode6 --mode7 --mode8 --mode9 --mode10 + _EOF_ +fi |
