use proper one-liner for update count

Amolith created

Change summary

dot_config/waybar/config.tmpl | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)

Detailed changes

dot_config/waybar/config.tmpl 🔗

@@ -14,8 +14,7 @@
     "custom/pending-updates": {
         "format": "{} 󱄋",
         "tooltip": false,
-        "exec-if": "/usr/bin/carpd",
-        "exec": "/usr/bin/carpd",
+        "exec": "echo $(( $(checkupdates | wc -l) + $(yay -Qu | wc -l) ))",
         "restart-interval": 3600,
     },
     "idle_inhibitor": {