3 # This script displays Internet DL/UL speed, external and internal IP address in a single row
4 # Dependencies: `speedtest-cli`, `bind-tools` (Arch) or `dnsutils` (Debian)
7 # e-mail: nwg.piotr@gmail.com
8 # Website: http://nwg.pl
9 # Project: https://github.com/nwg-piotr/tint2-executors
12 IP
="sudo /usr/sbin/ip"
13 spd
=$
(speedtest-cli
--simple)
14 dl
=$
(echo $spd |
awk '{print $5}')
15 ul
=$
(echo $spd |
awk '{print $8}')
17 #w=$(dig +short myip.opendns.com @resolver1.opendns.com)
18 #l=$($IP addr | grep 'state UP' -A2 | tail -n1 | awk '{print $2}' | cut -f1 -d'/')
22 # Log results to the text file
23 date "+%d-%m-%y %H:%M" >> ~
/Documents
/speedtest.log
24 echo $spd >> ~
/Documents
/speedtest.log