#!/bin/bash case $BUTTON in 1) setsid -f "$TERMINAL" -e status-popupgrade ;; 2) notify-send "$(/usr/bin/pacman -Qu)" ;; 3) notify-send "Upgrade module" "Number of upgradable packages - Left click to upgrade packages - Middle click to show upgradable packages" ;; 6) "$TERMINAL" -e "$EDITOR" "$0" ;; esac pacman -Qu | grep -Fcv "[ignored]" | sed "s/^/󰏔 /;s/^󰏔 0$//g"