Update README.md
6 files changed, 180 insertions(+), 33 deletions(-)
@@ -53,7 +53,7 @@
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "40c48f72fd53cd289104fc64099abca73db4166ad86ea0b4341abe65af83dadc"
dependencies = [
"windows-sys",
"windows-sys 0.61.2",
]
[[package]]
@@ -64,7 +64,7 @@
dependencies = [
"anstyle",
"once_cell_polyfill",
"windows-sys",
"windows-sys 0.61.2",
]
[[package]]
@@ -133,9 +133,9 @@
"futures-lite",
"parking",
"polling",
"rustix",
"rustix 1.1.4",
"slab",
"windows-sys",
"windows-sys 0.61.2",
]
[[package]]
@@ -164,7 +164,7 @@
"cfg-if",
"event-listener",
"futures-lite",
"rustix",
"rustix 1.1.4",
]
[[package]]
@@ -190,10 +190,10 @@
"cfg-if",
"futures-core",
"futures-io",
"rustix",
"rustix 1.1.4",
"signal-hook-registry",
"slab",
"windows-sys",
"windows-sys 0.61.2",
]
[[package]]
@@ -394,6 +394,7 @@
"itoa",
"rustversion",
"ryu",
"serde",
"static_assertions",
]
@@ -435,6 +436,23 @@
version = "0.8.21"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d0a5c400df2834b80a4c3327b3aad3a4c4cd4de0629063962b03235697506a28"
[[package]]
name = "crossterm"
version = "0.28.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "829d955a0bb380ef178a640b91779e3987da38c9aea133b20614cfed8cdea9c6"
dependencies = [
"bitflags 2.13.0",
"crossterm_winapi",
"mio",
"parking_lot",
"rustix 0.38.44",
"serde",
"signal-hook",
"signal-hook-mio",
"winapi",
]
[[package]]
name = "crossterm"
@@ -449,7 +467,8 @@
"futures-core",
"mio",
"parking_lot",
"rustix",
"rustix 1.1.4",
"serde",
"signal-hook",
"signal-hook-mio",
"winapi",
@@ -583,7 +602,7 @@
"libc",
"option-ext",
"redox_users",
"windows-sys",
"windows-sys 0.61.2",
]
[[package]]
@@ -641,7 +660,7 @@
checksum = "39cab71617ae0d63f51a36d69f866391735b51691dbda63cf6f96d042b63efeb"
dependencies = [
"libc",
"windows-sys",
"windows-sys 0.61.2",
]
[[package]]
@@ -1079,6 +1098,12 @@
[[package]]
name = "linux-raw-sys"
version = "0.4.15"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d26c52dbd32dccf2d10cac7725f8eae5296885fb5703b261f7d0a0739ec807ab"
[[package]]
name = "linux-raw-sys"
version = "0.12.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "32a66949e030da00e8c7d4434b251670a91556f4144941d37452769c25d58a53"
@@ -1159,7 +1184,7 @@
"libc",
"log",
"wasi",
"windows-sys",
"windows-sys 0.61.2",
]
[[package]]
@@ -1201,7 +1226,7 @@
"anyhow",
"bitflags 2.13.0",
"clap",
"crossterm",
"crossterm 0.29.0",
"dirs",
"log",
"nmrs",
@@ -1260,6 +1285,12 @@
]
[[package]]
name = "numtoa"
version = "0.2.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6aa2c4e539b869820a2b82e1aef6ff40aa85e65decdd5185e83fb4b1249cd00f"
[[package]]
name = "once_cell"
version = "1.21.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
@@ -1471,8 +1502,8 @@
"concurrent-queue",
"hermit-abi",
"pin-project-lite",
"rustix",
"windows-sys",
"rustix 1.1.4",
"windows-sys 0.61.2",
]
[[package]]
@@ -1561,6 +1592,7 @@
"ratatui-core",
"ratatui-crossterm",
"ratatui-macros",
"ratatui-termion",
"ratatui-termwiz",
"ratatui-widgets",
"serde",
@@ -1596,7 +1628,8 @@
checksum = "2b2867bedcbd6a690ca4f8672a687b730ec07660c79844517b084311b529980c"
dependencies = [
"cfg-if",
"crossterm",
"crossterm 0.28.1",
"crossterm 0.29.0",
"instability",
"ratatui-core",
]
@@ -1612,6 +1645,17 @@
]
[[package]]
name = "ratatui-termion"
version = "0.1.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5c16cc35a9d9114e0b2bb4b22018b96ae7f5fe60e2595dc73e622b4e78624835"
dependencies = [
"instability",
"ratatui-core",
"termion",
]
[[package]]
name = "ratatui-termwiz"
version = "0.1.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
@@ -1715,6 +1759,19 @@
[[package]]
name = "rustix"
version = "0.38.44"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "fdb5bc1ae2baa591800df16c9ca78619bf65c0488b41b96ccec5d11220d8c154"
dependencies = [
"bitflags 2.13.0",
"errno",
"libc",
"linux-raw-sys 0.4.15",
"windows-sys 0.59.0",
]
[[package]]
name = "rustix"
version = "1.1.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b6fe4565b9518b83ef4f91bb47ce29620ca828bd32cb7e408f0062e9930ba190"
@@ -1722,8 +1779,8 @@
"bitflags 2.13.0",
"errno",
"libc",
"linux-raw-sys",
"windows-sys",
"linux-raw-sys 0.12.1",
"windows-sys 0.61.2",
]
[[package]]
@@ -1945,8 +2002,8 @@
"fastrand",
"getrandom 0.4.2",
"once_cell",
"rustix",
"windows-sys",
"rustix 1.1.4",
"windows-sys 0.61.2",
]
[[package]]
@@ -1968,6 +2025,17 @@
"nom",
"phf",
"phf_codegen",
]
[[package]]
name = "termion"
version = "4.0.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f44138a9ae08f0f502f24104d82517ef4da7330c35acd638f1f29d3cd5475ecb"
dependencies = [
"libc",
"numtoa",
"serde",
]
[[package]]
@@ -2004,6 +2072,7 @@
"pest",
"pest_derive",
"phf",
"serde",
"sha2",
"signal-hook",
"siphasher",
@@ -2106,7 +2175,7 @@
"pin-project-lite",
"signal-hook-registry",
"tokio-macros",
"windows-sys",
"windows-sys 0.61.2",
]
[[package]]
@@ -2232,7 +2301,7 @@
dependencies = [
"memoffset",
"tempfile",
"windows-sys",
"windows-sys 0.61.2",
]
[[package]]
@@ -2426,6 +2495,7 @@
dependencies = [
"getrandom 0.3.4",
"mac_address",
"serde",
"sha2",
"thiserror 1.0.69",
"uuid",
@@ -2440,6 +2510,7 @@
"csscolorparser",
"deltae",
"lazy_static",
"serde",
"wezterm-dynamic",
]
@@ -2502,7 +2573,7 @@
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c2a7b1c03c876122aa43f3020e6c3c3ee5c05081c9a00739faf7503aeba10d22"
dependencies = [
"windows-sys",
"windows-sys 0.61.2",
]
[[package]]
@@ -2516,6 +2587,15 @@
version = "0.2.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5"
[[package]]
name = "windows-sys"
version = "0.59.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1e38bc4d79ed67fd075bcc251a1c39b32a1776bbe92e5bef1f0bf1f8c531853b"
dependencies = [
"windows-targets",
]
[[package]]
name = "windows-sys"
@@ -2525,6 +2605,70 @@
dependencies = [
"windows-link",
]
[[package]]
name = "windows-targets"
version = "0.52.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9b724f72796e036ab90c1021d4780d4d3d648aca59e491e6b98e725b84e99973"
dependencies = [
"windows_aarch64_gnullvm",
"windows_aarch64_msvc",
"windows_i686_gnu",
"windows_i686_gnullvm",
"windows_i686_msvc",
"windows_x86_64_gnu",
"windows_x86_64_gnullvm",
"windows_x86_64_msvc",
]
[[package]]
name = "windows_aarch64_gnullvm"
version = "0.52.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "32a4622180e7a0ec044bb555404c800bc9fd9ec262ec147edd5989ccd0c02cd3"
[[package]]
name = "windows_aarch64_msvc"
version = "0.52.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "09ec2a7bb152e2252b53fa7803150007879548bc709c039df7627cabbd05d469"
[[package]]
name = "windows_i686_gnu"
version = "0.52.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8e9b5ad5ab802e97eb8e295ac6720e509ee4c243f69d781394014ebfe8bbfa0b"
[[package]]
name = "windows_i686_gnullvm"
version = "0.52.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0eee52d38c090b3caa76c563b86c3a4bd71ef1a819287c19d586d7334ae8ed66"
[[package]]
name = "windows_i686_msvc"
version = "0.52.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "240948bc05c5e7c6dabba28bf89d89ffce3e303022809e73deaefe4f6ec56c66"
[[package]]
name = "windows_x86_64_gnu"
version = "0.52.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "147a5c80aabfbf0c7d901cb5895d1de30ef2907eb21fbbab29ca94c5b08b1a78"
[[package]]
name = "windows_x86_64_gnullvm"
version = "0.52.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "24d5b23dc417412679681396f2b49f3de8c1473deb516bd34410872eff51ed0d"
[[package]]
name = "windows_x86_64_msvc"
version = "0.52.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec"
[[package]]
name = "winnow"
@@ -2651,13 +2795,13 @@
"hex",
"libc",
"ordered-stream",
"rustix",
"rustix 1.1.4",
"serde",
"serde_repr",
"tracing",
"uds_windows",
"uuid",
"windows-sys",
"windows-sys 0.61.2",
"winnow",
"zbus_macros",
"zbus_names",
@@ -10,12 +10,12 @@
readme = "README.md"
keywords = ["networkmanager", "tui", "linux"]
categories = ["tui"]
exclude = [".github/", ".gitignore", "./assets/", "./PLANS.md", "./release.toml"]
[dependencies]
anyhow = "1.0.102"
crossterm = { version = "0.29.0", features = ["event-stream"] }
# TODO: serliaze and deseliaze wired notify & exclude assets adn target folder from package
ratatui = "0.30.1"
ratatui = { version = "0.30.1", features = ["serde"] }
serde = "1.0.228"
tokio = { version = "1.52.3", features = ["rt-multi-thread", "macros"] }
tokio-stream = { version = "0.1", features = ["sync"] }
@@ -12,17 +12,18 @@
## Demo

https://github.com/user-attachments/assets/6c76c8fd-067d-4a42-aa27-a5884fcc42a8
---
`nmrs-tui` is a terminal user interface for [nmrs](https://github.com/cachebag/nmrs), inspired from [impala](https://github.com/pythops/impala).
## ✨ Features
- **Available Networks:** Real-time scanning and listing of WiFi networks.
- **Known Networks:** Easily manage and connect to your saved profiles.
- **Device Management:** View and control your network interfaces.
- **Available Networks:** Real-time scanning and listing of WiFi networks
- **Known Networks:** Easily manage and connect to your saved profiles
- **Device Management:** View and control your network interfaces
- **Customizable:** (WIP).
- **Vim-like Keybindings:** Navigate your networks with Vim-like keybinds.
- **Vim-like Keybindings:** Navigate your networks with Vim-like keybinds
## 🚀 Installation
@@ -35,7 +36,10 @@
cargo install nmrs-tui
```
The binary will be available at `~/.cargo/bin/nmrs-tui`.
Make sure to add path `export PATH="$HOME/.cargo/bin:$PATH"`
Make sure `~/.cargo/bin` is on your `PATH`:
```sh
export PATH="$HOME/.cargo/bin:$PATH"
```
### Build from Source
```bash
Binary files a/assets/demo.avif and /dev/null differ
Binary files a/assets/demo.mp4 and /dev/null differ
@@ -76,7 +76,6 @@
self.nmrs.forget(ssid).await
}
// TODO: auto connect.
pub async fn connect(
&self,
ssid: &str,