pipewire on slackware 15.0 with window managers

how to enable pipewire on slackware 15.0 if you aren't using a full blown desktop environment.

as root:

  1. /usr/sbin/pipewire-enable.sh

as user:

  1. add these commands adapted from the autostart desktop files /etc/xdg/autostart/pipewire-media-session.desktop, /etc/xdg/autostart/pipewire-pulse.desktop and /etc/xdg/autostart/pipewire.desktop to your .xsession before the call to run the window manager:

    /usr/bin/daemon -rB --pidfiles=~/.run --name=pipewire /usr/bin/pipewire 
    /usr/bin/daemon -rB --pidfiles=~/.run --name=pipewire-pulse /usr/bin/pipewire-pulse
    /usr/bin/daemon -rB --pidfiles=~/.run --name=pipewire-media-session /usr/bin/pipewire-media-session
    
  2. to have pipewire shutdown on exiting the window manager, add these lines after the call to run the window manager:

    /usr/bin/daemon --pidfiles=~/.run --name=pipewire --stop
    /usr/bin/daemon --pidfiles=~/.run --name=pipewire-media-session --stop
    /usr/bin/daemon --pidfiles=~/.run --name=pipewire-pulse --stop
    
  3. $€£

to disable pipewire do these steps in reverse (only use /usr/sbin/pipewire-disable.sh ;)