2020-08-19 15:58:08 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
if [ -f "$HOME/.dark" ]
|
|
|
|
then
|
2024-08-09 15:01:16 +00:00
|
|
|
if [ -f $HOME/.config/kitty/kitty.conf ]
|
|
|
|
then sed -i -e 's/kitty_light.conf/kitty_dark.conf/' $HOME/.config/kitty/kitty.conf
|
|
|
|
fi
|
2023-04-06 12:24:50 +00:00
|
|
|
# Mint
|
2020-08-19 15:58:08 +00:00
|
|
|
theme='Mint-Y-Dark-Pink'
|
2024-11-23 11:53:44 +00:00
|
|
|
wallpaper=$(find $HOME/wallpaper/ -maxdepth 1 -name "dark.*")
|
2020-08-19 15:58:08 +00:00
|
|
|
gsettings set org.cinnamon.desktop.interface cursor-theme 'DMX-White'
|
|
|
|
gsettings set org.cinnamon.desktop.wm.preferences theme 'Mint-Y-Dark'
|
|
|
|
gsettings set org.cinnamon.theme name "$theme"
|
|
|
|
gsettings set org.cinnamon.desktop.interface icon-theme "$theme"
|
|
|
|
gsettings set org.cinnamon.desktop.interface gtk-theme "$theme"
|
2023-04-06 12:24:50 +00:00
|
|
|
# Ubuntu
|
|
|
|
gsettings set org.gnome.desktop.interface gtk-theme "Yaru-purple-dark"
|
|
|
|
gsettings set org.gnome.desktop.interface color-scheme "prefer-dark"
|
2020-08-19 15:58:08 +00:00
|
|
|
theme=dark
|
|
|
|
else
|
2024-08-09 15:01:16 +00:00
|
|
|
if [ -f $HOME/.config/kitty/kitty.conf ]
|
|
|
|
then sed -i -e 's/kitty_dark.conf/kitty_light.conf/' $HOME/.config/kitty/kitty.conf
|
|
|
|
fi
|
2023-04-06 12:24:50 +00:00
|
|
|
theme='Mint-Y-Dark-Pink'
|
2024-11-23 11:53:44 +00:00
|
|
|
wallpaper=$(find $HOME/wallpaper/ -maxdepth 1 -name "light.*")
|
2023-04-06 12:24:50 +00:00
|
|
|
# Mint
|
2020-08-19 15:58:08 +00:00
|
|
|
gsettings set org.cinnamon.desktop.interface cursor-theme 'DMX-Black'
|
|
|
|
gsettings set org.cinnamon.desktop.wm.preferences theme 'Mint-Y'
|
|
|
|
gsettings set org.cinnamon.theme name "$theme"
|
|
|
|
gsettings set org.cinnamon.desktop.interface icon-theme "$theme"
|
|
|
|
gsettings set org.cinnamon.desktop.interface gtk-theme "$theme"
|
2023-04-06 12:24:50 +00:00
|
|
|
# Ubuntu
|
|
|
|
gsettings set org.gnome.desktop.interface gtk-theme "Yaru-purple"
|
|
|
|
gsettings set org.gnome.desktop.interface color-scheme "prefer-light"
|
2020-08-19 15:58:08 +00:00
|
|
|
theme=light
|
|
|
|
fi
|
|
|
|
|
2024-11-23 11:53:44 +00:00
|
|
|
gsettings set org.cinnamon.desktop.background picture-uri "file://$wallpaper"
|
|
|
|
gsettings set org.gnome.desktop.background picture-uri "file://$wallpaper"
|
|
|
|
|
2020-09-29 16:51:02 +00:00
|
|
|
for socket in $(find /tmp/ -maxdepth 1 -name "kitty-$USER-*")
|
|
|
|
do
|
|
|
|
if which kitty > /dev/null; then
|
2023-04-06 12:38:33 +00:00
|
|
|
theme=$(cat $HOME/.config/kitty/kitty.conf | sed -n '/^include/p' | sed -n -e 's/^include //' -e 's|$HOME|'"$HOME"'|' -e '/kitty_.*.conf$/p')
|
|
|
|
kitty @ --to unix:$socket set-colors --configured $theme >/dev/null
|
2020-09-29 16:51:02 +00:00
|
|
|
fi
|
|
|
|
done
|
2020-08-19 15:58:08 +00:00
|
|
|
|
2020-11-27 09:02:32 +00:00
|
|
|
pkill -SIGUSR1 conky
|