Changes to blocks config

master
Jonathan Hodgson 7 years ago
parent 734ca37b07
commit 5a6c4005b6
  1. 11
      i3/blocks/server
  2. 5
      i3/i3blocks.conf

@ -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…
Cancel
Save