Commit graph

1557 commits

Author SHA1 Message Date
Daniel Eklöf
1353d635c2
meson/pkgbuild: bump version to 1.9.0 2022-12-17 10:29:11 +01:00
Daniel Eklöf
ef7b4ce9b3
changelog: prepare for 1.9.0 2022-12-17 10:28:41 +01:00
Daniel Eklöf
06bf127332
doc: expand last column to fill screen in all tables 2022-12-14 12:18:47 +01:00
Daniel Eklöf
b195bc4dcb
module/cpu: make ‘content’ particle a template
Before this patch, the cpu module instantiated a single particle (the
‘content’ particle), with one tag ("cpu") representing the total CPU
usage, and then one tag (cpuN) for each core.

This makes it cumbersome to configure, since you need to explicitly
reference each cpuN tag to get per-core usage.

This patch rewrites this, so that ‘content’ is now a template. It’s
instantiated once to represent the total CPU usage, and then once for
each core.

Each instance has a "cpu" tag, representing the CPU usage of that
core (or total usage). It also has an "id" tag. The ID is 0..n for
actual cores, and -1 for total usage.

This means you can do something like this in your config:

- cpu:
    content:
      map:
        conditions:
          id < 0: {string: {text: "Total: {cpu}%"}}
          id >= 0: {string: {text: "Core #{id}: {cpu}%"}}

