No description
  • Rust 98.9%
  • Nix 1.1%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-11-26 15:35:59 +07:00
src Add channel support 2026-11-26 15:35:59 +07:00
.gitignore Initial commit 2026-11-23 16:18:04 +07:00
Cargo.lock Initial commit 2026-11-23 16:18:04 +07:00
Cargo.toml Initial commit 2026-11-23 16:18:04 +07:00
flake.lock Initial commit 2026-11-23 16:18:04 +07:00
flake.nix Ship a desktop entry so launchers can start iwtui in a terminal 2026-11-26 15:35:01 +07:00
iwtui.desktop Ship a desktop entry so launchers can start iwtui in a terminal 2026-11-26 15:35:01 +07:00
README.md Add channel support 2026-11-26 15:35:59 +07:00

iwtui

A keyboard-driven terminal UI for iwd, talking to it directly over D-Bus.

Features

  • Networks in range sorted by signal, with band, channel, signal bars, dBm and percentage. Band and channel come from iw's scan dump, as iwd does not expose them.
  • Connect, disconnect and connect to hidden networks. Passphrases and enterprise credentials are asked for in the TUI through an iwd agent.
  • Known networks with last-used time, forget and autoconnect toggle.
  • Live link statistics of the current connection: RSSI, band, channel, PHY mode, bitrates and security.
  • Access point mode with saved settings, a list of associated clients with their DHCP leases, and a QR code to join from a phone.
  • Optional DHCP server (dnsmasq) and internet sharing (NAT over the interface holding the default route) for the access point.
  • QR code with the saved passphrase of a known network.
  • Device and adapter power toggles, and switching between multiple wireless devices.
  • Vim-style navigation and / search on every list.

Keys

Key Action
h l / Tab / 1 2 3 switch tabs
j k, g G, C-d C-u move
/ search, Enter keeps the filter, Esc clears it
r scan
p / P toggle device / adapter power
w next wireless device
Enter / c connect
d disconnect
f forget
a toggle autoconnect
H connect to a hidden network
i details
Q QR code
s Access Point tab: start (switching to AP mode) or stop. Networks and Known tabs: switch back to station mode
e edit the access point
D, n toggle DHCP server, toggle internet sharing
? help

Access point

Settings are stored in ~/.config/iwtui/config.toml. A random passphrase is generated on first run.

The channel is chosen by iwd unless one is set in the settings form, which lists the 2.4 and 5 GHz channels the adapter may currently transmit on. A fixed channel is applied through an iwd AP profile that iwtui writes to /var/lib/iwd/ap/<SSID>.ap with sudo. iwd cannot run an access point on 6 GHz. Without a regulatory country ([General].Country in iwd's main.conf) the kernel allows few 5 GHz channels in AP mode.

When the access point starts, iwtui can assign the configured address to the interface, start dnsmasq as DHCP and DNS server and set up NAT with iptables. These steps need root, so iwtui drops out of the TUI once to let sudo ask for credentials and then runs the commands with sudo -n. Everything it changes is recorded in $XDG_RUNTIME_DIR/iwtui-hotspot.json and undone when the access point stops or the device returns to station mode. If dhcpcd manages the interface, it is told to release it while the access point runs.

If iwd has [General] EnableNetworkConfiguration=true, iwd assigns the address and runs DHCP itself, and iwtui only handles internet sharing.

Building

nix build
# or
cargo build --release

The Nix package puts iw, dnsmasq, iproute2, iptables and procps on the PATH.