diff --git a/i3/.config/i3/i3blocks.conf b/i3/.config/i3/i3blocks.conf index a1a423a..9aa02c3 100644 --- a/i3/.config/i3/i3blocks.conf +++ b/i3/.config/i3/i3blocks.conf @@ -28,7 +28,13 @@ command=/usr/lib/i3blocks/$BLOCK_NAME separator_block_width=15 markup=none -[mail_gmail] +[arch-updates] +command=~/.config/i3/i3blocks/archupdates +label= +color=#FF0000 +interval=3600 + +[mail-gmail] command=~/.config/i3/i3blocks/gmail label=G instance=~/.i3mail/gmail @@ -36,7 +42,7 @@ interval=60 color=#00FF00 separator=false -[mail_andthensome] +[mail-andthensome] command=~/.config/i3/i3blocks/gmail label=A instance=~/.i3mail/andthensome diff --git a/i3/.config/i3/i3blocks/archupdates b/i3/.config/i3/i3blocks/archupdates new file mode 100755 index 0000000..b6ceee1 --- /dev/null +++ b/i3/.config/i3/i3blocks/archupdates @@ -0,0 +1,12 @@ +#!/bin/sh +# Arch upgradeable packages + +list=`pacman -Sup 2> /dev/null` + +if [ "$list" == ":: Starting full system upgrade..." ]; then + count="" +else + count=`echo "$list" | wc -l` +fi + +echo "$count"