Add termtheme script

This commit is contained in:
Talia 2020-08-21 09:32:01 +02:00
parent fbd9a06bdd
commit 8dfe944594

12
bin/termtheme Executable file
View file

@ -0,0 +1,12 @@
#!/bin/sh
theme=$1
if which kitty; then
cat $HOME/darkrc/kitty_$theme.conf |\
grep '^[[:alpha:]]' |\
sed -s 's/ \+/=/' |\
sed -s 's/^.*$/set-colors --all \0/' |\
sort |\
kitty @ >/dev/null
fi