Switch to Gruvbox as light theme

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

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

@ -1,50 +0,0 @@
# vim:ft=kitty
## name: Nord
## author: Connor Holyday
## license: MIT
## upstream: https://raw.githubusercontent.com/connorholyday/nord-kitty/master/nord.conf
## blurb: An arctic, north-bluish clean and elegant Kitty theme.
# Nord Colorscheme for Kitty
# Based on:
# - https://gist.github.com/marcusramberg/64010234c95a93d953e8c79fdaf94192
# - https://github.com/arcticicestudio/nord-hyper
foreground #D8DEE9
background #2E3440
selection_foreground #000000
selection_background #FFFACD
url_color #0087BD
cursor #81A1C1
# black
color0 #3B4252
color8 #4C566A
# red
color1 #BF616A
color9 #BF616A
# green
color2 #A3BE8C
color10 #A3BE8C
# yellow
color3 #EBCB8B
color11 #EBCB8B
# blue
color4 #81A1C1
color12 #81A1C1
# magenta
color5 #B48EAD
color13 #B48EAD
# cyan
color6 #88C0D0
color14 #8FBCBB
# white
color7 #E5E9F0
color15 #ECEFF4

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,21 @@
#!/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/nvim/init.vim
sed -i "s/bg=$1/bg=$2/" ~/.config/nvim/init.vim sed -i "s/$1/$2/" ~/.config/zathura/zathurarc
sed -i "s/iceberg_$1/iceberg_$2/" ~/.dotfiles/tmux/.tmux.conf if [ "$2" = "$LIGHT_THEME" ]; then
sed -i "s/iceberg_$1/iceberg_$2/" ~/.config/zathura/zathurarc kitty +kitten themes --reload-in=all "$(capitalize "$2") Light"
kitty +kitten themes --reload-in=all "Iceberg $(capitalize "$2")" else
tmux source-file ~/.tmux.conf kitty +kitten themes --reload-in=all "$(capitalize "$2")"
fi
nvr --remote-send ":source ~/.config/nvim/init.vim <CR>" nvr --remote-send ":source ~/.config/nvim/init.vim <CR>"
} }
@ -35,10 +39,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"