From 618ac98209b5dce32fc0195d2a78e48a9066f800 Mon Sep 17 00:00:00 2001
From: patrick96
Date: Wed, 15 Jan 2020 16:31:42 +0100
Subject: [PATCH] backlight: Add enable-scroll
---
Module:-backlight.md | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/Module:-backlight.md b/Module:-backlight.md
index 15850c3..a2a1062 100644
--- a/Module:-backlight.md
+++ b/Module:-backlight.md
@@ -12,6 +12,18 @@ type = internal/backlight
; Use the following command to list available cards:
; $ ls -1 /sys/class/backlight/
card = intel_backlight
+
+; Enable changing the backlight with the scroll wheel
+; NOTE: This may require additional configuration on some systems. Polybar will
+; write to `/sys/class/backlight/${self.card}/brightness` which requires polybar
+; to have write access to that file.
+; DO NOT RUN POLYBAR AS ROOT.
+; The recommended way is to add the user to the
+; `video` group and give that group write-privileges for the `brightness` file.
+; See the ArchWiki for more information:
+; https://wiki.archlinux.org/index.php/Backlight#ACPI
+; Default: false
+enable-scroll = true
~~~
### Additional formatting