mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-08-08 12:15:23 +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 DPI=$(xrdb -query | sed -nE 's/^Xft\.dpi:\s*//p')
|
||||||
export HEIGHT=$((20 * DPI / 96))
|
export HEIGHT=$((20 * DPI / 96))
|
||||||
|
export BACKLIGHT=$(cd /sys/class/backlight ; ls | head -1)
|
||||||
|
|
||||||
polybar --version
|
polybar --version
|
||||||
|
|
||||||
|
|
|
@ -82,7 +82,7 @@ include-file = $XDG_RUNTIME_DIR/i3/polybar-filesystems.conf
|
||||||
|
|
||||||
[module/brightness]
|
[module/brightness]
|
||||||
type = internal/backlight
|
type = internal/backlight
|
||||||
card = intel_backlight
|
card = ${env:BACKLIGHT:intel_backlight}
|
||||||
format = <ramp> <label>
|
format = <ramp> <label>
|
||||||
label = %percentage: 2%%
|
label = %percentage: 2%%
|
||||||
ramp-0 =
|
ramp-0 =
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue