Commit graph

10 commits

Author SHA1 Message Date
Stanislav Ochotnický
04d47cba3c Add initial pulseaudio module support
This seems to work quite well including hotplugging of devices, changes to
default sinks/sources etc.

So far I only provided percentage values for sink/source since they seem most
useful. Defaults are set to DEFAULT_SINK/DEFAULT_SOURCE which means it will
follow whatever defaults are at the moment (instead of being fixed to a given
device).

One thing currently left unhandled is when pulseaudio/pipewire gets
disconnected/restarted. In such a case we mark the sink/source as offline but
there is no reconnect attempted later.

Added man page + more complex example which includes mixed usage of both input
and output.
2021-10-10 20:29:58 +02:00
Daniel Eklöf
2173e0dc4d
doc: add man page for the new foreign-toplevel module 2021-08-25 18:46:19 +02:00
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
c4f9168191
meson: fix version generation from git
run_command() was only run at configure time, meaning the generated
version (that was passed on to the sources via -DYAMBAR_VERSION)
became stale.

Fix by implementing a shell script that generates a header file, and
wrap this in a custom target that is run every time (but the generated
file is only updated when the version changes)
2019-10-19 21:47:21 +02:00
Daniel Eklöf
9dbbc480e4
Rename project: f00bar -> yambar 2019-09-28 20:39:45 +02:00
Daniel Eklöf
6753ee3dad meson: set project version
Export project version with -DF00BAR_VERSION.

This is by default set to the meson project version.

However, if git is found, and we manage to run 'git describe' and 'git
branch' in the source directory, version is set to the output of that
instead.
2019-05-07 20:23:51 +02:00
Daniel Eklöf
64171b412a meson: doc: set 'capture: true' instead of redirecting stdout 2019-05-03 23:07:37 +02:00
Daniel Eklöf
6a10ddbc39 meson: don't compress man pages
This is up to the distribution/packager.

For example, arch automatically compresses man pages.
2019-05-03 22:58:22 +02:00
Daniel Eklöf
095766ca12 meson: generate man pages 2019-05-03 22:37:47 +02:00