From 8267f4bf16aabb1b4bfa7f3405fb4442a5c696ce Mon Sep 17 00:00:00 2001 From: DarkWiiPlayer Date: Wed, 19 Aug 2020 17:58:08 +0200 Subject: [PATCH] Add updatecolors script to update kitty colors --- bin/updatecolors | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100755 bin/updatecolors diff --git a/bin/updatecolors b/bin/updatecolors new file mode 100755 index 0000000..9bb8f44 --- /dev/null +++ b/bin/updatecolors @@ -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