Add updatecolors script to update kitty colors

This commit is contained in:
Talia 2020-08-19 17:58:08 +02:00
parent 5233dea0e2
commit 8267f4bf16
1 changed files with 34 additions and 0 deletions

34
bin/updatecolors Executable file
View File

@ -0,0 +1,34 @@
#!/bin/sh
if [ -f "$HOME/.dark" ]
then
sed -i -e 's/kitty_light.conf/kitty_dark.conf/' $HOME/.config/kitty/kitty.conf
theme='Mint-Y-Dark-Pink'
gsettings set org.cinnamon.desktop.background picture-uri 'file:///home/darkwiiplayer/wallpaper/dark.png'
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"
theme=dark
else
sed -i -e 's/kitty_dark.conf/kitty_light.conf/' $HOME/.config/kitty/kitty.conf
theme="Mint-Y-Pink"
gsettings set org.cinnamon.desktop.background picture-uri 'file:///home/darkwiiplayer/wallpaper/light.png'
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"
theme=light
fi
if which kitty; then
cat $HOME/darkrc/kitty_$theme.conf |\
grep '^[[:alpha:]]' |\
sed -s 's/ \+/=/' |\
sort |\
xargs -l kitty @ set-colors --all
fi
pkill -HUP conky