| 1 |
<div align="center"> |
| 2 |
<h1> nmrs-tui 🦀 </h1> |
| 3 |
<strong>A fast, keyboard-first TUI for NetworkManager — built in Rust.</strong> |
| 4 |
|
| 5 |
<br> |
| 6 |
<br> |
| 7 |
<img src="https://img.shields.io/badge/status-BETA-orange?style=for-the-badge" alt="Status"> |
| 8 |
<img src="https://img.shields.io/badge/license-GPL--3-blue?style=for-the-badge" alt="License"> |
| 9 |
<img src="https://img.shields.io/badge/built%20with-Ratatui-red?style=for-the-badge" alt="Ratatui"> |
| 10 |
</div> |
| 11 |
|
| 12 |
## Demo |
| 13 |
|
| 14 |
https://github.com/user-attachments/assets/6c76c8fd-067d-4a42-aa27-a5884fcc42a8 |
| 15 |
|
| 16 |
--- |
| 17 |
|
| 18 |
`nmrs-tui` is a terminal user interface for [nmrs](https://github.com/cachebag/nmrs), inspired from [impala](https://github.com/pythops/impala). |
| 19 |
|
| 20 |
## ✨ Features |
| 21 |
- **Available Networks:** Real-time scanning and listing of WiFi networks. |
| 22 |
- **Known Networks:** Easily manage and connect to your saved profiles. |
| 23 |
- **Device Management:** View and control your network interfaces. |
| 24 |
- **Customizable:** colors, borders, layout, and table widths are all configurable via a RON config file |
| 25 |
- **Vim-like Keybindings:** Navigate your networks with Vim-like keybinds. |
| 26 |
|
| 27 |
## 🚀 Installation |
| 28 |
|
| 29 |
### Prerequisites |
| 30 |
- [**NetworkManager**](https://wiki.archlinux.org/title/NetworkManager) must be installed and running. |
| 31 |
- **Rust** if you are building from source. |
| 32 |
|
| 33 |
### 📦 Cargo |
| 34 |
```sh |
| 35 |
cargo install nmrs-tui |
| 36 |
``` |
| 37 |
The binary will be available at `~/.cargo/bin/nmrs-tui`. |
| 38 |
Make sure `~/.cargo/bin` is on your `PATH`: |
| 39 |
```sh |
| 40 |
export PATH="$HOME/.cargo/bin:$PATH" |
| 41 |
``` |
| 42 |
|
| 43 |
### Build from Source |
| 44 |
```bash |
| 45 |
git clone https://github.com/y2w8/nmrs-tui.git |
| 46 |
cd nmrs-tui |
| 47 |
cargo build --release |
| 48 |
``` |
| 49 |
The binary will be available at `./target/release/nmrs-tui`. |
| 50 |
|
| 51 |
## 🛠️ Debugging & Logs |
| 52 |
If you encounter issues, `nmrs-tui` provides detailed logging. You can set the log level using the `NMRS_LOG` environment variable: |
| 53 |
```bash |
| 54 |
NMRS_LOG=trace nmrs-tui |
| 55 |
``` |
| 56 |
Logs are stored in your cache directory `~/.cache/nmrs-tui/nmrs-tui.log`, fallback to cwd. |
| 57 |
|
| 58 |
## 🤝 Contributing |
| 59 |
|
| 60 |
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. |