From c829dac7f42c381ae38e33283b4bb12515c26928 Mon Sep 17 00:00:00 2001 From: Vidhu Kant Sharma Date: Wed, 3 Sep 2025 16:01:49 +0530 Subject: added brightness and xwindow module --- .config/polybar/modules.ini | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) (limited to '.config/polybar/modules.ini') 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 -- cgit v1.2.3