Add termtheme script

This commit is contained in:
Talia 2020-08-21 09:32:01 +02:00
parent fbd9a06bdd
commit 8dfe944594
1 changed files with 12 additions and 0 deletions

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