-
-
Notifications
You must be signed in to change notification settings - Fork 979
Description
I am trying to have a module that when I right click it, a notification pops up telling me what updates I can do. When I rightclick the module though, there is no notification and the updates log is just an empty file. Please do note that when I run this from termite, the output is correct. Why is that happening?
"custom/pacman": {
"format": "{text} ",
"exec": "checkupdates | wc -l", // # of updates
"exec-if": "exit 0",
"interval": 4000,// always run; consider advanced run conditions
"on-click": "termite -e 'sudo pacman -Syu'; pkill -SIGRTMIN+8 waybar", // update system
"signal": 8,
"tooltip": false,
"on-click-right": "termite -e 'checkupdates | cat > /home/turip/.config/waybar/scripts/updates | cat | xargs -I{} notify-send {}'"
},
EDIT: If I run termite with --hold tag I gdt the error message: checkupdates: invalid option -- 'I'
Also tried: termite -e 'notify-send "$(checkupdates | cat)"' but still doesnt work wheras from kitty it executes just fine.
I'm certain it's a terminal problem. So do you have any recomendations for another terminal or command?