Add block to monitor updates on home server
This commit is contained in:
parent
2d1c205cef
commit
7909763acf
2 changed files with 18 additions and 0 deletions
13
i3/blocks/homeServerUpdates
Executable file
13
i3/blocks/homeServerUpdates
Executable file
|
@ -0,0 +1,13 @@
|
||||||
|
#!/usr/bin/sh
|
||||||
|
|
||||||
|
count=$(ssh homeServer checkupdates | wc -l)
|
||||||
|
if [ "$count" = "0" ]; then
|
||||||
|
count=""
|
||||||
|
fi
|
||||||
|
echo $count
|
||||||
|
echo $count
|
||||||
|
if [ "$count" -gt "5" ]; then
|
||||||
|
echo "#FFOOOO"
|
||||||
|
else
|
||||||
|
echo "#FF8000"
|
||||||
|
fi
|
|
@ -42,6 +42,11 @@ command=xset -q | grep Caps 2> /dev/null | cut -c23 | sed "s/n/CAPS/" | sed "s/f
|
||||||
signal=11
|
signal=11
|
||||||
color=#00FF00
|
color=#00FF00
|
||||||
|
|
||||||
|
[homeServerUpdates]
|
||||||
|
interval=300
|
||||||
|
command=~/.dotfiles/i3/blocks/homeServerUpdates
|
||||||
|
label=Home Server Updates
|
||||||
|
|
||||||
[vps01status]
|
[vps01status]
|
||||||
command=~/.dotfiles/i3/blocks/serverStatus VPS01
|
command=~/.dotfiles/i3/blocks/serverStatus VPS01
|
||||||
interval=30
|
interval=30
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue