chore(waybar): add script to check updates

This commit is contained in:
Andrea 2025-05-19 10:35:27 +02:00
parent 1162095311
commit fb086cb885
Signed by: nullndr
GPG Key ID: 8DA8996EF89F33BB
2 changed files with 9 additions and 2 deletions

View File

@ -102,8 +102,8 @@
"tooltip": true, "tooltip": true,
"format": "{} ", "format": "{} ",
"interval": 60, "interval": 60,
"exec": "checkupdates | wc -l", "exec": "$HOME/.config/waybar/scripts/check_updates.sh",
"exec-if": "[[ $(checkupdates | wc -l) != 0 ]]", "exec-if": "[[ `$HOME/.config/waybar/scripts/check_updates.sh` != 0 ]]",
"signal": 1 "signal": 1
}, },

View File

@ -0,0 +1,7 @@
#! /usr/bin/env bash
main() {
checkupdates | wc -l
}
main $@