Skip to main content

wifzf

A minimal WiFi manager for FreeBSD and OpenBSD built on top of fzf (and wpa_supplicant on FreeBSD). Think nmtui, but only for WiFi and made for switching networks fast.

Requirements

  • FreeBSD or OpenBSD
  • Python 3.10+
  • fzf
  • doas or sudo

Installation

$ pkg install fzf py311-pipx doas
$ pipx install wifzf

On OpenBSD:

$ pkg_add fzf py3-pipx
$ pipx install wifzf

Or with pip:

$ pip install wifzf

Then run:

$ wifzf

From source

$ git clone https://github.com/OpenBSDGuy/wifzf
$ cd wifzf
$ python -m venv venv && source venv/bin/activate
$ pip install -r requirements.txt
$ ./run-wifzf

First run

On OpenBSD, see OpenBSD notes below; setup there picks the device, creates /etc/hostname.<if> (mode 640) with inet autoconf if missing and brings the interface up.

On FreeBSD:

If there is no wlan0 or no /etc/wpa_supplicant.conf, wifzf sets things up for you: it asks for your wireless device and country code, writes wpa_supplicant.conf (mode 600), updates /etc/rc.conf through sysrc, creates wlan0 and starts wpa_supplicant. No reboot needed.

wifzf re-runs itself through doas or sudo when it isn't started as root.

Usage

Menu entry Action
Connect to a network (scan) Scan, pick a network, enter the password, connect. Ctrl-R rescans
Switch to a saved network Quickly jump to a network you already saved
Disconnect Drop the current connection
Reconnect (auto, by priority) Re-enable all saved networks and let priority decide
Forget a saved network Remove a network from wpa_supplicant.conf
Status Show wpa_cli status and the IP address
Setup / reconfigure Run the first-time setup again
Esc Go back

Notes

  • Networks are stored in /etc/wpa_supplicant.conf via wpa_cli save_config.
  • "Switch" uses select_network, which disables the other saved networks until you pick "Reconnect (auto)".
  • If a connect fails (wrong password, out of range) wifzf resets the interface (ifconfig down/up) and goes back to your previous network.
  • Supports open, WPA/WPA2 and WPA3 personal networks. No WEP, no 802.1X, no hidden networks.

OpenBSD notes

  • Saved networks are the join lines of /etc/hostname.<if>; wifzf edits only those lines.
  • "Switch" uses an nwid override until you pick "Reconnect (auto)", which runs ifconfig <if> -nwid so the join list decides again.
  • No WPA3-only (SAE), WEP or 802.1X networks. Networks offering both WPA3 and WPA2 are treated as WPA2. Passphrases containing ", $, `, \ or # are refused (they would be shell-active in /etc/netstart).
  • Signal strength is shown in %, not dBm.
  • OpenBSD gives no wrong-password signal: a bad password is detected by a timeout (up to ~30 s).
  • DHCP is done by inet autoconf (dhcpleased). If no device is found, try fw_update.

License

GPL-3.0

Metadata

Release files for wifzf 0.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for wifzf 0.2.1
File Size Uploaded Provenance Actions
wifzf-0.2.1.tar.gz 28.6 kB Without provenance Details for wifzf-0.2.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for wifzf 0.2.1
File Interpreter ABI Platform Actions
wifzf-0.2.1-py3-none-any.whl Python 3 none any Details for wifzf-0.2.1-py3-none-any.whl

Total release size: 56.2 kB

Release files / wifzf-0.2.1.tar.gz

Download URL wifzf-0.2.1.tar.gz
Size 28.6 kB
Tags Source
SHA-256 checksum
How to use checksums
327b0a28c3b26ce7ccb85e28227f9dec4ad55eda6c342be0874f530f89ae4db5
BLAKE2b-256 checksum
How to use checksums
a1ffb27606e7fd200aab0c5f3729e37ba727bee2bcfa7d3feda406467bc66d85
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.9

Release files / wifzf-0.2.1-py3-none-any.whl

Download URL wifzf-0.2.1-py3-none-any.whl
Size 27.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2ca64cd055e46f516b6e493aaedd0dee9a175ce9b3c9f5fb0c3ca704f30fc21d
BLAKE2b-256 checksum
How to use checksums
cd675d170a42da42f79f815f0beff635dc5fe88c54b48f9649d2e833cafd2064
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.9

Security for wifzf 0.2.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page