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.

24 lines
623 B

4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
  1. #!/bin/sh
  2. icon=
  3. if [ ! -f ~/.cache/pacman_updates ]; then
  4. updates=0
  5. else
  6. updates=$(wc -l < ~/.cache/pacman_updates)
  7. if [ "$updates" = "" ]; then
  8. updates=0
  9. fi
  10. fi
  11. checkupdates 2> /dev/null > ~/.cache/pacman_updates &
  12. case $BLOCK_BUTTON in
  13. 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;;
  14. 6) "$TERMINAL" -e "$EDITOR" "$0" ;;
  15. esac
  16. #echo "$ifg $icon $tfg$(cat ~/.cache/pacman_updates)"
  17. echo "^c#a48ead^$icon ^d^ $updates"