dotfiles

beau's configuration files
git clone https://git.beauhilton.com/dotfiles.git
Log | Files | Refs | README

pacpackages (654B)


      1 #!/usr/bin/env sh
      2 
      3 # module for pacman upgrades.
      4 # Displays number of upgradeable packages.
      5 # For this to work, have a `pacman -Sy` command run in the background as a
      6 # cronjob every so often as root. This script will then read those packages.
      7 # When clicked, it will run an upgrade via pacman.
      8 
      9 case $BLOCK_BUTTON in
     10 	1) setsid -f $TERMINAL -e popupgrade ;;
     11 	2) notify-send "$(/usr/bin/pacman -Qu)" ;;
     12 	3) pgrep -x dunst >/dev/null && notify-send "Upgrade module" "📦: number of upgradable packages
     13 - Left click to upgrade packages
     14 - Middle click to show upgradable packages" ;;
     15 esac
     16 
     17 pacman -Qu | grep -Fcv "[ignored]" | sed "s/^/📦/;s/^📦0$//g"