add dark-gray theme, adjust terminal colors for dark, dark-blue and light

This commit is contained in:
2020-07-24 11:49:34 +02:00
parent 4ca746b086
commit b2268b5c88
2 changed files with 49 additions and 22 deletions

View File

@ -6,16 +6,18 @@ shift
if [ "$CMD" = theme -a "$1" = next ]; then
case $(bspc config focused_border_color) in
'#23aba4') THEME=dark-blue ;;
'#3585ce') THEME=light ;;
'#3585ce') THEME=dark-gray ;;
'#a59fc6') THEME=light ;;
'#068c70') THEME=material-dark ;;
'#78909c') THEME=material-light ;;
*) THEME=dark ;;
esac
elif [ "$CMD" = theme ] && [ "$1" = dark -o "$1" = dark-blue -o "$1" = light -o "$1" = material-light -o "$1" = material-dark ]; then
elif [ "$CMD" = theme ] && [ "$1" = dark -o "$1" = dark-blue -o "$1" = dark-gray -o "$1" = light -o "$1" = material-dark -o "$1" = material-light ]; then
THEME="$1"
else
case $(bspc config focused_border_color) in
'#3585ce') THEME=dark-blue ;;
'#a59fc6') THEME=dark-gray ;;
'#068c70') THEME=light ;;
'#78909c') THEME=material-dark ;;
'#827717') THEME=material-light ;;
@ -60,6 +62,17 @@ elif [ "$THEME" = dark-blue ]; then
FOCUS_BORDER=#3585ce
EMACS_THEME=lupan-dark-blue
GTK_THEME=Materia-dark
elif [ "$THEME" = dark-gray ]; then
ROOT_BG=#404040
BAR_BG=#494752
BAR_FG=#e3e6e8
BAR_ACTIVE=#736e91
BAR_URGENT=#9b0640
BAR_EMPTY=#808080
NORMAL_BORDER=#808080
FOCUS_BORDER=#a59fc6
EMACS_THEME=lupan-dark-gray
GTK_THEME=Materia-dark
elif [ "$THEME" = material-dark ]; then
ROOT_BG=#37474f
BAR_BG=#263238
@ -118,6 +131,6 @@ case "$CMD" in
| dmenu ${DMENU_ARGS} "$@" -l 20 -i -p Window: | cut -f 1 -d ' ')
;;
dmenu_theme)
sh "$0" theme $(echo -n 'dark\ndark-blue\nlight\nmaterial-light\nmaterial-dark\n' \
sh "$0" theme $(echo -n 'dark\ndark-blue\ndark-gray\nlight\nmaterial-dark\nmaterial-light\n' \
|dmenu ${DMENU_ARGS} "$@" -l 20 -p Theme:)
esac