aboutsummaryrefslogtreecommitdiffstats
path: root/.config/polybar/modules.ini
diff options
context:
space:
mode:
Diffstat (limited to '.config/polybar/modules.ini')
-rw-r--r--.config/polybar/modules.ini27
1 files changed, 26 insertions, 1 deletions
diff --git a/.config/polybar/modules.ini b/.config/polybar/modules.ini
index e88a788..2b6bb2a 100644
--- a/.config/polybar/modules.ini
+++ b/.config/polybar/modules.ini
@@ -12,8 +12,9 @@ label = %time%
[module/xwindow]
type = internal/xwindow
-label = " %title:0:50:...%"
+label = " %title:0:75:...%"
label-foreground = ${colors.xwindow-fg}
+label-background = ${colors.xwindow-bg}
[module/storage-root]
type = internal/fs
@@ -176,3 +177,27 @@ label-urgent = %name%
label-urgent-foreground = ${colors.ws-urgent-fg}
label-urgent-background = ${colors.ws-urgent-bg}
label-urgent-padding = 3
+
+[module/backlight]
+type = internal/backlight
+
+card = amdgpu_bl2
+use-actual-brightness = true
+poll-interval = 0
+
+label = " %{T3}󰳲 %{T-}%percentage%% "
+format-foreground = ${colors.backlight-fg}
+format-background = ${colors.backlight-bg}
+
+; 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
+scroll-interval = 1