Commit graph

1072 commits

Author SHA1 Message Date
novakne
db15c63c90
doc: rename -swayxkb to -sway-xkb
add a yambar-modules-sway pages
2021-02-23 13:24:19 +01:00
novakne
faa5f7f9f1 doc: split up yambar-modules
Closes #15
2021-02-23 11:17:10 +01:00
Daniel Eklöf
153d7a2ffa
doc: yambar-modules: script: stress the importance of an empty line after a transaction
Closes #34
2021-02-21 20:27:29 +01:00
Daniel Eklöf
cc6be3a923
Merge branch 'yaml-error-on-non-dictionary-anchor'
Closes #32
2021-02-12 08:49:14 +01:00
Daniel Eklöf
98a4789e26
yml: don’t crash when (trying to) merge anchors that aren’t dictionaries
Up until now, we only asserted the value being merged in was a
dictionary.

Now we do a proper check and return a real error message instead.

Closes #32
2021-02-11 19:02:14 +01:00
Daniel Eklöf
264c051232
module/script: fix typo in memcmp()
Patch by Jan Beich
2021-02-10 16:15:49 +01:00
Daniel Eklöf
0bc0012c06
changelog: add a new ‘unreleased’ section 2021-01-14 11:20:02 +01:00
Daniel Eklöf
40a9e68b1e
Merge branch 'releases/1.6' 2021-01-14 11:18:47 +01:00
Daniel Eklöf
2563a233d7
meson/PKGBUILD: bump to 1.6.1 2021-01-14 11:13:16 +01:00
Daniel Eklöf
686e57176e
changelog: prepare for 1.6.1 2021-01-14 11:12:56 +01:00
Daniel Eklöf
90339a00a5
changelog: battery stats no longer getting stuck 2021-01-14 11:11:37 +01:00
Daniel Eklöf
524f93c997
module/battery: re-open /sys/class/power_supply/<battery>/ every update 2021-01-14 11:11:35 +01:00
Daniel Eklöf
8f3de369ac
module/battery: re-open files on every update
Closes #25
2021-01-14 11:11:33 +01:00
Daniel Eklöf
972395bf2e
changelog: i3: numerically names workspaces are sorted separately 2021-01-14 11:11:30 +01:00
Daniel Eklöf
72660b3c01
changelog: mention fix for wrong background colors when not fully opaque 2021-01-14 11:11:27 +01:00
Daniel Eklöf
2f66ac75ba
changelog: mention fix for mpd tags 2021-01-14 11:11:22 +01:00
Daniel Eklöf
ae403c842c
Merge branch 'battery-reopen-files'
Closes #25
2021-01-14 11:10:17 +01:00
Daniel Eklöf
d684dc0463
changelog: battery stats no longer getting stuck 2021-01-14 11:09:50 +01:00
Daniel Eklöf
4f70346601
module/battery: re-open /sys/class/power_supply/<battery>/ every update 2021-01-14 11:08:57 +01:00
Daniel Eklöf
cfeb5260dd
module/battery: re-open files on every update
Closes #25
2021-01-14 11:08:57 +01:00
Daniel Eklöf
6cbf093af9
module/i3: separate numerical workspace names from non-numerical
When sorting workspaces in ascending order, put numerical
workspaces *after* non-numerical ones.

When sorting in descending order, put numerical workspaces *before*
non-numerical.

In both cases, sort numerical workspaces using a numerical comparison,
rather that doing a lexicographical sorting.

Closes #30
2021-01-14 11:08:14 +01:00
Daniel Eklöf
f88f7a5046
module/mpd: increase tag count in tag set
96d2d057e0
added a new tag, ‘volume’, but didn’t bump the tag count.

This meant the last tag in the set, ‘elapsed’ was never seen by
anybody, and not free:d when the tag set was free:d.
2021-01-14 11:07:42 +01:00
Daniel Eklöf
47c42b507f
config: fix asan signed integer overflow warning 2021-01-14 11:07:26 +01:00
Daniel Eklöf
5b13b5315f
doc: codespell fixes 2021-01-14 11:07:22 +01:00
Daniel Eklöf
536f9d22ec
codespell: spelling fixes 2021-01-14 11:07:18 +01:00
Daniel Eklöf
492efdd10e
config: fix rounding error when calculating background color with alpha
We use pre-multiplied alpha color channels, but were having bad
rounding errors due to the alpha divider being truncated to an
integer.

The algorithm for pre-multiplying a color channel is:

  alpha_divider = 0xffff / alpha
  pre_mult_color = color / alpha_divider

