Skip to main content

Interactive TUI for reordering macOS WiFi network priorities

Project description

WiFi Priority TUI

Interactive terminal UI for reordering macOS WiFi network priorities.

Features

  • ๐ŸŽจ Beautiful terminal interface using Textual
  • โŒจ๏ธ Keyboard-driven navigation (vim-style keys supported)
  • ๐Ÿ”„ Real-time reordering with visual feedback
  • ๐Ÿ’พ Applies changes directly to macOS network preferences
  • ๐Ÿ›ก๏ธ Safe: shows unsaved changes before exit

Installation

Note: PyPI package coming soon! For now, install from source.

From source (current method)

git clone https://github.com/dhruv-anand-aintech/wifi-priority-tui
cd wifi-priority-tui
uv pip install -e .

Using uv (once published to PyPI)

uv pip install wifi-priority-tui

Using pip (once published to PyPI)

pip install wifi-priority-tui

Usage

Simply run:

wifi-priority

Keyboard Controls

  • โ†‘/โ†“ or k/j - Navigate through networks
  • Ctrl+โ†‘ or Ctrl+k - Move selected network up (higher priority)
  • Ctrl+โ†“ or Ctrl+j - Move selected network down (lower priority)
  • s - Save changes and exit
  • q - Quit without saving

Requirements

  • macOS (uses networksetup command)
  • Python 3.8+
  • WiFi adapter (typically en0)

How It Works

The app:

  1. Reads your current WiFi network priority list from macOS
  2. Displays them in an interactive TUI
  3. Lets you reorder them with keyboard shortcuts
  4. Applies changes using sudo networksetup commands

Networks at the top of the list have higher priority. macOS will automatically connect to the highest priority network available.

Why?

macOS System Settings lets you reorder WiFi networks, but it's buried deep in menus and requires lots of clicking. This tool makes it quick and keyboard-driven.

Perfect for users who:

  • Switch between multiple WiFi networks frequently
  • Want to prioritize work/home networks
  • Need to prevent auto-connecting to certain networks
  • Prefer terminal interfaces

Screenshots

โ•ญโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฎ
โ”‚ ๐Ÿ›œ  WiFi Network Priority Manager                        โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚ ๐Ÿ“‹ Drag networks to change priority (higher = preferred) โ”‚
โ”‚    Use โ†‘โ†“ or k/j to select, Ctrl+โ†‘โ†“ to move, 's' to saveโ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚ โ”โ” WiFi Networks (Priority Order) โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”“ โ”‚
โ”‚ โ”ƒ   Home Network 5G                                    โ”ƒ โ”‚
โ”‚ โ”ƒ โ–ถ Office WiFi                                        โ”ƒ โ”‚
โ”‚ โ”ƒ   Coffee Shop Guest                                  โ”ƒ โ”‚
โ”‚ โ”—โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”› โ”‚
โ”‚ โš ๏ธ  Changes not saved! Press 's' to save or 'q' to quit  โ”‚
โ•ฐโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฏ

License

MIT License - see LICENSE file for details

Related Projects

Contributing

Issues and pull requests welcome!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

wifi_priority_tui-0.1.0.tar.gz (5.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

wifi_priority_tui-0.1.0-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

File details

Details for the file wifi_priority_tui-0.1.0.tar.gz.

File metadata

  • Download URL: wifi_priority_tui-0.1.0.tar.gz
  • Upload date:
  • Size: 5.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.12

File hashes

Hashes for wifi_priority_tui-0.1.0.tar.gz
Algorithm Hash digest
SHA256 d38173b0e247391b4edff9de60683cf1fb5c79c99ebab3364f0fde2571238eac
MD5 dfbcc81c9b5c39a637f0288ca1a0f2a1
BLAKE2b-256 3e84b325ab4f21652774e665dc0d28c1aeb9c64111c49b437e3c9652fd1d5272

See more details on using hashes here.

File details

Details for the file wifi_priority_tui-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for wifi_priority_tui-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f951f56beaf5b74584f8235193ea1e2b387d997ef4d0681970e7fdbe46f39cbc
MD5 05fd4805d4106bb687d4a88b5bd3f38a
BLAKE2b-256 3fe45fe64f4f8530ef5cb04c2571d60547d776d37f27f598ed929d1410656ebd

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page