Files
dotfiles/.local/bin/panel/iface.sh
T
2021-02-25 20:16:07 +01: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"