Add block to monitor updates on home server
This commit is contained in:
parent
cbc0c7b4c4
commit
c514e6042d
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
|
Loading…
Add table
Add a link
Reference in a new issue