]> ruderich.org/simon Gitweb - config/dotfiles.git/commitdiff
multimedia: add pipewire configuration and switch mpv to pipewire
authorSimon Ruderich <simon@ruderich.org>
Sat, 1 Apr 2023 08:23:27 +0000 (10:23 +0200)
committerSimon Ruderich <simon@ruderich.org>
Sat, 1 Apr 2023 08:23:27 +0000 (10:23 +0200)
multimedia/mpv/mpv.conf
multimedia/pipewire/pipewire-pulse.conf.d/local.conf [new file with mode: 0644]
multimedia/setup.sh
multimedia/wireplumber/main.lua.d/80-no-dbus.lua [new file with mode: 0644]

index 31d6c8eff88e8d3cd104b4d24ddbab37fd6fec40..15936e16e33eb7b5306638c1cfc15d075d7f05fc 100644 (file)
@@ -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 (file)
index 0000000..e6ec905
--- /dev/null
@@ -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" }
+]
index dd6e929d37894b0b34b7ba6f913b586cf98b1d24..016f4972ae96504edda04907470458fa15097229 100755 (executable)
@@ -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 (file)
index 0000000..0c0ee84
--- /dev/null
@@ -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