Closes #207
2022-12-14 12:06:00 +01:00
Daniel Eklöf
2e0e1a402f
bar: also log module name when logging a failed module 2022-12-14 12:05:34 +01:00
Daniel Eklöf
3ca274759a
module: const:ify ‘module’ argument to module->description() 2022-12-14 12:05:17 +01:00
Daniel Eklöf
6794193791
Merge branch 'plugin-compile-time-optional' 2022-12-14 11:03:16 +01:00
Daniel Eklöf
95b1f5f261
modules: meson: regression: it’s ‘libudev’, not ‘udev’ 2022-12-14 11:01:05 +01:00
Daniel Eklöf
b22614ecc3
ci (woodpecker): add pipewire-dev to x86 builds
Before this, it was only added in the x64 builds
2022-12-14 10:54:26 +01:00
Daniel Eklöf
c4cc1b7a36
changelog: all modules are now compile-time optional 2022-12-14 10:30:20 +01:00
Daniel Eklöf
a53e48a2c1
doc: meson: only install man pages for modules we actually build 2022-12-14 10:29:08 +01:00
Daniel Eklöf
a5e79d14b7
pkgbuild: add pipewire dependency 2022-12-14 10:18:18 +01:00
Daniel Eklöf
690bd630a2
plugin: use auto-generated defines for enabled plugins 2022-12-14 10:16:54 +01:00
Daniel Eklöf
9ef6d73663
meson: make ‘foreign-toplevel’ plugin compile time optional 2022-12-14 10:08:48 +01:00
Daniel Eklöf
56b0047004
meson: make ‘river’ plugin compile time optional 2022-12-14 10:05:23 +01:00
Daniel Eklöf
1a81255579
meson: make ‘xwindow’ plugin compile time optional 2022-12-14 10:02:13 +01:00
Daniel Eklöf
a14d38b0cb
meson: make ‘xkb’ plugin compile time optional 2022-12-14 09:58:45 +01:00
Daniel Eklöf
b6450446a8
meson: make ‘sway-xkb’ plugin compile time optional 2022-12-14 09:53:24 +01:00
Daniel Eklöf
0cf0d64970
meson: pipewire-specific ‘json’ dependency 2022-12-14 09:50:22 +01:00
Daniel Eklöf
ec9ed66b6b
meson: make ‘script’ plugin compile time optional 2022-12-14 09:48:50 +01:00
Daniel Eklöf
eb26f64ea7
meson: make ‘removables’ plugin compile time optional 2022-12-14 09:46:08 +01:00
Daniel Eklöf
b901ac50ee
meson: make ‘network’ plugin compile time optional 2022-12-14 09:43:14 +01:00
Daniel Eklöf
8d5e8b5f20
meson: make ‘label’ plugin compile time optional 2022-12-14 09:41:44 +01:00
Daniel Eklöf
f54f583be1
meson: make ‘i3’ plugin compile time optional 2022-12-14 09:39:47 +01:00
Daniel Eklöf
85d55905f9
meson: make ‘mem’ plugin compile time optional 2022-12-14 09:36:48 +01:00
Daniel Eklöf
659b282445
meson: make ‘disk-io’ plugin compile time optional 2022-12-14 09:36:45 +01:00
Daniel Eklöf
b23365ccac
meson: make ‘cpu’ plugin compile time optional 2022-12-14 09:32:04 +01:00
Daniel Eklöf
25e123fbe6
meson: make ‘clock’ plugin compile time optional 2022-12-14 09:32:04 +01:00
Daniel Eklöf
aeef3eca0e
meson: make ‘battery’ plugin compile time optional 2022-12-14 09:32:04 +01:00
Daniel Eklöf
881359183f
meson: make ‘backlight’ plugin compile time optional 2022-12-13 16:47:48 +01:00
Daniel Eklöf
4c1398f1a5
meson: make ‘alsa’ plugin compile time optional 2022-12-13 16:41:50 +01:00
Daniel Eklöf
f8f0d7ae99
meson_options: sort plugin options 2022-12-13 16:36:55 +01:00
Daniel Eklöf
49576a26bf
readme: add ‘dwl’ to list of plugins 2022-12-13 16:33:56 +01:00
Daniel Eklöf
9b93b0794a
Merge branch 'i3-workspace-rename'
Closes #216
2022-12-13 16:27:40 +01:00
Daniel Eklöf
266a2efbb6
changelog: sway: workspace ‘move’ and ‘rename’ events 2022-12-13 16:25:55 +01:00
Timur Celik
24a3b90a01
modules: Implement workspace move event
Implementing the move event required to pass the IPC socket to
`i3_ipc_callback_t`, because we won't get notified about any visibility
changes of other workspaces.  That's why we query all workspaces again
after a focused workspace was moved.
2022-12-13 16:21:55 +01:00
Timur Celik
8f89545b32
modules: Warn for all unknown workspace events 2022-12-13 16:19:11 +01:00
Timur Celik
bbd2394601
modules: Implement workspace rename event
A renamed workspace caused yambar to abort in a failed assertion,
because workspace lookup was done by name and the `rename` event was not
implemented.  To resolve this issue this patch implements the `rename`
event and as a necessity changes workspace_lookup() to use ids instead
of names.
2022-12-13 16:16:16 +01:00
Daniel Eklöf
6fa9c47c0b
meson: summary: dwl: Wayland with upper case ‘W’ 2022-12-13 16:00:07 +01:00
Daniel Eklöf
7ddd009a5c
meson: sort plugin list in summary output 2022-12-13 15:59:40 +01:00
Daniel Eklöf
4631e75e28
meson: require version >= 0.59
Required by feature_option.allowed()
2022-12-13 15:58:59 +01:00
Ogromny
f5cfc103d0
modules/dwl: new module 2022-12-13 15:56:16 +01:00
Daniel Eklöf
6027b2728b
ci (sr.ht): it’s pulseaudio-dev, not libpulse-dev 2022-12-13 10:47:07 +01:00
Daniel Eklöf
bd607d7697
ci: install pipewire-dev; should ensure we build the pipewire plugin 2022-12-13 10:45:08 +01:00
Daniel Eklöf
302e0d5cc6
ci (sr.ht): install ‘dev’ version of “libpulse” 2022-12-13 10:42:53 +01:00
Ogromny
19a9f099e2 modules/pipewire: new module 2022-12-13 10:16:58 +01:00
Willem van de Krol
dcf21f0b06 modules: add pulse
The pulse module shows information about PulseAudio sinks and sources.
2022-12-12 18:51:28 +01:00
Daniel Eklöf
54c70bb6ad
readme: add missing modules to list of modules 2022-12-12 16:53:10 +01:00
Daniel Eklöf
f9fa43845e
changelog: ‘map’ changes: add ref to 182 2022-12-11 18:44:24 +01:00
Daniel Eklöf
ec86a7d290
ci (sr.ht): add flex+bison 2022-12-11 18:33:07 +01:00