Add `omarchy network mac` (hardware / stable / random MAC), with panel row and menu, like `omarchy dns`
Omarchy has a native switch for DNS (omarchy dns) but none for the other thing a network sees about you: your MAC address. NetworkManager already supports this natively. It just has no front door.
Proposal
omarchy network mac # show current mode (read-only, no root)
omarchy network mac stable # set it
omarchy network mac random --now # set it and re-activate active links
omarchy network mac permanent --dry-run
| Mode | Wi-Fi | Ethernet | Good for |
|---|---|---|---|
permanent |
hardware MAC | hardware MAC | MAC-filtered networks, office/uni allow-lists |
stable |
stable-ssid (one address per SSID) |
stable (one per profile) |
privacy without breaking DHCP reservations or captive-portal re-login |
random |
new each connection | new each connection | public hotspots |
How it works
Same shape as omarchy dns: a pure-bash command, a NetworkManager drop-in, pkexec/sudo for the root half.
# /etc/NetworkManager/conf.d/21-omarchy-mac.conf
[connection]
wifi.cloned-mac-address=stable-ssid
ethernet.cloned-mac-address=stable
Design choices, each deliberate:
- Drop-in only, profiles are never rewritten. Unset profiles follow the setting. A profile that pins its own
cloned-mac-addresskeeps winning, and the command reports it instead of editing it. - Applying is opt-in. A new MAC only reaches the interface when the link is re-activated (
nmcli device reapplydoes not do it), which drops TCP sessions and renews the lease. Without--nowit takes effect on the next connect.--nowis refused over SSH and rolls back to the previous setting if re-activation fails. - Safe by construction: strict whitelist of three modes, atomic temp-file +
mv, idempotent, root PATH pin,--dry-run, bare invocation needs no privileges. - Honest limits: warns on the iwd backend (which does its own randomisation).
wifi.scan-rand-mac-address(scan-time randomisation) is untouched.
GUI, same as DNS
| Surface | What it adds |
|---|---|
| Network panel | A MAC ADDRESS row under DNS PROVIDER: three pills (Hardware / Stable / Random), same look, hover and h/j/k/l keyboard behaviour. Tooltips say a change applies on the next connection. Hidden if the command is absent. |
| Setup > Network > MAC Address | Three checked entries, like Setup > Network > DNS. |
omarchy network mac --current |
A cheap read (no nmcli calls) so menus and the panel can poll it. |
The panel never re-activates the link on its own: that drops sessions, so it is only available as --now on the CLI.
Why Omarchy
- Zero new dependencies, ~230 lines, nothing to keep alive: it only writes a documented NetworkManager default.
- Fits the existing
omarchy dns/omarchy network bandconventions, so a shell toggle can be added later the same way DNS has one. - Reversible: delete the file and NetworkManager's default returns.
Verified on hardware
Omarchy 4.5.0, NetworkManager 1.58, wpa_supplicant, Wi-Fi (Intel):
| Mode | Result after --now |
|---|---|
permanent |
hardware address; connectivity restored in under 6 s |
stable |
one fixed locally administered address, identical across two reconnects |
random |
a different address on each of two reconnects |
Also checked: the drop-in shows up in NetworkManager --print-config; without --now the live interface is untouched until the next connect; repeat runs are no-ops; a failed re-activation restores the previous setting (stubbed nmcli); --now over SSH is refused; the Setup menu shows the three entries with a tick on the active one; the panel row renders, follows the real mode when reopened, and shows its tooltips. The command and the GUI patch were each reviewed by an independent auditor and the findings fixed.
Not covered: the iwd backend (warned about, untested) and non-English strings (new keys fall back to English).
Status
A working patch exists for all four files: bin/omarchy-network-mac, shell/plugins/panels/network/Panel.qml, default/omarchy/omarchy-menu.jsonc, default/i18n/en/shell.json (about 600 lines including the new command). Happy to open a PR if this direction is welcome. Searched open and closed issues and PRs for "mac address", "random mac", "spoof" and "cloned-mac": no prior discussion.
Filed here by mistake: feature suggestions belong in Discussions. Moved to https://github.com/omacom/omarchy/discussions/19988, with screenshots. PR: https://github.com/omacom/omarchy/pull/19987