Created
July 1, 2018 07:35
-
-
Save oldherl/c21f7176a780f203c5f7b0fe9258089f to your computer and use it in GitHub Desktop.
Show desktop notification of wifi data usage in loop (linux)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
notify_net_usage() { | |
notify-send -t 5000 -i network-transmit-receive "$1" "`ifconfig $1 | grep packets`" | |
} | |
loop_notify_wifi() { | |
while true; do | |
notify_net_usage wlp2s0 | |
sleep 30 | |
done | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment