Add marker for when packages were last updated

This commit is contained in:
David Heinemeier Hansson
2025-11-22 10:54:40 +01:00
parent 88a1141301
commit e864c2da43
2 changed files with 9 additions and 0 deletions

3
bin/omarchy-version-pkgs Executable file
View File

@@ -0,0 +1,3 @@
#!/bin/bash
date -d "$(grep upgraded /var/log/pacman.log | tail -1 | sed -E 's/\[([^]]+)\].*/\1/')" "+%A, %B %d %Y at %H:%M"

View File

@@ -141,6 +141,12 @@
"key": "󱫐 Uptime",
"keyColor": "magenta"
},
{
"type": "command",
"key": " Latest",
"keyColor": "magenta",
"text": "updated=$(omarchy-version-pkgs); echo \"$updated\""
},
{
"type": "custom",
"format": "\u001b[90m└────────────────────────────────────────────────────┘"