Commit graph

39 commits

Author SHA1 Message Date
Delgan
b3313cefc6 Fix remaining typos in the codebase (and update CI checks) 2024-05-02 16:28:51 +00:00
betazoid
00234696fe
Add examples/river-minimal.yml 2024-04-30 08:57:36 +02:00
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
Yiyu Zhou
9d90848291 style: remove trailing spaces 2024-01-13 00:24:58 -05: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
Leonardo Gibrowski Faé
084a9021b9
fix configurations in example scripts
We forgot to update the configurations in the example scripts to the new
map syntax based on conditions. This fixes that.

Related to #201
2022-07-22 10:11:25 +02: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
Daniel Eklöf
5fc092a874
examples: dwl-tags: adapt parsing of output to recent DWL changes(?)
Closes #178
2022-04-24 22:10:49 +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
novakne
21a84aed72
exemples/script: Update dwl-tags
Update dwl-tags to works with dwl main branch
now that the pull request was merged
2021-03-28 12:55:02 +02:00
Daniel Eklöf
0edfd8e22c
Merge branch 'dwltags-script' 2021-02-25 20:57:14 +01:00
novakne
d69ca5a0c9
exemples/scripts: dwl-tags.sh: fix exemple length
rename yambar tags
2021-02-25 08:26:10 +01:00
novakne
db34254677
exemples/scripts: dwl-tags.sh: use yambar capacities 2021-02-24 19:57:01 +01:00
novakne
075ddf3f50
exemples/scripts: pacman.sh: display tags early 2021-02-23 13:44:39 +01:00
novakne
0f1c3548ae
exemples/scripts: pacman.sh: handle no update in yambar config
change type to int
2021-02-23 12:00:56 +01:00
novakne
c4f58e8673
exemples/scripts: pacman.sh: display number of pacman/aur updates available 2021-02-22 11:18:55 +01:00
novakne
db6e868011
exemples/scripts: dwl-tags.sh: display info about dwl tags 2021-02-22 11:04:02 +01:00
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
9718c6f31e
examples: scripts: cpu: fix idle and total calculation
* include iowait in idle
* guest/guestnice is accounted in user/nice, so need to subtract them
  to not count them twice
2020-11-25 20:41:44 +01:00
Daniel Eklöf
b1ee1ba403
examples: script: cpu.sh add missing “‘” 2020-11-25 20:41:26 +01:00
Daniel Eklöf
d5a92cbf5f
examples: script: cpu.sh - measures CPU usage at a configurable interval 2020-11-25 20:41:26 +01:00
Daniel Eklöf
05aa44f1ab
examples: move laptop.conf -> configurations/laptop.conf 2020-11-25 20:41:10 +01:00
Daniel Eklöf
b49fb08b70
examples: my current laptop configuration 2020-01-23 17:52:31 +01:00