Switch to Gruvbox as light theme

This commit is contained in:
coolneng 2023-02-01 03:40:42 +01:00
parent b2f54d5d6e
commit d2a1edf021
Signed by: coolneng
GPG Key ID: 9893DA236405AF57
8 changed files with 86 additions and 56 deletions

View File

@ -0,0 +1,33 @@
## name: Gruvbox Light
## author: Pavel Pertsev
## license: MIT/X11
## upstream: https://raw.githubusercontent.com/gruvbox-community/gruvbox-contrib/master/kitty/gruvbox-light.conf
selection_foreground #3c3836
selection_background #d65d0e
background #fbf1c7
foreground #3c3836
color0 #ebdbb2
color1 #cc241d
color2 #98971a
color3 #d79921
color4 #458588
color5 #b16286
color6 #689d6a
color7 #7c6f64
color8 #928374
color9 #9d0006
color10 #79740e
color11 #b57614
color12 #076678
color13 #8f3f71
color14 #427b58
color15 #282828
cursor #665c54
cursor_text_color #bdae93
url_color #458588

View File

@ -1,40 +0,0 @@
background #e8e9ec
foreground #33374c
selection_background #d2d4dd
selection_foreground #33374c
cursor #33374c
cursor_text_color #e8e9ec
# black
color0 #dcdfe7
color8 #8389a3
# red
color1 #cc517a
color9 #cc3768
# green
color2 #668e3d
color10 #598030
# yellow/orange
color3 #c57339
color11 #b6662d
# blue
color4 #2d539e
color12 #22478e
# magenta/purple
color5 #7759b4
color13 #6845ad
# cyan
color6 #3f83a6
color14 #327698
# white
color7 #33374c
color15 #262a3f

View File

@ -33,7 +33,7 @@ let g:UltiSnipsJumpBackwardTrigger = '<s-tab>'
call plug#begin('~/.config/nvim/plugged') call plug#begin('~/.config/nvim/plugged')
Plug 'Raimondi/delimitMate' Plug 'Raimondi/delimitMate'
Plug 'arcticicestudio/nord-vim' Plug 'arcticicestudio/nord-vim'
Plug 'habamax/vim-polar' Plug 'morhetz/gruvbox'
Plug 'LnL7/vim-nix' Plug 'LnL7/vim-nix'
call plug#end() call plug#end()
""Colors ""Colors

View File

@ -1,17 +1,18 @@
#!/bin/sh #!/bin/sh
LIGHT_THEME="gruvbox"
DARK_THEME="nord"
capitalize() { capitalize() {
printf '%s' "$1" | head -c 1 | tr "[:lower:]" "[:upper:]" printf '%s' "$1" | head -c 1 | tr "[:lower:]" "[:upper:]"
printf '%s' "$1" | tail -c '+2' printf '%s' "$1" | tail -c '+2'
} }
change_theme() { change_theme() {
sed -i "s/iceberg_$1/iceberg_$2/" ~/.config/kitty/kitty.conf sed -i "s/$1/$2/" ~/.config/kitty/kitty.conf
sed -i "s/bg=$1/bg=$2/" ~/.config/nvim/init.vim sed -i "s/$1/$2/" ~/.config/nvim/init.vim
sed -i "s/iceberg_$1/iceberg_$2/" ~/.dotfiles/tmux/.tmux.conf sed -i "s/$1/$2/" ~/.config/zathura/zathurarc
sed -i "s/iceberg_$1/iceberg_$2/" ~/.config/zathura/zathurarc kitty +kitten themes --reload-in=all "$(capitalize "$2")"
kitty +kitten themes --reload-in=all "Iceberg $(capitalize "$2")"
tmux source-file ~/.tmux.conf
nvr --remote-send ":source ~/.config/nvim/init.vim <CR>" nvr --remote-send ":source ~/.config/nvim/init.vim <CR>"
} }
@ -35,10 +36,10 @@ mode=$1
if [ "$mode" = "light" ]; then if [ "$mode" = "light" ]; then
emacsclient --eval "(load-theme 'doom-solarized-light 'no-confirm)" emacsclient --eval "(load-theme 'doom-solarized-light 'no-confirm)"
change_theme dark light change_theme "$DARK_THEME" "$LIGHT_THEME"
recolor_zathura recolor_zathura
else else
emacsclient --eval "(load-theme 'doom-one 'no-confirm)" emacsclient --eval "(load-theme 'doom-one 'no-confirm)"
change_theme light dark change_theme "$LIGHT_THEME" "$DARK_THEME"
recolor_zathura recolor_zathura
fi fi

View File

@ -78,3 +78,4 @@ set -g mouse on
bind -T root WheelUpPane if-shell -F -t = "#{alternate_on}" "send-keys -M" "select-pane -t =; copy-mode -e; send-keys -M" bind -T root WheelUpPane if-shell -F -t = "#{alternate_on}" "send-keys -M" "select-pane -t =; copy-mode -e; send-keys -M"
bind -T root WheelDownPane if-shell -F -t = "#{alternate_on}" "send-keys -M" "select-pane -t =; send-keys -M" bind -T root WheelDownPane if-shell -F -t = "#{alternate_on}" "send-keys -M" "select-pane -t =; send-keys -M"
source ~/.tmux/statusbar.conf

View File

@ -0,0 +1,40 @@
set notification-error-bg "#fbf1c7" # bg
set notification-error-fg "#9d0006" # bright:red
set notification-warning-bg "#fbf1c7" # bg
set notification-warning-fg "#b57614" # bright:yellow
set notification-bg "#fbf1c7" # bg
set notification-fg "#79740e" # bright:green
set completion-bg "#d5c4a1" # bg2
set completion-fg "#3c3836" # fg
set completion-group-bg "#ebdbb2" # bg1
set completion-group-fg "#928374" # gray
set completion-highlight-bg "#076678" # bright:blue
set completion-highlight-fg "#d5c4a1" # bg2
# Define the color in index mode
set index-bg "#d5c4a1" # bg2
set index-fg "#3c3836" # fg
set index-active-bg "#076678" # bright:blue
set index-active-fg "#d5c4a1" # bg2
set inputbar-bg "#fbf1c7" # bg
set inputbar-fg "#3c3836" # fg
set statusbar-bg "#d5c4a1" # bg2
set statusbar-fg "#3c3836" # fg
set highlight-color "#b57614" # bright:yellow
set highlight-active-color "#af3a03" # bright:orange
set default-bg "#fbf1c7" # bg
set default-fg "#3c3836" # fg
set render-loading true
set render-loading-bg "#fbf1c7" # bg
set render-loading-fg "#3c3836" # fg
# Recolor book content's color
set recolor-lightcolor "#fbf1c7" # bg
set recolor-darkcolor "#3c3836" # fg
set recolor "true"
# set recolor-keephue true # keep original color

View File

@ -1,5 +0,0 @@
set recolor-lightcolor "#e8e9ec"
set recolor-darkcolor "#33374c"
set completion-bg "#e8e9ec"
set statusbar-bg "#e8e9ec"
set statusbar-fg "#33374c"