2024-01-10 11:38:39 +08:00
|
|
|
#!/usr/bin/env bash
|
2024-01-13 11:38:48 +08:00
|
|
|
scheme=$(echo -e "light\ndark" | fuzzel -d -p " : ")
|
2022-09-04 17:17:37 +08:00
|
|
|
|
|
|
|
# simply subsitude dark and light
|
|
|
|
if [ $scheme = "light" ]; then
|
2023-07-16 15:37:50 +08:00
|
|
|
command="s/dark/light/"
|
2022-09-04 17:17:37 +08:00
|
|
|
elif [ $scheme = "dark" ]; then
|
2023-07-16 15:37:50 +08:00
|
|
|
command="s/light/dark/"
|
2022-09-04 17:17:37 +08:00
|
|
|
else
|
2023-07-16 15:37:50 +08:00
|
|
|
exit 1
|
2022-09-04 17:17:37 +08:00
|
|
|
fi
|
|
|
|
|
2022-09-24 14:19:49 +08:00
|
|
|
sed -i $command ~/.config/kitty/kitty.conf
|
2024-01-06 11:35:43 +08:00
|
|
|
sed -i $command ~/.config/sway/conf.d/theme
|
2022-09-24 14:19:49 +08:00
|
|
|
sed -i $command ~/.config/swaync/style.css
|
2022-09-04 17:17:37 +08:00
|
|
|
sed -i $command ~/.config/waybar/style.css
|
2022-09-24 14:19:49 +08:00
|
|
|
|
|
|
|
swaync-client -rs &
|
2022-09-04 17:17:37 +08:00
|
|
|
|
|
|
|
# more settings
|
|
|
|
if [ $scheme = "light" ]; then
|
2023-07-16 15:37:50 +08:00
|
|
|
# kitty config
|
|
|
|
kitty -1 sh -c "kitty @ set-colors -a -c ~/.config/kitty/themes/light.conf" &
|
2024-01-13 11:38:48 +08:00
|
|
|
# fuzzel
|
|
|
|
cp ~/.config/fuzzel/fuzzel-light.ini ~/.config/fuzzel/fuzzel.ini
|
2023-07-16 15:37:50 +08:00
|
|
|
# zathura
|
2024-01-12 11:02:23 +08:00
|
|
|
cp ~/.config/zathura/zathurarc.light ~/.config/zathura/zathurarc
|
2023-07-16 15:37:50 +08:00
|
|
|
# qt5ct and qt6ct
|
|
|
|
cp ~/.config/qt5ct/light.conf ~/.config/qt5ct/qt5ct.conf
|
|
|
|
cp ~/.config/qt6ct/light.conf ~/.config/qt6ct/qt6ct.conf
|
|
|
|
# gtk2
|
|
|
|
cp ~/.config/gtk-2.0/light.conf ~/.gtkrc-2.0
|
2024-01-12 11:02:23 +08:00
|
|
|
# gtk3
|
|
|
|
cp ~/.config/gtk-3.0/light.ini ~/.config/gtk-3.0/settings.ini
|
2022-09-04 17:17:37 +08:00
|
|
|
else
|
2023-07-16 15:37:50 +08:00
|
|
|
# kitty config
|
|
|
|
kitty -1 sh -c "kitty @ set-colors -a -c ~/.config/kitty/themes/dark.conf" &
|
|
|
|
# zathura
|
2024-01-12 11:02:23 +08:00
|
|
|
cp ~/.config/zathura/zathurarc.dark ~/.config/zathura/zathurarc
|
2024-01-13 11:38:48 +08:00
|
|
|
# fuzzel
|
|
|
|
cp ~/.config/fuzzel/fuzzel-dark.ini ~/.config/fuzzel/fuzzel.ini
|
2023-07-16 15:37:50 +08:00
|
|
|
# qt5ct and qt6ct
|
|
|
|
cp ~/.config/qt5ct/dark.conf ~/.config/qt5ct/qt5ct.conf
|
|
|
|
cp ~/.config/qt6ct/dark.conf ~/.config/qt6ct/qt6ct.conf
|
|
|
|
# gtk2
|
|
|
|
cp ~/.config/gtk-2.0/dark.conf ~/.gtkrc-2.0
|
2024-01-12 11:02:23 +08:00
|
|
|
# gtk3
|
|
|
|
cp ~/.config/gtk-3.0/dark.ini ~/.config/gtk-3.0/settings.ini
|
2022-09-04 17:17:37 +08:00
|
|
|
fi
|
|
|
|
|
2024-01-10 11:38:39 +08:00
|
|
|
swaymsg reload
|
|
|
|
systemctl --user restart waybar.service
|