first commit

This commit is contained in:
2026-03-30 14:53:09 -06:00
commit fbec1a6ade
81 changed files with 4479 additions and 0 deletions

106
toggle-theme-v2.sh Executable file
View File

@@ -0,0 +1,106 @@
#!/bin/bash
scope=$1
themes=(gruvbox catpu nord)
kitty_config_path='/home/arthur/.config/kitty/'
dmenu_config_path='/home/arthur/scripts/constantlib.sh'
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/'
starship_config_path='/home/arthur/.config/'
wengine_setter='/home/arthur/.config/themes/wallpaper-engine.sh'
setwallpaper_path='/home/arthur/.config/themes/wallpaper-engine.sh'
firefox_prefs='/home/arthur/.mozilla/firefox/8gto1yy4.default-release/user.js'
nwg_look_path='/home/arthur/.local/share/nwg-look/gsettings'
bashtop_path='/home/arthur/.config/bashtop/themes/theme.theme'
bashrc='/home/arthur/.bashrc'
rofi_path='/home/arthur/.config/rofi/config.rasi'
catpu_wengine_dp3='https://steamcommunity.com/sharedfiles/filedetails/?id=3371368351'
gruvbox_wengine_dp2='https://steamcommunity.com/sharedfiles/filedetails/?id=3318790923'
for tem in ${themes[@]}
do
if [ "$scope" = $tem ]; then
#variable de entorno
sed -i "/^export TEM/c\export TEM=$tem" "$bashrc"
export TEM=$tem
#bashtop
cp $bashtop_path"."$tem $bashtop_path
#ROFI
cp $rofi_path"."$tem $rofi_path
#firefox
cp $firefox_prefs"."$tem $firefox_prefs
#GTK-CONFIG
cp $nwg_look_path"."$tem $nwg_look_path
nwg-look -a
#MODIFICAR KITTY
cp $kitty_config_path"kitty.conf."$tem $kitty_config_path"kitty.conf"
#MODIFICAR DMENU
cp $dmenu_config_path"."$tem $dmenu_config_path
#MODIFICAR WAYBAR
cp $waybar_config_path"style.css."$tem $waybar_config_path"style.css"
cp $waybar_config_path"config.jsonc."$tem $waybar_config_path"config.jsonc"
cp $waybar_config_path"modules.jsonc."$tem $waybar_config_path"modules.jsonc"
killall waybar
#MODIFICAR WOFI
cp $wofi_config_path"style.css."$tem $wofi_config_path"style.css"
#MODIFICAR STARSHIP
cp $starship_config_path"starship.toml."$tem $starship_config_path"starship.toml"
#MODIFICAR HYPRPAPER
cp $hyprpaper_config_path"hyprpaper.conf."$tem $hyprpaper_config_path"hyprpaper.conf"
killall hyprpaper
hyprpaper &
#MODIFICAR HYPRLAND
if [ "$tem" = 'catpu' ]; then
#modificar nvim
sed -i "/^colorscheme /c\colorscheme catppuccin" "$nvim_config_path"
#modificar hyprland
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(edbbb2) rgb(665c54) 90deg" "$hyprpaper_config_path""hyprland.conf"
fi
if [ "$tem" = 'gruvbox' ]; then
#modificar neovim
sed -i "/^colorscheme /c\colorscheme melange" "$nvim_config_path"
#modificar hyprland
sed -i "/^ col.active_border =/c\ col.active_border = rgb(fbf1c7) rgb(fbf1c7) 270deg" "$hyprpaper_config_path""hyprland.conf"
sed -i "/^ col.inactive_border =/c\ col.inactive_border = rgb(282828) rgb(282828) 270deg" "$hyprpaper_config_path""hyprland.conf"
fi
if [ "$tem" = 'nord' ]; then
#modificar nvim
sed -i "/^colorscheme /c\colorscheme $tem" "$nvim_config_path"
#modificar hyprland
sed -i "/^ col.active_border =/c\ col.active_border = rgb(a3be8c) rgb(88c0d0) 90deg" "$hyprpaper_config_path""hyprland.conf"
sed -i "/^ col.inactive_border =/c\ col.inactive_border = rgb(d8dee9) rgb(3b4252) 90deg" "$hyprpaper_config_path""hyprland.conf"
fi
#persistir al reinicio el openrgb
sed -i "/^exec-once = openrgb/c\exec-once = openrgb -p /home/arthur/.config/OpenRGB/$tem.orp" "$hyprpaper_config_path""hyprland.conf"
#wallpaperengine
killall linux-wallpaperengine
cp $setwallpaper_path"."$tem $setwallpaper_path
hyprctl dispatch exec sh ${setwallpaper_path}
waybar & /usr/bin/kitty @ load-config
openrgb -p /home/arthur/.config/OpenRGB/$tem.orp
notify-send -t 12000 -i /home/arthur/scripts/pngegg.png " Tema $tem aplicado" "todas las tareas han sido completadas > v O"
paplay /usr/share/sounds/freedesktop/stereo/complete.oga
fi
done