Another copy of my dotfiles. Because I don't completely trust GitHub.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

17 lines
553 B

#!/bin/sh
icon=
if ! updates=$(checkupdates 2> /dev/null | wc -l ); then
updates=0
fi
case $BLOCK_BUTTON in
1) PATH="/opt/google-cloud-sdk/bin:/sbin:/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/sbin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl" setsid -f "$TERMINAL" -c center -n center -e yay -Syu;;
6) "$TERMINAL" -e "$EDITOR" "$0" ;;
esac
echo $updates > ~/.cache/pacman_updates
#echo "$ifg $icon $tfg$(cat ~/.cache/pacman_updates)"
echo "^c#a48ead^$icon ^d^ $(cat ~/.cache/pacman_updates)"