theme selector script
This commit is contained in:
parent
3a07a1175e
commit
b329fef56f
1 changed files with 14 additions and 0 deletions
14
.local/share/scripts/theme-selector.sh
Normal file
14
.local/share/scripts/theme-selector.sh
Normal file
|
@ -0,0 +1,14 @@
|
|||
#!/bin/bash
|
||||
|
||||
# defaults
|
||||
theme="catppuccin"
|
||||
background="dark"
|
||||
|
||||
|
||||
# change rofi theme
|
||||
sed -i "s/\(@import \".config\/rofi\/colors\/\).*/\1${theme}.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
|
Loading…
Add table
Reference in a new issue