Go to file
2022-07-26 20:00:57 +02:00
.gitignore Initial commit 2022-06-04 21:51:45 +02:00
LICENSE Initial commit 2022-06-04 21:51:45 +02:00
pipewire-access.el Take pipewire-cli out of pipewire-access.el 2022-07-16 21:03:29 +02:00
pipewire-cli.el Take pipewire-cli out of pipewire-access.el 2022-07-16 21:03:29 +02:00
pipewire-lib.el Take pipewire-cli out of pipewire-access.el 2022-07-16 21:03:29 +02:00
pipewire.el Use user-error rather than ‘error’ in interactive functions 2022-07-25 20:58:07 +02:00
README.org README: Add info about MELPA 2022-07-26 20:00:57 +02:00
screenshot.jpg Screenshot updated 2022-06-18 10:33:00 +02:00


pipewire-0 is an Emacs interface to PipeWire. It provides a library to access some PipeWire functionality and a simple user interface to handle audio devices. It allows displaying PipeWire devices and clients, changing volumes and muting and unmuting of PipeWire sinks and sources and setting default sinks and sources.

pipewire-0 currently relies on the output of the PipeWire command line tools. It works for me but it may not work in other environments. Feel free to use it, fix it, fork it. Contact me if you want to discuss anything.



pipewire-0 currently requires presence of PipeWire command line tools, namely pw-cli and pw-metadata.

You can install pipewire-0 from MELPA. If you use straight.el and prefer using source repos directly, you can install pipewire-0 as follows:

'(pipewire-0 :type git
           :repo "https://git.zamazal.org/pdm/pipewire-0"
           :local-repo "pipewire-0"))

To install pipewire-0 manually, put the *.el files to a site-lisp directory and add the following line to your Emacs configuration:

(require pipewire)

User interface

M-x pipewire enters a buffer with PipeWire objects:

Emacs PipeWire buffer

Use C-h m to display basic help.

Most of the interactive functions can be used anywhere:

  • pipewire-increase-volume
  • pipewire-decrase-volume
  • pipewire-set-volume
  • pipewire-toggle-muted
  • pipewire-toggle-microphone
  • pipewire-set-default

They can be bound to multimedia keys:

(global-set-key (kbd "<XF86AudioMute>") 'pipewire-toggle-muted)
(global-set-key (kbd "<XF86AudioLowerVolume>") 'pipewire-decrease-volume)
(global-set-key (kbd "<XF86AudioRaiseVolume>") 'pipewire-increase-volume)


M-x customize-group RET pipewire RET


pipewire-0 consists of the following source files:

PipeWire library to be used in Elisp programs.
PipeWire communication interface, not supposed to be used outside pipewire-lib.
User commands and interface.

Look into pipewire-lib.el to see what public pipewire-lib-* functions are available there. For example, the following snippet can be used to display current volume level of the default audio sink:

(let ((object (pipewire-lib-default-audio-sink)))
(format "%s%s"
       (pipewire-lib-volume object t)
       (if (pipewire-lib-muted-p object) "(M)" "")))


PipeWire is currently accessed using pw-cli command line utility. pw-cli output is apparently undocumented and changes between versions so this is not a reliable way to communicate with PipeWire. But I dont know about anything better currently. Nevertheless, its easy to replace pw-cli with something else in pipewire-access.el.

Why is it named pipewire-0?

I wrote pipewire-0 because I couldnt find any Emacs interface to PipeWire. I would name it simply pipewire or pipewire-el but I expect that someone will write a full-fledged PipeWire interface sooner or later. Id like to avoid confusion and reserve the plain name for the future interface, while having the basic above zero, pipewire-0, support for now.


pipewire-0 is available at git.zamazal.org. You can file issues there.

If you dont want to discuss things publicly or to bother registering at yet another web site, you can reach me at pdm@zamazal.org.