Linux Install the required dependencies:
sudo pacman -S python-gobject libappindicator-gtk3 gtk3 libnotify# Create a directory for the script
mkdir -p ~/.local/bin
# Save the script (copy the Python code to this file)
nano ~/.local/bin/netbird-manager.py
# Make it executable
chmod +x ~/.local/bin/netbird-manager.pyCreate a desktop entry so the app appears in your application menu:
mkdir -p ~/.local/share/applications
nano ~/.local/share/applications/netbird-manager.desktopAdd this content:
[Desktop Entry]
Name=Netbird Manager
Comment=Manage Netbird VPN Profiles
Exec=/home/YOUR_USERNAME/.local/bin/netbird-manager.py
Icon=network-vpn
Terminal=false
Type=Application
Categories=Network;
StartupNotify=falseReplace YOUR_USERNAME with your actual username.
To start the app automatically when you log in:
mkdir -p ~/.config/autostart
cp ~/.local/share/applications/netbird-manager.desktop ~/.config/autostart/Start the application:
~/.local/bin/netbird-manager.pyOr launch it from your application menu.
- The app will appear in your system tray (Waybar)
- Right-click on the icon to see the menu
- Select a profile to connect or disconnect
- The icon changes based on connection status:
- Connected: VPN icon
- Disconnected: Disconnected VPN icon
- Connect: Hinemoa - Runs
netbird up --profile hinemoa - Connect: Stella - Runs
netbird up --profile stella - Disconnect - Runs
netbird down - Show Status - Displays current Netbird status
- Quit - Closes the application
- Make sure Waybar is configured to show system tray icons
- Check your Waybar config (
~/.config/waybar/config) has a tray module:
"modules-right": ["tray", ...],
"tray": {
"spacing": 10
}If you get permission errors running netbird commands, you may need to configure sudo or set up proper permissions for netbird.
If the VPN icons don't show, install an icon theme:
sudo pacman -S papirus-icon-themeYou can edit the script to:
- Add more profiles
- Change notification behavior
- Customize menu items
- Add more netbird commands
Just edit ~/.local/bin/netbird-manager.py and restart the application.