A VPN widget for the Omarchy bar. One icon shows whether you are behind a tunnel; one panel connects, disconnects, and switches between the VPN tools you actually have installed.
It supports Proton VPN, Mullvad, Windscribe, Cloudflare WARP, AmneziaWG, and the OpenVPN, OpenConnect and WireGuard profiles NetworkManager holds. Only the tools that have something to offer appear — install none and the widget tells you so; have several and a chip row lets you switch between them.
Each installed tool gets its own chip and its own view — Proton VPN above, Mullvad, Windscribe, AmneziaWG and NetworkManager below.
omarchy plugin add https://github.com/jkoestinger/omarchy-vpn.git
omarchy plugin enable jkoestinger.vpnPlugins land disabled so you can read the code before it runs — it runs
unsandboxed inside omarchy-shell, like every Omarchy plugin. Setup ›
Plugins does the same thing from the menu.
The icon appears at the right end of the bar. Move it with
omarchy bar move jkoestinger.vpn --before omarchy.clock, or any other
placement.
To update later: omarchy plugin update. To remove:
omarchy plugin remove jkoestinger.vpn.
The bar icon is dim when nothing is connected and bright when a tunnel is up. Hover it to see which one.
| Action | Result |
|---|---|
| Left click | Open the panel |
| Right click | Connect using the tool's own default, or disconnect |
| Middle click | Refresh status and public IP |
Inside the panel:
- Public IP sits top-left. Click it to copy it.
- The switch top-right connects or disconnects. Turning one VPN on shuts every other one off first — you never end up with two tunnels fighting over your routes.
- The gear to its left opens the widget's own settings, which for now is one
switch per tool found on this machine. Turn one off and the widget forgets it
entirely: no chip, no polling, and it stops counting toward the bar icon. Turn
it back on from the same place. The choice is written to
~/.config/omarchy/shell.jsonand survives a restart. - The chips below choose which tool you are looking at. They only appear when you have more than one installed.
- The name row is also a drawer. Tools with settings of their own get a chevron; click the row to fold them out, click it again to put them away. It starts closed and stays however you left it until the shell restarts.
- The settings inside are Mullvad's connect-on-startup, lockdown mode, and local network sharing, Proton VPN's kill switch, NetShield, and port forwarding, and Windscribe's firewall. They show what the tool itself reports, so changing one from its CLI shows up here on the next poll — the widget keeps no copy and never puts one back for you.
- The list is what you can connect to: for Proton VPN, fastest / P2P / random / Secure Core followed by every country; for Mullvad, any location followed by every country it has relays in; for Windscribe, best location followed by every region it serves; for AmneziaWG, each local profile; for NetworkManager, your OpenVPN and WireGuard profiles, told apart by their icon. A check mark marks where you are connected.
Keyboard, once the panel is open: j/k or arrows move — through the header,
the chips, the name row, the settings switches if they are open, then the list —
Enter connects, flips a switch, or opens and closes the settings drawer,
depending on what the cursor is on. h/l move along the chip row and between
the gear and the master switch in the header, s cycles tools, / searches
countries, d disconnects, r refreshes, Esc closes.
The public IP is fetched from https://checkip.amazonaws.com — never on a timer, only
when the connection changes, when the panel first opens, or when you ask.
Omarchy with its Quickshell desktop, plus at least one of:
- Proton VPN — the
protonvpnCLI, signed in (protonvpn signin). - Mullvad — the
mullvadCLI withmullvad-daemonrunning, logged in (mullvad account login <number>). - Windscribe —
windscribe-cliwith the Windscribe app running, logged in (windscribe-cli login). - Cloudflare WARP —
warp-cliwithwarp-svcrunning, the device registered (warp-cli registration new), and WARP's terms accepted once in a terminal. - AmneziaWG —
awgandawg-quickfromamneziawg-tools, with at least one.confprofile in~/.config/omarchy/vpn/awg-profiles/. - OpenVPN, WireGuard, OpenConnect or VPNC —
nmcli, plusopenvpn,wg(wireguard-tools),networkmanager-openconnect, ornetworkmanager-vpnc, with at least one profile imported into NetworkManager.
Configure these in Setup › Plugins, or in the widget's entry in
~/.config/omarchy/shell.json.
| Setting | Default | What it does |
|---|---|---|
refreshIntervalSec |
15 |
How often the connection status is polled |
preferredBackend |
Auto |
Which tool the panel opens on. Auto picks whichever is connected |
favoriteCountries |
CH,NL,US |
Country codes pinned to the top of the Proton VPN and Mullvad lists. Windscribe has no codes, so it matches names instead — see below |
hiddenBackends |
(empty) | Tools the widget ignores entirely: proton, mullvad, windscribe, warp, networkmanager, amneziawg. The gear inside the panel writes this |
Mullvad separates picking a relay from connecting: mullvad relay set location
records a constraint, mullvad connect brings the tunnel up against it. The
widget does both for you, so clicking a country connects to it and the choice
sticks — the switch and quickconnect reconnect to whatever you picked last
rather than to a "fastest server" the CLI has no notion of. Any location
hands the choice back to Mullvad.
Cities are searchable even though only countries are listed: typing zurich
finds Switzerland.
Lockdown mode blocks all traffic whenever Mullvad is disconnected — including the traffic another VPN needs to connect. The widget says so before it shuts Mullvad down for a different tool, but it will not turn lockdown off on its own. That switch is in the panel, or:
mullvad lockdown-mode set offwindscribe-cli is a client for the Windscribe desktop app, so the chip appears
only once that app is running and logged in. Until then the panel says which of
the two is missing instead of listing an empty chip.
The list is Windscribe's own regions — a country most of the time, a slice of one
where a country has too many (US East, US West). Clicking one connects to a
datacenter inside it. Best location hands the choice back to Windscribe, and
names the server it currently resolves to. Cities and Windscribe's server
nicknames are searchable even though only regions are listed, so both zurich
and alphorn find Switzerland.
Rows marked Pro only hold nothing a free account can reach. Connecting to one
fails with Location does not exist or is disabled, which does not say which of
the two it meant — hence the marker.
Because Windscribe names its regions and never prints a country code,
favoriteCountries matches them by name (Switzerland) and by leading word
(US pins US East, US Central and US West). The default CH,NL,US therefore
pins only the US rows on this chip.
The firewall is Windscribe's kill switch, and with the app's firewall mode set
to Auto it turns itself on before a connect and off after a disconnect. While it
is on and the tunnel is down, nothing leaves the machine — including the traffic
another VPN needs to connect. The widget says so before it shuts Windscribe down
for a different tool, but it will not turn the firewall off on its own. That
switch is in the panel, or:
windscribe-cli firewall offOne caveat that is Windscribe's and not the widget's: windscribe-cli refuses to
run while another copy of itself is running, exiting with Windscribe CLI is already running rather than waiting its turn. The widget serialises its own calls
and retries the ones that lose the race, so a command you run yourself at a
terminal costs the panel a moment and nothing more.
WARP is not a pick-a-country VPN. Cloudflare routes through the data centre
nearest you and keeps your own country as the exit location, so the list offers
WARP's tunnel modes instead of places: WARP (all traffic through Cloudflare)
and WARP with DNS over HTTPS. Picking one sets warp-cli mode if it differs,
then connects. While connected the panel shows the data centre, mode, protocol,
latency and account type, plus a Network line when WARP reports the
network as anything but healthy.
DNS-only (doh, dot) and proxy modes are left out: they carry none of the
machine's other traffic, so the switch would show a tunnel that protects nothing.
Set them with warp-cli mode if you want them.
The widget never passes --accept-tos. Without a terminal, warp-cli refuses
every command until WARP's terms were accepted once, and agreeing to them is for
you to do. Until then the panel says so instead of listing WARP; click that line
and it opens a terminal running warp-cli registration show, where you answer
the prompt yourself, then reopen the panel.
Switching to another tool runs warp-cli disconnect, which also turns off
WARP's own Always On, so it stays off until you connect it again.
AmneziaWG profiles are regular awg-quick configuration files. Put exported
.conf files in ~/.config/omarchy/vpn/awg-profiles/; the directory is created
automatically when the widget first checks for profiles, and the
AmneziaWG profile directory setting points it somewhere else. Each file
becomes a row on the AmneziaWG chip, named after its filename — for example,
home.conf appears as home.
awg-quick's own directory, /etc/amnezia/amneziawg/, is read too where its
files are readable to you; they are normally root-only, so a tunnel started with
sudo awg-quick up work instead shows up as a row while it is running, marked
as started outside the widget. Its rows exist so you can take it down from the
panel — there is nothing to reconnect to once it is off.
Profiles normally contain a private key. The widget creates the directory with
owner-only access (0700), but does not change an existing profile's mode; keep
each .conf readable only by your user, for example with chmod 600 *.conf.
The chip appears only when awg and awg-quick are both installed and there is
at least one profile to show. Selecting a profile brings it up with awg-quick;
selecting another takes the first one down before bringing the new one up, so
the widget does not leave two AmneziaWG tunnels running.
Bringing a profile up or down needs root privileges. The widget normally opens
a Polkit prompt through pkexec; with a NOPASSWD sudo rule for awg-quick,
it uses sudo -n instead and does not prompt.
For safety, profiles containing PreUp, PostUp, PreDown, or PostDown
hooks are shown as blocked and cannot be connected from the widget. Those
directives execute arbitrary commands as root through awg-quick; remove the
hooks or run a profile you trust directly from a terminal instead.
OpenVPN, WireGuard, OpenConnect and VPNC profiles all come from NetworkManager — the thing that imports and stores tunnel configs on a desktop. They share one chip, and the row icon says which is which. Import one with:
nmcli connection import type openvpn file ~/Downloads/office.ovpn
nmcli connection import type wireguard file ~/Downloads/home.confNetworkManager runs on every desktop, so the chip appears only once you have a
profile it can actually carry — an OpenVPN one with openvpn installed, a
WireGuard one with wireguard-tools, an OpenConnect one with
networkmanager-openconnect, or a VPNC one with networkmanager-vpnc. Until
then the panel shows the import command above rather than a chip leading to an
empty list.
A tunnel you started some other way is not listed: a bare openvpn process,
openvpn-client@.service, or a wg-quick@ unit. Neither is a tunnel another
tool on this list owns — Mullvad brings up its own WireGuard interface, and
NetworkManager adopts it, but that belongs on the Mullvad chip and appears only
there.
Picking a profile takes down whichever one is already up. NetworkManager is happy to run two tunnels at once; that is never what clicking a second profile means.
A freshly imported OpenVPN profile usually has no credentials saved, and there is no password prompt running inside the Omarchy shell. To make a profile connect in one click:
nmcli connection modify <name> +vpn.data username=<user>
nmcli connection modify <name> +vpn.data password-flags=0
nmcli connection modify <name> vpn.secrets 'password=<password>'password-flags=0 tells NetworkManager to own the password; imported profiles
usually arrive as 2 ("always ask"), which makes it ignore anything you saved.
The password then lives in /etc/NetworkManager/system-connections/, readable
by root only.
Without those, clicking a profile opens a terminal running
nmcli --ask connection up … so you can type the password there.
WireGuard needs none of this: its keys live in the profile. The one exception is
a profile whose wireguard.private-key-flags were set to ask an agent, which
lands in the same terminal.
VPNC profiles follow the OpenVPN credential path, but call their identity
Xauth username and carry both a user password and an IPSec group secret. Save
both secrets in the NetworkManager profile for a one-click connection; if the
user password is not saved, the panel opens nmcli --ask in a terminal.
If you are importing a Proton .ovpn: the username and password are the
OpenVPN/IKEv2 credentials from your Proton dashboard, not your Proton
account login.
OpenConnect profiles need none of the above, and cannot use it: their
cookie, gateway, gwcert and resolve secrets are all flagged not-saved,
so there is nothing to pre-save and nmcli --ask cannot help — it would prompt
for a session cookie by name. Instead, picking the profile raises the auth
dialog that networkmanager-openconnect ships, which is the same window
nm-applet would have raised. Enter your password there, complete whatever second
factor the gateway asks for, and the tunnel comes up. Install
networkmanager-openconnect and the profile appears; nm-applet is not needed.
Give the dialog a floating rule. It is a small GTK window, and tiled it
lands as a ~240×270 tile among whatever else is on the workspace — which reads
as the widget having done nothing, while the panel sits on "Authenticating…"
and further clicks are ignored until that attempt finishes. In
~/.config/hypr/hyprland.lua:
o.window("^(nm-openconnect-auth-dialog)$", { float = true, center = true })Let the dialog remember your password. Tick "Save passwords" in it. That
one setting does more than it looks like: networkmanager-openconnect also
gates keyring storage and form auto-submission on it, so with it off every page
of the form has to be clicked through by hand each time.
"No username set" on a profile. NetworkManager keeps the OpenVPN username
outside the secrets store, so no password prompt can supply it. Set it with the
nmcli connection modify … +vpn.data username=<user> line above.
The server rejects credentials that look right. Check them against the
tool's own CLI first — for Proton, the OpenVPN credentials are not the account
password. journalctl -u NetworkManager -f shows AUTH_FAILED when the server
is the one saying no.
Mullvad says the daemon is not responding. The CLI is only a client. Start
the daemon with sudo systemctl start mullvad-daemon (and enable it to have it
come back after a reboot).
Windscribe is installed but has no chip. windscribe-cli is a client too.
The panel says which half is missing — start the Windscribe app, or
windscribe-cli login — and picks the chip up on the next refresh.
Nothing appears in the bar. Confirm the plugin is enabled with
omarchy plugin list, then omarchy restart shell.
Proton and NetworkManager fight each other. Proton's daemon tears down foreign tunnels when it connects. The widget already shuts other tools down before connecting, so use the widget rather than mixing it with the Proton app.
The widget answers on the shell's IPC bus, so keybindings and scripts can drive it:
omarchy-shell jkoestinger.vpn status # "Proton VPN · CH#1129 · Zurich, Switzerland"
omarchy-shell jkoestinger.vpn ip # current public address
omarchy-shell jkoestinger.vpn backends # "proton mullvad windscribe warp networkmanager amneziawg"
omarchy-shell jkoestinger.vpn use mullvad # switch the panel's active tool
omarchy-shell jkoestinger.vpn connect CH # country code, region or profile name, or row key
omarchy-shell jkoestinger.vpn quickconnect # each tool's default connection
omarchy-shell jkoestinger.vpn disconnect
omarchy-shell jkoestinger.vpn setup # run the setup hint's command in a terminal
omarchy-shell jkoestinger.vpn toggle # open or close the panelAdding support for another VPN tool means two files of its own and two lines in the controller. CONTRIBUTING.md covers how to run, test and debug the widget; ARCHITECTURE.md covers how it is put together and why.
MIT. See LICENSE.


