README.md

noctalia-netbird #

A Noctalia v5 plugin (lvdar/netbird) that shows and controls every NetBird daemon on the host, not just the default one.

What it does #

  • Service (lvdar/netbird:service): every poll lists run_dir and treats each netbird* directory holding a sock as a daemon (/run/netbird/sock, /run/netbird-work/sock, …). Each one is queried with env NB_DAEMON_ADDR=unix://<sock> netbird status --json.
  • Bar widget (lvdar/netbird:status): the NetBird logo, plus one dot per daemon. Both take connected_color when connected, the same at half opacity while connecting, and disconnected_color otherwise (down, unreachable or needing a login); the logo takes the worst state of all daemons. Click opens the panel; right-click refreshes.
  • Panel (lvdar/netbird:panel): one card per daemon with its status, FQDN, IP, peer count and management host, a Connect/Disconnect button and Copy IP.

Connect runs netbird up in the background. When the daemon needs an SSO login, or a background up fails, it runs in a terminal instead ($TERMINAL), so the login URL or error is visible.

The instance is chosen with NB_DAEMON_ADDR rather than --daemon-addr, because NixOS's netbird wrapper only sets NB_DAEMON_ADDR when it is unset and the flag is then ignored.

Settings #

key type default meaning
refresh_interval int 10 seconds between polls (3–120)
netbird_bin string netbird the CLI used for status, up and down
run_dir folder /run where daemon directories are discovered
instance_labels string_map {} display names keyed by directory name; otherwise netbird is default and netbird-<x> is <x>
connected_color color primary palette role or hex; set it to the theme's green for red/green status
disconnected_color color error palette role or hex for any other state
[plugin_settings."lvdar/netbird".instance_labels]
netbird = "home"
netbird-work = "work"

IPC #

noctalia msg panel-toggle lvdar/netbird:panel

Place the widget with type = "lvdar/netbird:status".