Merge branch 'master' of https://code.luxferre.top/luxferre/nvbright
This commit is contained in:
@@ -48,7 +48,7 @@ sudo make install
|
|||||||
|
|
||||||
Because `nvbright` requires direct access to `/dev/mem` to map GPU MMIO registers and executes `/usr/sbin/pciconf`, it must be run as root (e.g., with `sudo` or `doas`).
|
Because `nvbright` requires direct access to `/dev/mem` to map GPU MMIO registers and executes `/usr/sbin/pciconf`, it must be run as root (e.g., with `sudo` or `doas`).
|
||||||
|
|
||||||
### Command Syntax
|
### Command syntax
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
nvbright <get|set|up|down> [value 0-100]
|
nvbright <get|set|up|down> [value 0-100]
|
||||||
@@ -84,7 +84,7 @@ nvbright <get|set|up|down> [value 0-100]
|
|||||||
sudo nvbright down
|
sudo nvbright down
|
||||||
```
|
```
|
||||||
|
|
||||||
### Desktop and Window Manager Integration
|
### Desktop and window manager integration
|
||||||
|
|
||||||
You can bind `nvbright up` and `nvbright down` commands to the brightness keys (`XF86MonBrightnessUp` and `XF86MonBrightnessDown`) in window manager configurations (such as Sway, i3, or Openbox) or configure `sudoers` / `doas.conf` rules to allow execution without password prompts.
|
You can bind `nvbright up` and `nvbright down` commands to the brightness keys (`XF86MonBrightnessUp` and `XF86MonBrightnessDown`) in window manager configurations (such as Sway, i3, or Openbox) or configure `sudoers` / `doas.conf` rules to allow execution without password prompts.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user