configs/laptop/scripts/change-colorscheme.sh

51 lines
1.3 KiB
Bash
Raw Normal View History

2024-02-10 10:13:44 -03:00
#!/bin/bash
WHITE_NORMAL_WPP=~/pics/min.png
MONOCHROME_NORMAL_WPP=~/pics/monochrome-1.png
2024-02-10 10:13:44 -03:00
CHOICE=$(tofi <$HOME/scripts/choices)
2024-02-10 10:13:44 -03:00
case "$CHOICE" in
monochrome)
~/scripts/swww.sh $MONOCHROME_NORMAL_WPP
2024-02-10 10:13:44 -03:00
ln -sf ~/.config/tmux/tmux-monochrome.conf ~/.config/tmux/theme.conf
2024-02-10 10:13:44 -03:00
tmux source-file ~/.config/tmux/tmux.conf
sed -i 's/color_scheme = .*/color_scheme = "monochrome_glorb"/g' ~/.config/wezterm/wezterm.lua
2024-02-10 10:13:44 -03:00
sed -i 's/image_source=.*/image_source="$HOME\/pics\/mono.jpg"/g' ~/.config/neofetch/config.conf
2024-02-10 10:13:44 -03:00
ln -sf ~/.config/tofi/monochrome.conf ~/.config/tofi/theme.conf
2024-02-10 10:13:44 -03:00
;;
2024-02-10 10:13:44 -03:00
fan)
~/scripts/swww.sh $WHITE_NORMAL_WPP
#change tmux theme
2024-02-10 10:13:44 -03:00
ln -sf ~/.config/tmux/tmux-white.conf ~/.config/tmux/theme.conf
tmux source-file ~/.config/tmux/tmux.conf
# change wezterm theme
sed -i 's/color_scheme = .*/color_scheme = "catppuccin-latte"/g' ~/.config/wezterm/wezterm.lua
2024-02-10 10:13:44 -03:00
# neofetch
sed -i 's/image_source=.*/image_source="$HOME\/pics\/neofetch\/sol\/light.jpg"/g' ~/.config/neofetch/config.conf
# sed -i 's/{cl11}/{cl3}/' ~/.config/neofetch/config.conf
# change tofi theme
ln -sf ~/.config/tofi/white.conf ~/.config/tofi/theme.conf
;;
*)
exit 0
;;
esac
2024-02-10 10:13:44 -03:00
echo $CHOICE > ~/colorscheme
hyprctl reload