erikw / tmux-powerline

⚡️ A tmux plugin giving you a hackable status bar consisting of dynamic & beautiful looking powerline segments, written purely in bash.
BSD 3-Clause "New" or "Revised" License
3.36k stars 508 forks source link

ifstat segment not supporting predictable network interface names #402

Closed xx4h closed 2 months ago

xx4h commented 2 months ago

Interface names in linux since systemd v197 have a new naming scheme, which can be found here: https://www.freedesktop.org/software/systemd/man/latest/systemd.net-naming-scheme.html

Table 1. Two character prefixes based on the type of interface Prefix Description
en Ethernet
ib InfiniBand
sl Serial line IP (slip)
wl Wireless local area network (WLAN)
ww Wireless wide area network (WWAN)

I guess it would make sense to add support for en*, wl* and ww*. Introducing a new symbol for ww and making the symbols for the interface categories/types configurable anyway.

Further information


Starting with v197 systemd/udev will automatically assign predictable, stable network interface names for all local Ethernet, WLAN and WWAN interfaces. This is a departure from the traditional interface naming scheme (eth0, eth1, wlan0, …), but should fix real problems.

https://systemd.io/PREDICTABLE_INTERFACE_NAMES/