In order to fix the rounding errors, we could turn ‘alpha_divider’
into a double.

That however would introduce a performance penalty since now we’d need
to do floating point math for each cell.

The algorithm can be trivially converted to:

  pre_mult_color = color * alpha / 0xffff

Since both color and alpa values are < 65536, the multiplication is
“safe”; it will not overflow an uint32_t.
2021-01-14 11:07:12 +01:00
Daniel Eklöf
8afa17fa87
changelog: add new ‘unreleased’ section 2021-01-14 11:07:06 +01:00
Daniel Eklöf
c14d5b3b9c
changelog: i3: numerically names workspaces are sorted separately 2021-01-14 11:06:33 +01:00
Daniel Eklöf
1e4a282fb5
changelog: mention fix for wrong background colors when not fully opaque 2021-01-14 11:04:13 +01:00
Daniel Eklöf
18e6f0e4bd
changelog: mention fix for mpd tags 2021-01-14 11:02:45 +01:00
Daniel Eklöf
891d9add5e
Merge branch 'i3-sort-custom-handling-of-numerical-workspaces'
Closes #30
2021-01-04 21:40:08 +01:00
Daniel Eklöf
7af5e56e4b
Merge branch 'add-i3-mode-to-example-conf'
Closes #27
2021-01-04 20:25:03 +01:00
Daniel Eklöf
5bfa104935
module/i3: separate numerical workspace names from non-numerical
When sorting workspaces in ascending order, put numerical
workspaces *after* non-numerical ones.

When sorting in descending order, put numerical workspaces *before*
non-numerical.

In both cases, sort numerical workspaces using a numerical comparison,
rather that doing a lexicographical sorting.

Closes #30
2021-01-04 20:16:30 +01:00
Daniel Eklöf
e85e3e8ced
module/mpd: increase tag count in tag set
96d2d057e0
added a new tag, ‘volume’, but didn’t bump the tag count.

This meant the last tag in the set, ‘elapsed’ was never seen by
anybody, and not free:d when the tag set was free:d.
2021-01-04 20:01:46 +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
3603ca982a
config: fix asan signed integer overflow warning 2021-01-02 12:53:24 +01:00
Daniel Eklöf
e2c2f48203
ci: run codespell on CHANGELOG.md 2020-12-26 13:08:42 +01:00
Daniel Eklöf
77ca2e8225
ci: run codespell on README.md 2020-12-26 13:04:40 +01:00
Daniel Eklöf
b679e8ce9a
doc: codespell fixes 2020-12-26 13:01:21 +01:00
Daniel Eklöf
761f2e0b21
ci: run codespell on the man pages 2020-12-26 13:00:00 +01:00
Daniel Eklöf
9cf00f8200
codespell: spelling fixes 2020-12-25 12:31:20 +01:00
Daniel Eklöf
3d8bdfadb4
ci: new: codespell 2020-12-25 12:30:40 +01:00
Daniel Eklöf
547423556c
ci: sr.ht: move to .builds/alpine-x64.yml 2020-12-25 12:25:05 +01:00
Daniel Eklöf
d3512f41d7
ci: sr.ht: bring up to date
* Source from codeberg, not git.sr.ht
* No need to manually install gcovr
2020-12-25 12:24:16 +01:00
Daniel Eklöf
3b4d822888
ci: gitlab: no need to clone subprojects - we use meson wrap files 2020-12-25 12:23:16 +01:00
Daniel Eklöf
2262a3d837
subprojects: use meson wrap files for tllist+fcft 2020-12-25 12:22:15 +01:00
Daniel Eklöf
9c03bd887f
readme: add repology packaging status badge 2020-12-22 10:58:45 +01:00
Daniel Eklöf
dee61e6239
config: fix rounding error when calculating background color with alpha
We use pre-multiplied alpha color channels, but were having bad
rounding errors due to the alpha divider being truncated to an
integer.

The algorithm for pre-multiplying a color channel is:

  alpha_divider = 0xffff / alpha
  pre_mult_color = color / alpha_divider

In order to fix the rounding errors, we could turn ‘alpha_divider’
into a double.

That however would introduce a performance penalty since now we’d need
to do floating point math for each cell.

The algorithm can be trivially converted to:

  pre_mult_color = color * alpha / 0xffff

Since both color and alpa values are < 65536, the multiplication is
“safe”; it will not overflow an uint32_t.
2020-12-20 12:48:06 +01:00
Daniel Eklöf
946678c7ef
changelog: add new ‘unreleased’ section 2020-12-19 12:25:18 +01:00