colorscheme related changes
This commit is contained in:
parent
6fa91bd36e
commit
5ef8b7bba8
21 changed files with 34 additions and 241 deletions
|
@ -1,14 +1,28 @@
|
|||
#!/bin/bash
|
||||
|
||||
# defaults
|
||||
theme="catppuccin"
|
||||
background="dark"
|
||||
theme_options=(
|
||||
"catppuccin-dark"
|
||||
"gruvbox-material-dark"
|
||||
"catppuccin-light"
|
||||
"gruvbox-material-light"
|
||||
)
|
||||
|
||||
# rofi script to get what theme to use
|
||||
chosen=$(printf '%s\n' "${theme_options[@]}" | rofi -dmenu -p "Choose a theme")
|
||||
|
||||
theme=$(echo "${chosen}" | cut -d- -f1)
|
||||
background=$(echo "${chosen}" | cut -d- -f2)
|
||||
|
||||
# change rofi theme
|
||||
sed -i "s/\(@import \".config\/rofi\/colors\/\).*/\1${theme}.rasi\"/" ~/.config/rofi/config.rasi
|
||||
sed -i "s/\(@import \".config\/rofi\/colors\/\).*/\1${theme}-${background}.rasi\"/" ~/.config/rofi/config.rasi
|
||||
|
||||
# change neovim theme
|
||||
sed -i "s/\(local color = \).*/\1\"${theme}\"/" ~/.config/nvim/lua/tsousa/plugins/colorscheme.lua
|
||||
sed -i "s/\(local background = \).*/\1\"${background}\"/" ~/.config/nvim/lua/tsousa/plugins/colorscheme.lua
|
||||
|
||||
# change xresources
|
||||
xresources_themes=".Xresources.d"
|
||||
sed -i "s/#include \".*\"/#include \"~\/${xresources_themes}\/${theme}-${background}\"/" ~/.Xresources
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue