aboutsummaryrefslogtreecommitdiff
path: root/dot-config/yambar/scripts/pacman-label
diff options
context:
space:
mode:
authorBlake Romero <blake@blkrom.com>2024-12-16 00:35:48 +0000
committerBlake Romero <blake@blkrom.com>2024-12-16 00:35:48 +0000
commit491268c0160ece4b00148f1bb0f4cef22a5d050c (patch)
tree15ae9dc97adf109b93e58870bf49fcf904fbf82a /dot-config/yambar/scripts/pacman-label
parentc13e166e9f9c67af7d3c2a411275b99ae1ba735a (diff)
Add pacman module & scripts for yambar
Diffstat (limited to 'dot-config/yambar/scripts/pacman-label')
-rwxr-xr-xdot-config/yambar/scripts/pacman-label7
1 files changed, 7 insertions, 0 deletions
diff --git a/dot-config/yambar/scripts/pacman-label b/dot-config/yambar/scripts/pacman-label
new file mode 100755
index 0000000..7015e5b
--- /dev/null
+++ b/dot-config/yambar/scripts/pacman-label
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+# Get package count
+count=$(wc -l < ~/.cache/updates)
+
+# Display count
+printf "%s\n\n" "count|int|$count"