keep theme on reload (from alacritty) on unknown theme reload current
This commit is contained in:
parent
60814159c2
commit
2ca2444491
@ -21,7 +21,8 @@ fi
|
||||
bspc config border_width 4
|
||||
bspc config window_gap 12
|
||||
|
||||
sh ~/.config/bspwm/commands.sh dark-colors
|
||||
THEME=$(grep colors: ~/.config/alacritty/alacritty.yml | cut -d '*' -f 2)
|
||||
sh ~/.config/bspwm/commands.sh theme "$THEME"
|
||||
|
||||
bspc config split_ratio 0.50
|
||||
bspc config single_monocle true
|
||||
|
@ -3,21 +3,20 @@
|
||||
CMD="$1"
|
||||
shift
|
||||
|
||||
if [ "$CMD" = theme ]; then
|
||||
if [ "$CMD" = theme -a "$1" = next ]; then
|
||||
case $(bspc config focused_border_color) in
|
||||
'#23aba4')
|
||||
THEME=dark-blue
|
||||
;;
|
||||
'#3585ce')
|
||||
THEME=light
|
||||
;;
|
||||
*)
|
||||
THEME=dark
|
||||
;;
|
||||
esac
|
||||
elif [ "$CMD" = theme ] && [ "$1" = dark -o "$1" = dark-blue -o "$1" = light ]; then
|
||||
THEME="$1"
|
||||
if [ "$THEME" = next ]; then
|
||||
case $(bspc config focused_border_color) in
|
||||
'#23aba4')
|
||||
THEME=dark-blue
|
||||
;;
|
||||
'#3585ce')
|
||||
THEME=light
|
||||
;;
|
||||
*)
|
||||
THEME=dark
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
else
|
||||
case $(bspc config focused_border_color) in
|
||||
'#068c70')
|
||||
|
Loading…
x
Reference in New Issue
Block a user