From 9e5203a6b7d079b1676f1b092262e3aae6c11e35 Mon Sep 17 00:00:00 2001 From: coolneng Date: Wed, 1 Feb 2023 08:17:17 +0100 Subject: [PATCH] =?UTF-8?q?Switch=20to=20Ros=C3=A9=20Pine=20as=20light=20t?= =?UTF-8?q?heme?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- neovim/.config/nvim/init.vim | 2 +- scripts/.local/share/scripts/switch-theme | 10 +++--- zathura/.config/zathura/gruvbox.conf | 40 ----------------------- zathura/.config/zathura/rose-pine.conf | 38 +++++++++++++++++++++ 4 files changed, 45 insertions(+), 45 deletions(-) delete mode 100644 zathura/.config/zathura/gruvbox.conf create mode 100644 zathura/.config/zathura/rose-pine.conf diff --git a/neovim/.config/nvim/init.vim b/neovim/.config/nvim/init.vim index 29cfd7e..d64344f 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 'morhetz/gruvbox' +Plug 'rose-pine/neovim' 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 851a6dd..6a1fc63 100755 --- a/scripts/.local/share/scripts/switch-theme +++ b/scripts/.local/share/scripts/switch-theme @@ -1,18 +1,20 @@ #!/bin/sh -LIGHT_THEME="gruvbox" +LIGHT_THEME="rose-pine" DARK_THEME="nord" +KITTY_LIGHT_THEME="Rosé Pine Dawn" +NVIM_COLORSCHEME_LINE=41 capitalize() { printf '%s' "$1" | head -c 1 | tr "[:lower:]" "[:upper:]" - printf '%s' "$1" | tail -c '+2' + printf '%s' "$1" | tail -c '+2' | tr "-" " " | tr "e" "é" } change_theme() { - sed -i "s/$1/$2/" ~/.config/nvim/init.vim + sed -e "$NVIM_COLORSCHEME_LINE s/$1/$2/" -i ~/.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" + kitty +kitten themes --reload-in=all "$KITTY_LIGHT_THEME" else kitty +kitten themes --reload-in=all "$(capitalize "$2")" fi diff --git a/zathura/.config/zathura/gruvbox.conf b/zathura/.config/zathura/gruvbox.conf deleted file mode 100644 index 18c4b70..0000000 --- a/zathura/.config/zathura/gruvbox.conf +++ /dev/null @@ -1,40 +0,0 @@ -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/rose-pine.conf b/zathura/.config/zathura/rose-pine.conf new file mode 100644 index 0000000..749c3dd --- /dev/null +++ b/zathura/.config/zathura/rose-pine.conf @@ -0,0 +1,38 @@ +# https://github.com/rose-pine/rose-pine-theme +# Soho vibes for Zathura: Rosé Pine Dawn +# +# Usage: +# Copy contents of this file to ~/.config/zathura/zathurarc +# +# Change 'recolor' and 'recolor-keephue' to true to change +# the document colors for a more uniform viewing experience. + +set default-bg "#faf4ed" +set default-fg "#575279" + +set statusbar-fg "#9893a5" +set statusbar-bg "#fffaf3" + +set inputbar-bg "#6e6a86" +set inputbar-fg "#faf4ed" + +set notification-bg "#6e6a86" +set notification-fg "#faf4ed" + +set notification-error-bg "#6e6a86" +set notification-error-fg "#ea9d34" + +set notification-warning-bg "#6e6a86" +set notification-warning-fg "#ea9d34" + +set highlight-color "#b4637a" +set highlight-active-color "#d7827e" + +set completion-bg "#6e6a86" +set completion-fg "#d7827e" + +set completion-highlight-fg "#575279" +set completion-highlight-bg "#d7827e" + +set recolor-lightcolor "#faf4ed" +set recolor-darkcolor "#575279"