waybar: Reset pacman module on update.

This commit is contained in:
Harzo 2023-05-31 10:38:23 +02:00
parent 3029ae7879
commit 156f49b40a
2 changed files with 6 additions and 1 deletions

View File

@ -105,7 +105,7 @@
"return-type": "json",
"exec": "$HOME/.config/waybar/scripts/checkupdates",
"signal": 8,
"on-click": "foot paru; pkill waybar; waybar &"
"on-click": "$HOME/.config/waybar/scripts/updatepkgs"
},
"custom/weather": {
"exec": "curl -s 'https://wttr.in/?format=1' | sed 's/ \\+/ /g'",

View File

@ -0,0 +1,5 @@
#!/bin/sh
foot 'paru && echo 0 > /tmp/waybar/module/pacman/count'
pkill waybar
waybar &