(mac kitty setup) update setup
This commit is contained in:
parent
e7db02c6e1
commit
1600b199af
1 changed files with 15 additions and 6 deletions
|
|
@ -2,14 +2,23 @@
|
|||
|
||||
kitten @ set-font-size --all 16.0
|
||||
|
||||
CURRENT_HOUR=$(date +"%H")
|
||||
SEVEN_AM=7
|
||||
SEVEN_PM=19
|
||||
|
||||
TERM_COLOR_MODE=dark
|
||||
if [ $CURRENT_HOUR -ge $SEVEN_AM ] && [ $CURRENT_HOUR -lt $SEVEN_PM ]; then
|
||||
|
||||
command -v asadesuka > /dev/null 2>&1
|
||||
if [ $? -eq 0 ]; then
|
||||
IS_ASA=$(asadesuka -offset=30)
|
||||
if [ "$IS_ASA" = "true" ]; then
|
||||
TERM_COLOR_MODE=light
|
||||
fi
|
||||
else
|
||||
CURRENT_HOUR=$(date +"%H")
|
||||
SEVEN_AM=7
|
||||
SEVEN_PM=19
|
||||
if [ $CURRENT_HOUR -ge $SEVEN_AM ] && [ $CURRENT_HOUR -lt $SEVEN_PM ]; then
|
||||
TERM_COLOR_MODE=light
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ "$TERM_COLOR_MODE" = "light" ]; then
|
||||
kitten @ set-colors --all "$HOME/.config/kitty/light.conf"
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue