| 1 | # <p align="center"> nmrs-tui 🦀 </p> |
| 2 | |
| 3 | <p align="center"> |
| 4 | <strong>A fast, keyboard-first TUI for NetworkManager — built in Rust.</strong> |
| 5 | </p> |
| 6 | |
| 7 | <p align="center"> |
| 8 | <img src="https://img.shields.io/badge/status-BETA-orange?style=for-the-badge" alt="Status"> |
| 9 | <img src="https://img.shields.io/badge/license-GPL--3-blue?style=for-the-badge" alt="License"> |
| 10 | <img src="https://img.shields.io/badge/built%20with-Ratatui-red?style=for-the-badge" alt="Ratatui"> |
| 11 | </p> |
| 12 | |
| 13 | --- |
| 14 | |
| 15 | `nmrs-tui` is a terminal user interface for [nmrs](https://github.com/cachebag/nmrs), inspired from [impala](https://github.com/pythops/impala). |
| 16 | |
| 17 | ## ✨ Features |
| 18 | - **Available Networks:** Real-time scanning and listing of WiFi networks. |
| 19 | - **Known Networks:** Easily manage and connect to your saved profiles. |
| 20 | - **Device Management:** View and control your network interfaces. |
| 21 | - **Customizable:** (WIP). |
| 22 | - **Vim-like Keybindings:** Navigate your networks with Vim-like keybinds. |
| 23 | |
| 24 | ## 🚀 Installation |
| 25 | |
| 26 | ### Prerequisites |
| 27 | - [**NetworkManager**](https://wiki.archlinux.org/title/NetworkManager) must be installed and running. |
| 28 | - **Rust** if you are building from source. |
| 29 | |
| 30 | ### 📦 Cargo |
| 31 | ```sh |
| 32 | cargo install nmrs-tui |
| 33 | ``` |
| 34 | The binary will be available at `~/.cargo/bin/nmrs-tui`. |
| 35 | Make sure to add path `export PATH="$HOME/.cargo/bin:$PATH"` |
| 36 | |
| 37 | ### Build from Source |
| 38 | ```bash |
| 39 | git clone https://github.com/y2w8/nmrs-tui.git |
| 40 | cd nmrs-tui |
| 41 | cargo build --release |
| 42 | ``` |
| 43 | The binary will be available at `./target/release/nmrs-tui`. |
| 44 | |
| 45 | ## 🛠️ Debugging & Logs |
| 46 | If you encounter issues, `nmrs-tui` provides detailed logging. You can set the log level using the `NMRS_LOG` environment variable: |
| 47 | ```bash |
| 48 | NMRS_LOG=trace nmrs-tui |
| 49 | ``` |
| 50 | Logs are stored in your cache directory `~/.cache/nmrs-tui/nmrs-tui.log`, fallback to cwd. |
| 51 | |
| 52 | ## 🤝 Contributing |
| 53 | |
| 54 | Contributions are welcome! Whether it's a bug report, a new feature idea, or a pull request, feel free to open an issue or submit a PR. |
