Add termtheme script
This commit is contained in:
parent
fbd9a06bdd
commit
8dfe944594
1 changed files with 12 additions and 0 deletions
12
bin/termtheme
Executable file
12
bin/termtheme
Executable 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
|
Loading…
Reference in a new issue