diff --git a/.config/i3blocks/arch-update b/.config/i3blocks/arch-update new file mode 100755 index 0000000..5f1aeb6 --- /dev/null +++ b/.config/i3blocks/arch-update @@ -0,0 +1,6 @@ +#!/bin/bash + +u=$(checkupdates | wc -l) +[ $u -gt 0 ] || exit + +printf "\uf94f %d %s" $u $(/home/luzifer/bin/pluralize Update $u) diff --git a/.config/i3blocks/config b/.config/i3blocks/config index 4eadabd..ebefa8e 100644 --- a/.config/i3blocks/config +++ b/.config/i3blocks/config @@ -29,6 +29,9 @@ separator_block_width=15 markup=none +[arch-update] +interval=600 + [disk] interval=30