dotfiles/localbin/.local/bin/dwmscript/dwmnetwork

10 lines
209 B
Plaintext
Raw Normal View History

#!/bin/bash
icon=""
iface="enp4s0"
IPADDR="$(ip a show dev $iface | awk '/inet / { print $2 } ')"
2021-02-20 21:00:34 +01:00
printf " %s %s [%s] \n" "$icon" "$iface" "$IPADDR"
#echo "tx $iface: $TKBPS kB/s rx $iface: $RKBPS kB/s"