Commit graph

21 commits

Author SHA1 Message Date
Daniel Eklöf
13f46a314a
examples: conf: laptop: repair network modules
Closes #374
2024-04-11 15:47:50 +02:00
Sertonix
c44c66c83f
network: use dynlist instead of fixed name
Closes #271
Closes #265
Closes #71
2024-04-01 08:34:18 +02:00
Daniel Eklöf
500b051fe4
module/network: poll-interval: convert value from ‘seconds’ to ‘milliseconds’ 2022-12-22 12:06:15 +01:00
Daniel Eklöf
8fbbce10a5
module/battery: poll-interval: convert value from ‘seconds’ to ‘milliseconds’ 2022-12-22 11:59:02 +01:00
Stanislav Ochotnický
c0e0702a6c Update Font Awesome 5 to 6
This makes it less likely that new users will get confused and
accidentally use fallback fonts.
2022-12-21 17:06:25 +01:00
Leonardo Gibrowski Faé
4a41d4296a
Implement '&&' and '||' operators on map
'-' is a valid character for tags.

Commit 03e1c7d (module/network: Add link stats, 2022-04-30) introduced
two new tags for the network module: `ul-speed` and `dl-speed`. These
use the `-` character, that was previously never used in any tag.

We had two options: either change those tags to use `_` instead, or just
accept `-`s as a valid character. Going forward, I can see many people
deciding to name their tags with `-` instead of `_`, so I believe it is
better to just accept it once and for all.

Note that `-` cannot be used as the first character of a tag (e.g.
`-tag1`) since the `-` has a special meaning in `.yml` files. I don't
believe this will happen often, however, and should be easy to both
detect and correct if it does.
2022-12-10 22:53:30 -03:00
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
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
Renamed from examples/laptop.conf (Browse further)