diff --git a/.config/waybar/config.jsonc b/.config/waybar/config.jsonc index c00f539..a68d65e 100644 --- a/.config/waybar/config.jsonc +++ b/.config/waybar/config.jsonc @@ -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'", diff --git a/.config/waybar/scripts/updatepkgs b/.config/waybar/scripts/updatepkgs new file mode 100755 index 0000000..ea0c66b --- /dev/null +++ b/.config/waybar/scripts/updatepkgs @@ -0,0 +1,5 @@ +#!/bin/sh + +foot 'paru && echo 0 > /tmp/waybar/module/pacman/count' +pkill waybar +waybar &