polybar-dwm/include/modules
Patrick Ziegler 8e04f15ed6
fix(backlight): %backlight% token appearing on the bar (#3081)
* Fix backlight initial value matching the actual brightness level

The initial value is `0`. If the actual brightness is also `0` you see
`%percentage%` token as text, it’s not being replaced. Since
`m_brightness` is an `int` the initial value could be just `-1` since
the actual brightness is never goes below zero. Thus this bug will never
show up again because actual brightness on first render won’t match
the “old” `m_brightness` value.

See also for more detailed explanation of the bug:
https://github.com/polybar/polybar/discussions/3079#discussioncomment-8169932

* Add docs

---------

Co-authored-by: Viacheslav Lotsmanov <lotsmanov89@gmail.com>
2024-01-20 18:09:12 +01:00
..
meta fix(tray): Allow module to disappear for empty tray 2023-11-11 04:01:26 +01:00
alsa.hpp Remove unsupported.hpp (#2956) 2023-05-08 19:36:12 +02:00
backlight.hpp fix(backlight): %backlight% token appearing on the bar (#3081) 2024-01-20 18:09:12 +01:00
battery.hpp Remove unsupported.hpp (#2956) 2023-05-08 19:36:12 +02:00
bspwm.hpp Remove unsupported.hpp (#2956) 2023-05-08 19:36:12 +02:00
counter.hpp Remove unsupported.hpp (#2956) 2023-05-08 19:36:12 +02:00
cpu.hpp Remove unsupported.hpp (#2956) 2023-05-08 19:36:12 +02:00
date.hpp Remove unsupported.hpp (#2956) 2023-05-08 19:36:12 +02:00
fs.hpp Remove unsupported.hpp (#2956) 2023-05-08 19:36:12 +02:00
github.hpp Remove unsupported.hpp (#2956) 2023-05-08 19:36:12 +02:00
i3.hpp Remove unsupported.hpp (#2956) 2023-05-08 19:36:12 +02:00
ipc.hpp Remove unsupported.hpp (#2956) 2023-05-08 19:36:12 +02:00
memory.hpp Remove unsupported.hpp (#2956) 2023-05-08 19:36:12 +02:00
menu.hpp Remove unsupported.hpp (#2956) 2023-05-08 19:36:12 +02:00
mpd.hpp Remove unsupported.hpp (#2956) 2023-05-08 19:36:12 +02:00
network.hpp Remove unsupported.hpp (#2956) 2023-05-08 19:36:12 +02:00
pulseaudio.hpp Remove unsupported.hpp (#2956) 2023-05-08 19:36:12 +02:00
script.hpp Remove unsupported.hpp (#2956) 2023-05-08 19:36:12 +02:00
temperature.hpp Remove unsupported.hpp (#2956) 2023-05-08 19:36:12 +02:00
text.hpp Remove unsupported.hpp (#2956) 2023-05-08 19:36:12 +02:00
tray.hpp fix(tray): Allow module to disappear for empty tray 2023-11-11 04:01:26 +01:00
xbacklight.hpp Remove unsupported.hpp (#2956) 2023-05-08 19:36:12 +02:00
xkeyboard.hpp Remove unsupported.hpp (#2956) 2023-05-08 19:36:12 +02:00
xwindow.hpp Remove unsupported.hpp (#2956) 2023-05-08 19:36:12 +02:00
xworkspaces.hpp feat(xworkspaces): Add group-by-monitor flag 2023-10-29 16:15:10 +01:00