mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-08-01 08:44:25 +02:00
polybar: detect brightness module to use
This commit is contained in:
parent
7f40044fd0
commit
fed3082710
2 changed files with 2 additions and 1 deletions
|
@ -2,6 +2,7 @@
|
|||
|
||||
export DPI=$(xrdb -query | sed -nE 's/^Xft\.dpi:\s*//p')
|
||||
export HEIGHT=$((20 * DPI / 96))
|
||||
export BACKLIGHT=$(cd /sys/class/backlight ; ls | head -1)
|
||||
|
||||
polybar --version
|
||||
|
||||
|
|
|
@ -82,7 +82,7 @@ include-file = $XDG_RUNTIME_DIR/i3/polybar-filesystems.conf
|
|||
|
||||
[module/brightness]
|
||||
type = internal/backlight
|
||||
card = intel_backlight
|
||||
card = ${env:BACKLIGHT:intel_backlight}
|
||||
format = <ramp> <label>
|
||||
label = %percentage: 2%%
|
||||
ramp-0 =
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue