aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.config/wireplumber/main.lua.d/50-disable-suspend.lua8
-rw-r--r--.config/wireplumber/wireplumber.conf.d/50-mpv-fix.conf14
2 files changed, 14 insertions, 8 deletions
diff --git a/.config/wireplumber/main.lua.d/50-disable-suspend.lua b/.config/wireplumber/main.lua.d/50-disable-suspend.lua
deleted file mode 100644
index 9b731a0..0000000
--- a/.config/wireplumber/main.lua.d/50-disable-suspend.lua
+++ /dev/null
@@ -1,8 +0,0 @@
-table.insert(alsa_monitor.rules, {
- matches = {
- { { "node.name", "matches", "alsa_input.*" }, },
- { { "node.name", "matches", "alsa_output.*" }, },
- },
- apply_properties = { ["session.suspend-timeout-seconds"] = 0, },
-});
-
diff --git a/.config/wireplumber/wireplumber.conf.d/50-mpv-fix.conf b/.config/wireplumber/wireplumber.conf.d/50-mpv-fix.conf
new file mode 100644
index 0000000..fa83de5
--- /dev/null
+++ b/.config/wireplumber/wireplumber.conf.d/50-mpv-fix.conf
@@ -0,0 +1,14 @@
+# <https://howthefu.cc/posts/04/index.html>
+stream.rules = [
+ {
+ matches = [
+ { application.name = "mpv" }
+ ]
+ actions = {
+ update-props = {
+ state.restore-props = false
+ }
+ }
+ }
+]
+