theme selector script

This commit is contained in:
Tiago Sousa 2024-02-17 14:18:08 +00:00
parent 3a07a1175e
commit b329fef56f

View 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