add changes in response to PR #58 comments

This commit is contained in:
mzeinali 2021-06-14 22:42:22 +04:30
parent 35e6943531
commit e2f3df87a3
3 changed files with 20 additions and 1 deletions

View file

@ -23,6 +23,9 @@
* battery: dont terminate (causing last status to “freeze”) when * battery: dont terminate (causing last status to “freeze”) when
failing to update; retry again later failing to update; retry again later
(https://codeberg.org/dnkl/yambar/issues/44). (https://codeberg.org/dnkl/yambar/issues/44).
* battery: differentiate "Not Charging" and "Discharging" in state
tag of battery module.
(https://codeberg.org/dnkl/yambar/issues/57).
### Deprecated ### Deprecated
@ -41,6 +44,7 @@
### Contributors ### Contributors
* [novakane](https://codeberg.org/novakane) * [novakane](https://codeberg.org/novakane)
* [mz](https://codeberg.org/mz)
## 1.6.1 ## 1.6.1

View file

@ -24,7 +24,7 @@ uses *udev* to monitor for changes.
: Battery model name : Battery model name
| state | state
: string : string
: One of *full*, *charging*, *discharging* or *unknown* : One of *full*, *not charging*, *charging*, *discharging* or *unknown*
| capacity | capacity
: range : range
: capacity left, in percent : capacity left, in percent

View file

@ -271,6 +271,21 @@ bar:
full: full:
- string: {text: , foreground: 00ff00ff, font: *awesome} - string: {text: , foreground: 00ff00ff, font: *awesome}
- string: {text: "{capacity}% full"} - string: {text: "{capacity}% full"}
not charging:
- ramp:
tag: capacity
items:
- string: {text:  , foreground: ff0000ff, font: *awesome}
- string: {text:  , foreground: ffa600ff, font: *awesome}
- string: {text:  , foreground: 00ff00ff, font: *awesome}
- string: {text:  , foreground: 00ff00ff, font: *awesome}
- string: {text:  , foreground: 00ff00ff, font: *awesome}
- string: {text:  , foreground: 00ff00ff, font: *awesome}
- string: {text:  , foreground: 00ff00ff, font: *awesome}
- string: {text:  , foreground: 00ff00ff, font: *awesome}
- string: {text:  , foreground: 00ff00ff, font: *awesome}
- string: {text:  , foreground: 00ff00ff, font: *awesome}
- string: {text: "{capacity}%"}
- clock: - clock:
time-format: "%H:%M %Z" time-format: "%H:%M %Z"
content: content: