Commit graph

16 commits

Author SHA1 Message Date
Daniel Eklöf
6c10eb2153
module/alsa: use channel’s dB range instead of raw volume, if available
For channels that have a defined dB range, use that instead of the raw
volume range when calculating the volume percent.

Also use the same logic as alsamixer when calculating the percent from
the dB values: assume a linear scale if the dB range is “small
enough”, and otherwise normalize it against a logarithmic scale.

With this, yambar’s “percent” value matches alsamixer’s exactly.

The ‘volume’ tag remains unchanged - it always reflects the raw volume
values.

Instead, we add a new tag ‘dB’, that reflects the dB values.

Closes #202
2022-06-21 19:49:06 +02:00
hiog
cb47c53de4 Update 'examples/configurations/laptop.conf' 2022-06-16 11:29:04 +02:00
Johannes
03e1c7dc13 module/network: Add link stats
Exports two new tags from network module, `ul-speed` and `dl-speed`.
Because these work through polling, poll-interval must be set.
Otherwise, these two tags always will be 0.
2022-06-06 15:11:24 +02:00
Leonardo Gibrowski Faé
4c4a20d835 Updated docs to comply with new map syntax 2022-04-23 17:13:24 -03:00
Daniel Eklöf
c1e549df54
examples: config: remove duplicate volume icons 2022-04-16 11:59:10 +02:00
Soc Virnyl S. Estela
7945a561d0
Add river-tags example 2022-01-17 10:01:55 +08:00
Daniel Eklöf
8324112504
example: battery: map ‘unknown’ to ‘discharging’
Related to #123
2021-10-30 18:45:43 +02:00
Daniel Eklöf
66ec7a85a1
example: conf: foreign-toplevel: merge ‘: ’ and ‘{title}’ 2021-10-24 18:34:43 +02:00
Daniel Eklöf
7d715d81a8
example: conf: use foreign-toplevel instead of i3’s ‘current’ 2021-10-24 17:24:15 +02:00
mz
2b670ea612 remove an extra space
Remove the extra space due to `did not find expected key while parsing a block mapping` issue
2021-10-19 10:11:46 +02:00
Daniel Eklöf
066427d77a
examples: add ssid to wifi-network module 2021-09-01 19:10:22 +02:00
Daniel Eklöf
0963afd282
example/conf: alsa: use the new ‘online’ tag 2021-08-24 16:57:22 +02:00
mzeinali
e2f3df87a3 add changes in response to PR #58 comments 2021-06-14 22:42:22 +04:30
Daniel Eklöf
87b6b98695
examples: laptop: add margin around i3 mode 2021-01-02 14:49:13 +01:00
Daniel Eklöf
86cc3f0918
examples: laptop: add i3-mode
Closes #27
2021-01-02 13:09:12 +01:00
Daniel Eklöf
05aa44f1ab
examples: move laptop.conf -> configurations/laptop.conf 2020-11-25 20:41:10 +01:00