1
0
Fork 0
mirror of https://github.com/polybar/polybar.git synced 2024-11-11 13:50:56 -05:00
polybar/include/modules
patrick96 aebdb5328a fix(backlight): Poll if necessary
The `backlight` file seems to not receive modification events for
inotify (it does receive other events though).
These other events still trigger an update, but the value read is still
the old value because the events arrive just slightly before the file is
updated.

The new `poll-interval` setting will inject an event every X seconds to
force an update.
If the actual_brightness file is used, the interval is set to 0 and thus
turned off.

This does not add any more wakeups to the module, the inotify modules
wake up every second anyway and during that time, the interval is
checked.

Fixes #2835
2023-10-21 20:32:11 +02:00
..
meta Cleanup base::tags (#2991) 2023-07-06 09:46:33 +02:00
alsa.hpp Remove unsupported.hpp (#2956) 2023-05-08 19:36:12 +02:00
backlight.hpp fix(backlight): Poll if necessary 2023-10-21 20:32:11 +02: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 Remove unsupported.hpp (#2956) 2023-05-08 19:36:12 +02: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 Remove unsupported.hpp (#2956) 2023-05-08 19:36:12 +02:00