diff --git a/kitty/.config/kitty/themes/iceberg_light.conf b/kitty/.config/kitty/themes/iceberg_light.conf deleted file mode 100644 index 1114685..0000000 --- a/kitty/.config/kitty/themes/iceberg_light.conf +++ /dev/null @@ -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 \ No newline at end of file diff --git a/kitty/.config/kitty/themes/nord.conf b/kitty/.config/kitty/themes/nord.conf deleted file mode 100644 index f48ac3d..0000000 --- a/kitty/.config/kitty/themes/nord.conf +++ /dev/null @@ -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 diff --git a/neovim/.config/nvim/init.vim b/neovim/.config/nvim/init.vim index 991f956..29cfd7e 100644 --- a/neovim/.config/nvim/init.vim +++ b/neovim/.config/nvim/init.vim @@ -33,7 +33,7 @@ let g:UltiSnipsJumpBackwardTrigger = '' call plug#begin('~/.config/nvim/plugged') Plug 'Raimondi/delimitMate' Plug 'arcticicestudio/nord-vim' -Plug 'habamax/vim-polar' +Plug 'morhetz/gruvbox' Plug 'LnL7/vim-nix' call plug#end() ""Colors diff --git a/scripts/.local/share/scripts/switch-theme b/scripts/.local/share/scripts/switch-theme index fdf4184..851a6dd 100755 --- a/scripts/.local/share/scripts/switch-theme +++ b/scripts/.local/share/scripts/switch-theme @@ -1,17 +1,21 @@ #!/bin/sh +LIGHT_THEME="gruvbox" +DARK_THEME="nord" + capitalize() { printf '%s' "$1" | head -c 1 | tr "[:lower:]" "[:upper:]" printf '%s' "$1" | tail -c '+2' } change_theme() { - sed -i "s/iceberg_$1/iceberg_$2/" ~/.config/kitty/kitty.conf - sed -i "s/bg=$1/bg=$2/" ~/.config/nvim/init.vim - sed -i "s/iceberg_$1/iceberg_$2/" ~/.dotfiles/tmux/.tmux.conf - sed -i "s/iceberg_$1/iceberg_$2/" ~/.config/zathura/zathurarc - kitty +kitten themes --reload-in=all "Iceberg $(capitalize "$2")" - tmux source-file ~/.tmux.conf + sed -i "s/$1/$2/" ~/.config/nvim/init.vim + sed -i "s/$1/$2/" ~/.config/zathura/zathurarc + if [ "$2" = "$LIGHT_THEME" ]; then + kitty +kitten themes --reload-in=all "$(capitalize "$2") Light" + else + kitty +kitten themes --reload-in=all "$(capitalize "$2")" + fi nvr --remote-send ":source ~/.config/nvim/init.vim " } @@ -35,10 +39,10 @@ mode=$1 if [ "$mode" = "light" ]; then emacsclient --eval "(load-theme 'doom-solarized-light 'no-confirm)" - change_theme dark light + change_theme "$DARK_THEME" "$LIGHT_THEME" recolor_zathura else emacsclient --eval "(load-theme 'doom-one 'no-confirm)" - change_theme light dark + change_theme "$LIGHT_THEME" "$DARK_THEME" recolor_zathura fi diff --git a/tmux/.tmux.conf b/tmux/.tmux.conf index 4720bb1..f9fcf83 100644 --- a/tmux/.tmux.conf +++ b/tmux/.tmux.conf @@ -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 WheelDownPane if-shell -F -t = "#{alternate_on}" "send-keys -M" "select-pane -t =; send-keys -M" +source ~/.tmux/statusbar.conf diff --git a/tmux/.tmux/nord.conf b/tmux/.tmux/statusbar.conf similarity index 96% rename from tmux/.tmux/nord.conf rename to tmux/.tmux/statusbar.conf index 41e22f7..99fa9e5 100644 --- a/tmux/.tmux/nord.conf +++ b/tmux/.tmux/statusbar.conf @@ -7,5 +7,5 @@ set -g status-right "" set -g pane-border-style "fg=#2e3244" set -g pane-active-border-style "fg=#454b68" setw -g window-status-style "none,fg=black,bg=brightblack" -setw -g window-status-format "#[fg=black,bg=brightblack] #I #W " -setw -g window-status-current-format "#[fg=black,bg=cyan,bold] #I #W " +setw -g window-status-format "#[fg=black,bg=brightblack] #I #W " +setw -g window-status-current-format "#[fg=black,bg=cyan,bold] #I #W " diff --git a/zathura/.config/zathura/gruvbox.conf b/zathura/.config/zathura/gruvbox.conf new file mode 100644 index 0000000..18c4b70 --- /dev/null +++ b/zathura/.config/zathura/gruvbox.conf @@ -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 diff --git a/zathura/.config/zathura/iceberg_light.conf b/zathura/.config/zathura/iceberg_light.conf deleted file mode 100644 index 2fbdd1e..0000000 --- a/zathura/.config/zathura/iceberg_light.conf +++ /dev/null @@ -1,5 +0,0 @@ -set recolor-lightcolor "#e8e9ec" -set recolor-darkcolor "#33374c" -set completion-bg "#e8e9ec" -set statusbar-bg "#e8e9ec" -set statusbar-fg "#33374c"