Changes to blocks config
This commit is contained in:
parent
734ca37b07
commit
5a6c4005b6
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
|
interval=once
|
||||||
signal=11
|
signal=11
|
||||||
|
|
||||||
|
[serverstatus]
|
||||||
|
command=~/.dotfiles/i3/blocks/server
|
||||||
|
interval=5
|
||||||
|
|
||||||
# Volume indicator
|
# Volume indicator
|
||||||
#
|
#
|
||||||
# The first parameter sets the step (and units to display)
|
# The first parameter sets the step (and units to display)
|
||||||
|
@ -92,6 +96,7 @@ interval=10
|
||||||
separator=false
|
separator=false
|
||||||
|
|
||||||
[bandwidth]
|
[bandwidth]
|
||||||
|
command=/usr/lib/i3blocks/$BLOCK_NAME | sed "s/IN/↓/g" | sed "s/OUT/↑/g"
|
||||||
#instance=eth0
|
#instance=eth0
|
||||||
interval=5
|
interval=5
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue