diff --git a/lappy/builds/utils/status b/lappy/builds/utils/status index 71b57a8..b46062e 100755 --- a/lappy/builds/utils/status +++ b/lappy/builds/utils/status @@ -125,6 +125,18 @@ get_cmus_info () { fi } +get_days_until_21 () { + if [ -z "$birthday" ]; then + birthday=$(cat ~/.config/birthdate) + twenty_one=$((birthday + (21 * 365 * 24 * 60 * 60))) + fi + + printf -v now "%(%s)T" + + days_until_21_status=$(((twenty_one - now) / 24 / 60 / 60)) + days_until_21_status="$days_until_21_status/" +} + get_battery_info () { battery_status=$(