first commit
This commit is contained in:
57
toggle-theme.sh
Executable file
57
toggle-theme.sh
Executable file
@@ -0,0 +1,57 @@
|
||||
#!/bin/bash
|
||||
scope=$1
|
||||
themes=(gruvbox catpu)
|
||||
kitty_config_path='/home/arthur/.config/kitty/'
|
||||
waybar_config_path='/home/arthur/.config/waybar/'
|
||||
nvim_config_path='/home/arthur/.vimrc'
|
||||
wofi_config_path='/home/arthur/.config/wofi/'
|
||||
hyprpaper_config_path='/home/arthur/.config/hypr/'
|
||||
|
||||
for tem in ${themes[@]}
|
||||
do
|
||||
if [ "$scope" = $tem ]; then
|
||||
|
||||
#MODIFICAR KITTY
|
||||
cp $kitty_config_path"kitty.conf."$tem $kitty_config_path"kitty.conf"
|
||||
kitty @ load-config
|
||||
|
||||
#MODIFICAR NVIM
|
||||
if [ "$tem" = 'catpu' ]; then
|
||||
echo "cambiando a catpuchin"
|
||||
sed -i "/^colorscheme /c\colorscheme catppuccin" "$nvim_config_path"
|
||||
else
|
||||
echo "cambiando a $tem"
|
||||
sed -i "/^colorscheme /c\colorscheme $tem" "$nvim_config_path"
|
||||
fi
|
||||
|
||||
#MODIFICAR WAYBAR
|
||||
cp $waybar_config_path"style.css."$tem $waybar_config_path"style.css"
|
||||
killall waybar
|
||||
waybar &
|
||||
|
||||
#MODIFICAR WOFI
|
||||
cp $wofi_config_path"style.css."$tem $wofi_config_path"style.css"
|
||||
|
||||
#MODIFICAR HYPRPAPER
|
||||
cp $hyprpaper_config_path"hyprpaper.conf."$tem $hyprpaper_config_path"hyprpaper.conf"
|
||||
killall hyprpaper
|
||||
hyprpaper &
|
||||
|
||||
#MODIFICAR HYPRLAND
|
||||
|
||||
if [ "$tem" = 'catpu' ]; then
|
||||
sed -i "/^ col.active_border =/c\col.active_border = rgb(98c379) rgb(61afef) 90deg" "$hyprpaper_config_path""hyprland.conf"
|
||||
sed -i "/^ col.inactive_border =/c\col.inactive_border = rgb(d19a66) rgb(c678dd) 90deg" "$hyprpaper_config_path""hyprland.conf"
|
||||
fi
|
||||
|
||||
if [ "$tem" = 'gruvbox' ]; then
|
||||
sed -i "/^ col.active_border =/c\col.active_border = rgb(458588) rgb(d65d0e) 90deg" "$hyprpaper_config_path""hyprland.conf"
|
||||
sed -i "/^ col.inactive_border =/c\col.inactive_border = rgb(fadb2f) rgb(458588) 90deg" "$hyprpaper_config_path""hyprland.conf"
|
||||
fi
|
||||
|
||||
|
||||
|
||||
|
||||
fi
|
||||
|
||||
done
|
||||
Reference in New Issue
Block a user