dotfiles/localbin/.local/bin/dwmscript/dwmnetwork
2021-02-20 21:00:34 +01:00

10 lines
209 B
Bash
Executable File

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