mirror of
https://github.com/alrayyes/dotfiles/
synced 2023-11-14 15:56:30 +00:00
show arch packages to be updated
This commit is contained in:
parent
ce9d40aa40
commit
529e59e05f
@ -28,7 +28,13 @@ command=/usr/lib/i3blocks/$BLOCK_NAME
|
|||||||
separator_block_width=15
|
separator_block_width=15
|
||||||
markup=none
|
markup=none
|
||||||
|
|
||||||
[mail_gmail]
|
[arch-updates]
|
||||||
|
command=~/.config/i3/i3blocks/archupdates
|
||||||
|
label=
|
||||||
|
color=#FF0000
|
||||||
|
interval=3600
|
||||||
|
|
||||||
|
[mail-gmail]
|
||||||
command=~/.config/i3/i3blocks/gmail
|
command=~/.config/i3/i3blocks/gmail
|
||||||
label=G
|
label=G
|
||||||
instance=~/.i3mail/gmail
|
instance=~/.i3mail/gmail
|
||||||
@ -36,7 +42,7 @@ interval=60
|
|||||||
color=#00FF00
|
color=#00FF00
|
||||||
separator=false
|
separator=false
|
||||||
|
|
||||||
[mail_andthensome]
|
[mail-andthensome]
|
||||||
command=~/.config/i3/i3blocks/gmail
|
command=~/.config/i3/i3blocks/gmail
|
||||||
label=A
|
label=A
|
||||||
instance=~/.i3mail/andthensome
|
instance=~/.i3mail/andthensome
|
||||||
|
12
i3/.config/i3/i3blocks/archupdates
Executable file
12
i3/.config/i3/i3blocks/archupdates
Executable file
@ -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"
|
Loading…
Reference in New Issue
Block a user