Changes to blocks config
This commit is contained in:
parent
7ae7bb3248
commit
6ad67cefdd
2 changed files with 16 additions and 0 deletions
11
i3/blocks/server
Executable file
11
i3/blocks/server
Executable file
|
@ -0,0 +1,11 @@
|
|||
#!/usr/bin/sh
|
||||
|
||||
LAMPP='/opt/lampp/lampp'
|
||||
STATUS=$($LAMPP status 2> /dev/null)
|
||||
|
||||
APACHE=$(echo "$STATUS" | grep -i apache | grep -io not > /dev/null && echo "down" || echo "up")
|
||||
MYSQL=$(echo "$STATUS" | grep -i mysql | grep -io not > /dev/null && echo "down" || echo "up")
|
||||
PROFTP=$(echo "$STATUS" | grep -i proftp | grep -io not > /dev/null && echo "down" || echo "up")
|
||||
|
||||
|
||||
echo "Apache: $APACHE MySQL: $MYSQL ProFTP: $PROFTP"
|
|
@ -39,6 +39,10 @@ instance=CAPS
|
|||
interval=once
|
||||
signal=11
|
||||
|
||||
[serverstatus]
|
||||
command=~/.dotfiles/i3/blocks/server
|
||||
interval=5
|
||||
|
||||
# Volume indicator
|
||||
#
|
||||
# The first parameter sets the step (and units to display)
|
||||
|
@ -92,6 +96,7 @@ interval=10
|
|||
separator=false
|
||||
|
||||
[bandwidth]
|
||||
command=/usr/lib/i3blocks/$BLOCK_NAME | sed "s/IN/↓/g" | sed "s/OUT/↑/g"
|
||||
#instance=eth0
|
||||
interval=5
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue