docs(root):update README with new installation methods and project manifest

This commit is contained in:
sankalp committed 2026-05-29 16:01:16 +05:45
1 parent f202103a06
commit c8561bf4ff
1 file changed
+12 -11
+12 -11
View File
@@ -35,27 +35,28 @@ Built for speed and simplicity, it talks directly to your system's hardware inte
#### Option 1: Arch Linux (AUR) #### Option 1: Arch Linux (AUR)
```bash ```bash
yay -S lapctl yay -S lapctl-bin
sudo lapctl install-rules
``` ```
#### Option 2: Using `just` (Recommended for other distros) #### Option 2: crates.io
If you have [just](https://github.com/casey/just) installed:
```bash ```bash
cargo install lapctl
sudo lapctl install-rules
```
#### Option 3: From source (using `just`)
```bash
git clone https://github.com/S4NKALP/lapctl.git
cd lapctl
just install just install
sudo lapctl install-rules sudo lapctl install-rules
``` ```
_The `install-rules` command automatically sets up the D-Bus policy and starts the `lapctld` background service._ _The `install-rules` command automatically sets up the D-Bus policy and starts the `lapctld` background service._
#### Option 3: Using `cargo`
```bash
cargo install --path .
sudo lapctl install-rules
```
#### Requirements #### Requirements
- **GPU Switching (Optional)**: `xrandr` and `nvidia-settings` are strictly required **ONLY** when using the `lapctl gpu` command on X11 (to route proprietary NVIDIA Optimus drivers). Wayland is auto detected so no extra flags are needed. - **GPU Switching (Optional)**: `xrandr` and `nvidia-settings` are strictly required **ONLY** when using the `lapctl gpu` command on X11 (to route proprietary NVIDIA Optimus drivers). Wayland is auto detected so no extra flags are needed.