mirror of
https://github.com/FelixKratz/SketchyBar
synced 2024-11-23 11:53:02 +00:00
7 lines
275 B
Bash
7 lines
275 B
Bash
|
#!/usr/bin/env bash
|
||
|
MAX_DOWN=110
|
||
|
MAX_UP=45
|
||
|
UPDOWN=$(ifstat -i "en0" -b 0.1 1 | tail -n1)
|
||
|
sketchybar -m push network_down 0 $(echo $UPDOWN | awk "{ print \$1 / (1000.0 * $MAX_DOWN) }")
|
||
|
sketchybar -m push network_up 0 $(echo $UPDOWN | awk "{ print \$2 / (1000.0 * $MAX_UP) }")
|