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
Daniel Eklöf
85680ad5a8
Merge branch 'releases/1.6'
2020-12-19 12:24:18 +01:00
Daniel Eklöf
105409b0e0
meson/pkgbuild: bump version to 1.6.0
2020-12-19 12:21:33 +01:00
Daniel Eklöf
e7f1d3e6b5
changelog: prepare for 1.6.0
2020-12-19 12:21:07 +01:00
Daniel Eklöf
e411553035
Merge branch 'i3-mode'
...
Closes #19
2020-12-12 22:42:27 +01:00
Daniel Eklöf
3da796810b
module/i3: take lock while updating ‘mode’
2020-12-12 22:42:19 +01:00
Daniel Eklöf
d9496152e3
module/i3: add new tag ‘mode’
...
This tag is a string: the name of the currently active mode
2020-12-12 22:42:17 +01:00
Daniel Eklöf
ab8cc7df47
Merge branch 'i3-sort-workspaces'
...
Closes #17
2020-12-12 22:41:34 +01:00
Daniel Eklöf
20df360937
module/i3: add option ‘sort’
...
Possible values: none, ascending, descending. Sorts the workspace list
accordingly. The default value is ‘none’.
2020-12-08 19:03:30 +01:00
Daniel Eklöf
45d9dbcb34
Merge branch 'xcb-fallback-to-non-primary-monitor'
...
Closes #20
2020-12-04 22:09:05 +01:00
Daniel Eklöf
8249b9c7ea
changelog: fallback to non-primary monitor
2020-12-04 22:08:05 +01:00
Daniel Eklöf
d0f1f762ea
bar/xcb: fallback to non-primary monitor
...
If the user did *not* configured a specific monitor, we prefer the
primary monitor. However, if that monitor is disconnected, yambar
would exit with:
no matching monitor
This patch changes this, to use the *last* connected monitor. It also
improves the error message.
Note: if the user did specify a monitor in the configuration, but
perhaps misspelled it, we will *not* fallback to another monitor, but
instead log an error saying that specific monitor could not be found.
2020-12-04 21:16:14 +01:00
Daniel Eklöf
d5fc1074d8
module/i3: revert to old behavior of not sorting workspaces
...
Sorting workspaces needs a config option.
2020-12-03 19:07:41 +01:00
Daniel Eklöf
678d82e4d4
module/i3: use a tllist for workspaces instead of a dynamic array
2020-12-03 18:31:42 +01:00
Daniel Eklöf
b9fda4482d
changelog: fold long lines
2020-12-02 21:47:16 +01:00
Daniel Eklöf
c9ef44a775
Merge branch 'mpd-volume'
2020-12-02 21:45:04 +01:00
optimus-prime
96d2d057e0
module/mpd: add volume tag
2020-12-03 00:43:47 +05:30
Daniel Eklöf
4dba602bfd
Merge branch 'custom-script'
...
Closes #11
2020-11-25 20:42:09 +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
4a9f550069
module/battery: don’t crash if we fail to read from ‘status’
2020-11-25 20:41:44 +01:00
Daniel Eklöf
f49652130d
config: don’t crash (div-by-zero) if the alpha component is 0
2020-11-25 20:41:41 +01:00
Daniel Eklöf
220e43526c
readme: fix link to configuration examples
2020-11-25 20:41:27 +01:00
Daniel Eklöf
9d37697c4f
readme: add script to list of modules, with link to example scripts
2020-11-25 20:41:27 +01:00
Daniel Eklöf
f735bc5bd9
readme: add link to configuration examples
2020-11-25 20:41:27 +01:00
Daniel Eklöf
ae983b63c2
readme: add river and sway-xkb to list of modules
2020-11-25 20:41:26 +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
58e53b80a9
changelog: new module: script
2020-11-25 20:41:24 +01:00
Daniel Eklöf
321d1cdc7d
particle/progress-bar: handle tag_for_name() failing
2020-11-25 20:41:10 +01:00
Daniel Eklöf
31c015c680
particle/ramp: handle tag_for_name() failing
2020-11-25 20:41:10 +01:00
Daniel Eklöf
05aa44f1ab
examples: move laptop.conf -> configurations/laptop.conf
2020-11-25 20:41:10 +01:00
Daniel Eklöf
f438ad9b44
module/script: send SIGINT, SIGTERM, SIGKILL, until child has died
2020-11-25 20:41:10 +01:00
Daniel Eklöf
2fe602a6a2
main: no need to block SIGCHLD anymore, we don’t use it
2020-11-25 20:41:10 +01:00