update script

easier to change wpp
This commit is contained in:
Lucas Barbieri 2024-01-23 17:17:14 -03:00
parent b55a2629fb
commit 66bc632f98

View File

@ -1,10 +1,17 @@
#!/bin/bash #!/bin/bash
current_theme=$(readlink ~/.config/tmux/theme.conf) CURRENT_THEME=$(readlink ~/.config/tmux/theme.conf)
if [[ $current_theme == *tmux-white.conf ]]; then WHITE_WIDE_WPP=~/pics/wallpapers/sl3.jpg
WHITE_NORMAL_WPP=~/pics/wallpapers/sl2.png
RED_WIDE_WPP=~/pics/wallpapers/bm5.jpg
RED_NORMAL_WPP=~/pics/wallpapers/bm3.png
if [[ $CURRENT_THEME == *tmux-white.conf ]]; then
# change wallpaper # change wallpaper
swww img -o DP-3 ~/pics/wallpapers/a\ carnival.jpg swww img -o HDMI-A-1 $RED_WIDE_WPP
swww img -o HDMI-A-1 ~/pics/wallpapers/the\ true\ old\ god.jpg swww img -o DP-3 $RED_NORMAL_WPP
# change tmux theme and reload # change tmux theme and reload
ln -sf ~/.config/tmux/tmux-red.conf ~/.config/tmux/theme.conf ln -sf ~/.config/tmux/tmux-red.conf ~/.config/tmux/theme.conf
@ -20,10 +27,13 @@ if [[ $current_theme == *tmux-white.conf ]]; then
# change neofetch pic (yes lmao) # change neofetch pic (yes lmao)
sed -i 's/rh.jpg/red.jpg/g' ~/.config/neofetch/config.conf sed -i 's/rh.jpg/red.jpg/g' ~/.config/neofetch/config.conf
sed -i '0,/cl11/{s/cl11/cl3/}' ~/.config/neofetch/config.conf sed -i '0,/cl11/{s/cl11/cl3/}' ~/.config/neofetch/config.conf
# waybar black css
killall waybar; waybar > /dev/null &
else else
# change wpp # change wpp
swww img -o DP-3 ~/pics/wallpapers/HOLY.png swww img -o HDMI-A-1 $WHITE_WIDE_WPP
swww img -o HDMI-A-1 ~/pics/wallpapers/okw\ tf.jpg swww img -o DP-3 $WHITE_NORMAL_WPP
# change tmux theme and reload # change tmux theme and reload
ln -sf ~/.config/tmux/tmux-white.conf ~/.config/tmux/theme.conf ln -sf ~/.config/tmux/tmux-white.conf ~/.config/tmux/theme.conf
@ -39,4 +49,7 @@ else
# neofetch # neofetch
sed -i 's/red.jpg/rh.jpg/g' ~/.config/neofetch/config.conf sed -i 's/red.jpg/rh.jpg/g' ~/.config/neofetch/config.conf
sed -i '0,/cl3/{s/cl3/cl11/}' ~/.config/neofetch/config.conf sed -i '0,/cl3/{s/cl3/cl11/}' ~/.config/neofetch/config.conf
# waybar white css
killall waybar; waybar -s ~/.config/waybar/style-solarized.css > /dev/null &
fi fi