mirror of https://github.com/polybar/polybar.git
Compare commits
2 Commits
91bd85cf50
...
8e04f15ed6
Author | SHA1 | Date |
---|---|---|
Patrick Ziegler | 8e04f15ed6 | |
patrick96 | 0ed669f049 |
|
@ -9,6 +9,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
||||||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||||
|
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
|
### Fixed
|
||||||
|
- `internal/backlight`: Module could display the literal `%percentage%` token if the backlight reports a value of 0 at startup ([`#3081`](https://github.com/polybar/polybar/pull/3081)) by [@unclechu](https://github.com/unclechu)
|
||||||
|
|
||||||
## [3.7.1] - 2023-11-27
|
## [3.7.1] - 2023-11-27
|
||||||
### Build
|
### Build
|
||||||
|
|
|
@ -4,4 +4,4 @@
|
||||||
sphinx~=7.2.6
|
sphinx~=7.2.6
|
||||||
sphinx-rtd-theme~=2.0.0rc2
|
sphinx-rtd-theme~=2.0.0rc2
|
||||||
sphinx-notfound-page~=1.0.0
|
sphinx-notfound-page~=1.0.0
|
||||||
readthedocs-sphinx-search~=0.3.1
|
readthedocs-sphinx-search~=0.3.2
|
||||||
|
|
|
@ -67,7 +67,12 @@ namespace modules {
|
||||||
brightness_handle m_val;
|
brightness_handle m_val;
|
||||||
brightness_handle m_max;
|
brightness_handle m_max;
|
||||||
|
|
||||||
int m_percentage = 0;
|
/**
|
||||||
|
* Initial value set to a negative number so that any value read from the backlight file triggers an update during
|
||||||
|
* the first read.
|
||||||
|
* Otherwise, tokens may not be replaced
|
||||||
|
*/
|
||||||
|
int m_percentage = -1;
|
||||||
|
|
||||||
chrono::duration<double> m_interval{};
|
chrono::duration<double> m_interval{};
|
||||||
chrono::steady_clock::time_point m_lastpoll;
|
chrono::steady_clock::time_point m_lastpoll;
|
||||||
|
|
Loading…
Reference in New Issue