dotfiles/.config/i3blocks/arch-update/README.md
2019-05-02 02:54:34 +02:00

1.7 KiB

arch-update

Be always on top of your available updates with this blocklet. Optionally show AUR updates with the help of yaourt. Colorize the outputs for if your system is up to date or you got available updates.

Dependencies

  • Arch Linux or another arch based distro
  • python3
  • pacman-contrib for checkupdates

Optional Dependencies

  • yaourt for aur updates
  • fontawesome for awesome labels

Installation

  • Copy the arch-update script into your directory of choice, e.g. ~/.i3blocks/
  • Give it execution permission (chmod +x arch-update)
  • Add the following blocket to your i3blocks.conf:
[arch-update]
command=$SCRIPT_DIR/arch-update 
interval=3600
markup=pango
LABEL=Updates: 

Another advanced example with fontawesome label, AUR updates included, watched packages, and custom colors for both messages:

[pacman-updates]
command=$SCRIPT_DIR/arch-update
markup=pango
interval= 3600
QUIET=true
WATCH=^linux.* ^pacman.*
BASE_COLOR=#5fff5f
UPDATE_COLOR=#FFFF85
AUR=true
LABEL=

Configuration

Use the environment variables above instead of these deprecated command line options:

  • -q/--quiet: do not produce output if system is up to date
  • -w/--watch: Explicitly watch for specified packages. Listed elements are treated as regular expressions for matching.
  • -b/--base_color: set the base color of the output (when your system is up to date)
  • -u/--updates_available_color: set the color of the output when updates are available
  • -a/--aur: activate AUR update support
    For the latest options call $SCRIPT_DIR/arch-update -h.