From 21464a23d0aa12a19b5de97fb008d29fd6228781 Mon Sep 17 00:00:00 2001 From: stupidcomputer Date: Wed, 11 Dec 2024 12:59:45 -0600 Subject: [PATCH] some motivation --- lappy/builds/utils/status | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) 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=$(