chore(waybar): add script to check updates
This commit is contained in:
parent
1162095311
commit
fb086cb885
@ -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
|
||||||
},
|
},
|
||||||
|
|
||||||
|
7
.config/waybar/scripts/check_updates.sh
Executable file
7
.config/waybar/scripts/check_updates.sh
Executable file
@ -0,0 +1,7 @@
|
|||||||
|
#! /usr/bin/env bash
|
||||||
|
|
||||||
|
main() {
|
||||||
|
checkupdates | wc -l
|
||||||
|
}
|
||||||
|
|
||||||
|
main $@
|
Loading…
x
Reference in New Issue
Block a user