Skip to content

bobrofon/papersistd

Repository files navigation

Pulseaudio Persistent default sink Daemon

papersistd is a demo project of system daemon that wait for audio sink with specific name and make it PulseAudio default sink.

How-to

Configure

$ conan install . -if build # Optional. Skip if system dependencies are used.
$ export PKG_CONFIG_PATH="$PWD/build" # Optional. Skip if system dependencies are used.
$ cmake -S . -B build -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="$HOME/.local/bin"

Build

$ cmake --build build

Install

$ cmake --build --target install

Also it is required to set environment variables:

$ echo "PULSE_SERVER=unix:/run/user/1000/pulse/native" >> ~/.config/environment.d/papersistd.conf # Optional.
$ echo "PULSE_DEFAULT_SINK=alsa_output.some-name.analog-stereo" >> ~/.config/environment.d/papersistd.conf

and start the daemon:

$ systemctl --user start papersistd

Dependencies

Build dependencies

  • Conan package manager (Optional)
  • CMake build tool
  • pkg-config
  • C++ toolchain with C++17 support (other version is not tested)
  • libpulse - The asynchronous PulseAudio API library and headers.

Runtime dependencies

About

Pulseaudio Persistent default sink Daemon

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published