From: Simon Ruderich Date: Sat, 1 Apr 2023 08:23:27 +0000 (+0200) Subject: multimedia: add pipewire configuration and switch mpv to pipewire X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;h=6bd2f6fb7f4d5b936c1f08eabc97c3be7625b3d7;p=config%2Fdotfiles.git multimedia: add pipewire configuration and switch mpv to pipewire --- diff --git a/multimedia/mpv/mpv.conf b/multimedia/mpv/mpv.conf index 31d6c8e..15936e1 100644 --- a/multimedia/mpv/mpv.conf +++ b/multimedia/mpv/mpv.conf @@ -19,8 +19,6 @@ # Use hardware decoding if possible hwdec=auto -# Use ALSA as audio driver. -ao=alsa # Set default value of internal mixer (0-100). Since 0.18.1 mpv has no access # to hardware mixer. volume=50 diff --git a/multimedia/pipewire/pipewire-pulse.conf.d/local.conf b/multimedia/pipewire/pipewire-pulse.conf.d/local.conf new file mode 100644 index 0000000..e6ec905 --- /dev/null +++ b/multimedia/pipewire/pipewire-pulse.conf.d/local.conf @@ -0,0 +1,19 @@ +# Extra configuration file for pipewire-pulse + +# SPDX-License-Identifier: GPL-3.0-or-later +# Copyright (C) 2023 Simon Ruderich + + +pulse.properties = { + server.address = [ + "unix:native", + + # Extra pulse listen socket for other local users (VTYs) + "unix:/dev/shm/pulse", + ] +} + +context.exec = [ + # Racy but good enough ... + { path = "/usr/bin/chmod", args = "0600 /dev/shm/pulse" } +] diff --git a/multimedia/setup.sh b/multimedia/setup.sh index dd6e929..016f497 100755 --- a/multimedia/setup.sh +++ b/multimedia/setup.sh @@ -61,3 +61,10 @@ fi if installed handbrake; then link handbrake ~/.config/ghb fi + +if installed pipewire; then + link pipewire ~/.config/pipewire +fi +if installed wireplumber; then + link wireplumber ~/.config/wireplumber +fi diff --git a/multimedia/wireplumber/main.lua.d/80-no-dbus.lua b/multimedia/wireplumber/main.lua.d/80-no-dbus.lua new file mode 100644 index 0000000..0c0ee84 --- /dev/null +++ b/multimedia/wireplumber/main.lua.d/80-no-dbus.lua @@ -0,0 +1,10 @@ +-- Extra configuration file for wireplumber + +-- SPDX-License-Identifier: GPL-3.0-or-later +-- Copyright (C) 2023 Simon Ruderich + + +-- Remove the need for DBus +alsa_monitor.properties["alsa.reserve"] = false +default_access.properties["enable-flatpak-portal"] = false +default_access.properties["enable-flatpak-portal"] = false