lldp plugin for SwiftBar
- lldpd - After being installed, lldpd runs as a daemon. LLDP data is collected on all interfaces. lldp-bar interacts with lldpd via lldpcli.
- SwiftBar - SwiftBar makes it easy to schedule and run scripts right from the mac menubar.
- Install the Microsoft LLDP Enablement Package. This package is signed and works out of the box with lldp-bar.
- Copy
lldp.pyto the SwiftBar folder.
lldpd can be installed via brew or from the lldpd project page. These other sources may require additional steps.
After installation, confirm that that your user has access to lldpd.
karl@litz-dev ~ % /usr/local/sbin/lldpcli show neighbors
2025-09-28T15:32:22 [WARN/control] unable to connect to socket /var/run/lldpd.socket: Permission deniedIf unable to connect, add your user to the _lldpd group.
karl@litz-dev ~ % sudo dseditgroup -o edit -a karl -t user _lldpd
Password:
karl@litz-dev ~ % /usr/local/sbin/lldpcli show neighbors
-------------------------------------------------------------------------------
LLDP neighbors:
-------------------------------------------------------------------------------