Add arch-updates to i3bar

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2018-12-03 09:41:12 +01:00
parent b6afc444f9
commit 035cfc8b33
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E
2 changed files with 9 additions and 0 deletions

6
.config/i3blocks/arch-update Executable file
View file

@ -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)

View file

@ -29,6 +29,9 @@ separator_block_width=15
markup=none markup=none
[arch-update]
interval=600
[disk] [disk]
interval=30 interval=30