Files
dotfiles/.scripts/panel/iface.sh
T
2020-07-14 14:23:43 +02:00

11 lines
181 B
Bash
Executable File

#!/bin/sh
WIRED="${1:-eth0}"
IP="$(ip a show "$WIRED" \
| awk '/inet / { print substr($2, 0, length($2) - 3) }')"
notify-send -r 3 "Wired" "\
Interface: $WIRED
IP: $IP"