We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1320aaf commit 7193d49Copy full SHA for 7193d49
1 file changed
fastfetch/config.jsonc
@@ -31,7 +31,7 @@
31
"type": "command",
32
"key": " OS Age ",
33
"keyColor": "31",
34
- "text": "birth_install=$(stat -c %W /); current=$(date +%s); time_progression=$((current - birth_install)); days_difference=$((time_progression / 86400)); days_with_addition=$((days_difference + 422)); echo $days_with_addition days"
+ "text": "log_date=$(head -n 1 /var/log/pacman.log | cut -d ' ' -f 1 | tr -d '[]'); install_secs=$(date -d \"${log_date/T/ }\" +%s); current_secs=$(date +%s); echo $(( (current_secs - install_secs) / 86400 )) days"
35
},
36
{
37
"type": "wm",
0 commit comments