conky

Last post i use conky to show if i’m connnected to tailscale network.
Now I updated my config to show packages and flatpak numbers of updates

Note: sudo apt-get requires password, so need to edit or
add config file to /etc/sudoers.d
1

check_update.sh

#!/bin/bash
sudo apt-get update > /dev/null 
update=$(aptitude search "~U" | wc -l)
echo $update update available
flatpak_update.sh

#!/bin/bash
update=$(flatpak remote-ls --updates -a | wc -l)
echo $update update available
add to conky.conf

Pkg: ${alignr}${execi 7200 ~/.local/bin/check_update.sh}
Flatpak: ${alignr}${execi 10800 ~/.local/bin/flatpak_update.sh}