fix: kitty theme add a fallback for auto change theme
This commit is contained in:
parent
c0f72c3280
commit
ebdaf57460
2 changed files with 5 additions and 2 deletions
|
@ -1,2 +1,4 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
kitten themes --config-file-name=themes.conf --reload-in=all "nord-dark"
|
KITTY_CONF_PATH = $HOME/.config/kitty
|
||||||
|
# add a fallback if kitten somehow fails
|
||||||
|
kitten themes --config-file-name=themes.conf --reload-in=all "nord-dark" || cp $KITTY_CONF_PATH/themes/nord-dark.conf $KITTY_CONF_PATH/current-theme.conf
|
||||||
|
|
|
@ -1,2 +1,3 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
kitten themes --config-file-name=themes.conf "nord-light"
|
KITTY_CONF_PATH = $HOME/.config/kitty
|
||||||
|
kitten themes --config-file-name=themes.conf "nord-light" || cp $KITTY_CONF_PATH/themes/nord-light.conf $KITTY_CONF_PATH/current-theme.conf
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue