~/swaydesk/components/network

← All components

Network

Network

Network

Wi-Fi, wired and VPN: turn them on and off, connect and see the details.

  • Two switches turn Wi-Fi and all networking (Network) on and off.
  • Wi-Fi networks list the connected one first, then saved ones, then the strongest; secured ones show a lock.
  • Click a network to connect; × disconnects, or cancels a connection in progress.
  • Click the connected network for its details: IP, gateway, DNS, signal, band and speed; Back or Esc returns.
  • VPNs connect with a click; Add VPN adds one, of the types your installed NetworkManager VPN plugins allow.
  • Hidden network, Edit connections and a middle click on the icon open the connection editor.
  • With NetworkManager, the password for a new network is asked by nm-applet or the system’s agent.
  • The icon shows the Wi-Fi signal, cable or VPN, and turns orange without internet access.
  • Also works with iwd and systemd-networkd; VPNs need NetworkManager.
  • Without a Wi-Fi card (a wired-only PC), the Wi-Fi switch is disabled and the list says No Wi-Fi adapter; a card plugged in later works without reopening the popup.

Rust + GTK 4 · source · More in the guide · turn off: [enabled.bar] network = false

Install it alone

Only this component, without the full session. First add the Swaydesk repository, as on the page Install.

Debian 13

sudo apt install swaydesk-network

Ubuntu 26.04 · Mint 27

sudo apt install swaydesk-network

Arch Linux

sudo pacman -Syu swaydesk-network networkmanager

pacman doesn't install optional dependencies, so the line already has the ones apt installs by itself.

Start it on plain Sway

It starts from its Waybar module, below.

In Waybar

In ~/.config/waybar/config.jsonc, add "custom/swaydesk-network" to modules-left, modules-center or modules-right, and paste the module from this file next to your other modules:

/usr/share/swaydesk/waybar/swaydesk-network.jsonc

The file's first lines say what each click does. The icons come from the Symbols Nerd Font, which the package brings.

Shortcuts

Click the network icon

Those of the Swaydesk profile, the default. The other profiles are in Shortcuts.