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,
"format": "{} ",
"interval": 60,
"exec": "checkupdates | wc -l",
"exec-if": "[[ $(checkupdates | wc -l) != 0 ]]",
"exec": "$HOME/.config/waybar/scripts/check_updates.sh",
"exec-if": "[[ `$HOME/.config/waybar/scripts/check_updates.sh` != 0 ]]",
"signal": 1
},

View File

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