Fastfetch | birthday info without time

@SGS
You have birthday info without time ! :+1:
Can you tell me how to do ? I find only modul “create-time” and this modul is
“fixed” (my knowledge) with time.
Also, found nothing about format or how-to in the www.
Thx (in advance)

Did you mean the “Age” part?

For OS Age:

{
    "type": "command",
    "key": " OS Age ",
    "keyColor": "31",
    "text": "birth_install=$(stat -c %W /); current=$(date +%s); days_difference=$(( (current - birth_install) / 86400 )); echo $days_difference days"
}

For OS Birthday:

{
    "type": "command",
    "key": " OS Birthday ",
    "keyColor": "31",
    "text": "birth_install=$(stat -c %W /); echo $(date -d @$birth_install '+%d %b %Y')"
}
  System install date:     2021-08-05
  Last full system update: 2025-01-30
  Is partially upgraded:   No
  Relevant software:       snapper NetworkManager dracut
  Windows dual boot:       Probably (Run as root to verify)
  Failed units:            
  Total system updates:    1575
  --> Updates per week:    8
5 Likes

Thanks for sharing! The “age” part is a nice addition.

2 Likes

For OS Birthday …thx

 ├󰌢 OS Birthday  05. Aug. 2021
 └󰍹 OS Age  1275 days

I know there are still older ones. :wink:

3 Likes

That’s an INSANE age if you ask me. My previous NixOS installation lived for like… a year maybe?

Now back on Garuda to daily drive and test some new stuff since a while :wink:

2 Likes


Thanks for the info, got mine to look good

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.