PipeWire: Difference between revisions

Describe how to turn off sound for X11 urgency hints as an example for extraConfig
Line 22: Line 22:
</syntaxhighlight>
</syntaxhighlight>


It is possible to use the {{nixos:option|services.pipewire.extraConfig}} option hierarchy in NixOS to create drop-in configuration files, if needed.
It is possible to use the {{nixos:option|services.pipewire.extraConfig}} option hierarchy in NixOS to create drop-in configuration files, if needed. For example, to disable the [https://docs.pipewire.org/page_module_x11_bell.html PipeWire x11-bell module] (which plays a sound on every X11 urgency hint), use:
 
<syntaxhighlight lang="nix">
  services.pipewire = {
    enable = true;
    # Disable X11 bell module, which plays a sound on urgency hint
    # (my prompt includes an urgency hint, so I want no sounds).
    extraConfig = {
      pipewire."99-silent-bell.conf" = {
        "context.properties" = {
          "module.x11.bell" = false;
        };
      };
    };
  };
</syntaxhighlight>


==Bluetooth Configuration==
==Bluetooth Configuration==