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
doasorsudo
Installation
Quick install (recommended)
$ 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/kasramp/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.confviawpa_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
joinlines of/etc/hostname.<if>; wifzf edits only those lines. - "Switch" uses an
nwidoverride until you pick "Reconnect (auto)", which runsifconfig <if> -nwidso 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, tryfw_update.
License
GPL-3.0
Metadata
Release files for wifzf 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| wifzf-0.2.0.tar.gz | 28.5 kB | Without provenance | Details for wifzf-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| wifzf-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for wifzf-0.2.0-py3-none-any.whl |
Total release size: 56.1 kB
Release files / wifzf-0.2.0.tar.gz
| Download URL | wifzf-0.2.0.tar.gz |
|---|---|
| Size | 28.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
49aa82d84d08c105f794d99e5d68417d9ce141a56854174eadafd3f0b4a78789
|
|
BLAKE2b-256 checksum How to use checksums |
2e1d6a446ce6e2f90856d5aaf5cbe8fbe2433ed7ca9d39c4b73ee5366dc0c9b9
|
| 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.0-py3-none-any.whl
| Download URL | wifzf-0.2.0-py3-none-any.whl |
|---|---|
| Size | 27.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
41c47f3a46c95661014245b612183b8975a389f12d2a485d1fbc364398d3c958
|
|
BLAKE2b-256 checksum How to use checksums |
286ea5ad7daf9a5138e6e37d4a00891797e98199e3d40fae4091d252340cc68f
|
| 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.0
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.