(mac kitty setup) update setup

This commit is contained in:
jc 2024-06-16 18:29:57 -04:00
commit 1600b199af
No known key found for this signature in database

View file

@ -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
TERM_COLOR_MODE=light
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