diff --git a/backlightctl b/backlightctl index e101f01..7423a79 100755 --- a/backlightctl +++ b/backlightctl @@ -1,7 +1,7 @@ #!/bin/sh set -euf -BACKLIGHT_PATH="${BACKLIGHT_PATH:-/sys/class/backlight/amdgpu_bl0}" +BACKLIGHT_PATH="/sys/class/backlight/amdgpu_bl0" errecho() { >&2 printf '%s\n' "$*" diff --git a/readme.md b/readme.md index af49dc9..df0bb0d 100644 --- a/readme.md +++ b/readme.md @@ -2,7 +2,7 @@ A simple script to change the backlight brightness value on laptops. Mostly made as a workaround for [this bug](https://bugzilla.kernel.org/show_bug.cgi?id=203905). ## Configuration -The only configurable variable is the backlight path. It defaults to `/sys/class/backlight/amdgpu_bl0`. You can change `BACKLIGHT_PATH` to point to the file path. +The only configurable variable is the backlight path. It defaults to `/sys/class/backlight/amdgpu_bl0`. You can change `BACKLIGHT_PATH` (in the script itself, for security reasons bla bla bla) to point to the file path. ## Usage ```