2023-07-16 09:49:32 +08:00
|
|
|
scheme=$(echo -e "light\ndark" | wofi -d -p "Select color scheme")
|
2022-09-04 17:17:37 +08:00
|
|
|
|
|
|
|
# simply subsitude dark and light
|
|
|
|
if [ $scheme = "light" ]; then
|
|
|
|
notify-send "Toggling light color scheme"
|
|
|
|
command="s/dark/light/"
|
|
|
|
elif [ $scheme = "dark" ]; then
|
|
|
|
notify-send "Toggling dark color scheme"
|
|
|
|
command="s/light/dark/"
|
|
|
|
else
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
2022-09-24 14:19:49 +08:00
|
|
|
sed -i $command ~/.config/kitty/kitty.conf
|
|
|
|
sed -i $command ~/.config/sway/config.d/theme
|
|
|
|
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
|
|
|
sed -i $command ~/.config/wofi/config
|
|
|
|
|
|
|
|
swaync-client -rs &
|
2022-09-04 17:17:37 +08:00
|
|
|
|
|
|
|
# more settings
|
|
|
|
if [ $scheme = "light" ]; then
|
2022-09-20 13:03:40 +08:00
|
|
|
kitty -1 sh -c "kitty @ set-colors -a -c ~/.config/kitty/themes/light.conf" &
|
2023-02-10 15:26:53 +08:00
|
|
|
mv ~/.config/zathura/zathurarc.light ~/.config/zathura/zathurarc
|
2023-03-07 15:11:17 +08:00
|
|
|
|
|
|
|
# set wallpaper location
|
|
|
|
unlink ~/.config/sway/Wallpaper
|
2023-07-16 09:49:32 +08:00
|
|
|
ln -s ~/Pictures/wall/sway/light ~/.config/sway/Wallpaper
|
2022-09-04 17:17:37 +08:00
|
|
|
else
|
2022-09-20 13:03:40 +08:00
|
|
|
kitty -1 sh -c "kitty @ set-colors -a -c ~/.config/kitty/themes/dark.conf" &
|
2023-02-10 15:26:53 +08:00
|
|
|
mv ~/.config/zathura/zathurarc.dark ~/.config/zathura/zathurarc
|
2023-03-07 15:11:17 +08:00
|
|
|
|
|
|
|
# set dark wallpaper
|
|
|
|
unlink ~/.config/sway/Wallpaper
|
2023-07-16 09:49:32 +08:00
|
|
|
ln -s ~/Pictures/wall/sway/dark ~/.config/sway/Wallpaper
|
2022-09-04 17:17:37 +08:00
|
|
|
fi
|
|
|
|
|
|
|
|
sway reload
|