aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2023-10-08 15:56:26 +0200
committerlonkaars <loek@pipeframe.xyz>2023-10-08 15:56:26 +0200
commitb97a2b36ba38d89563c8789af996ae3e002635b7 (patch)
treea2c2a8dd34d97b8cf47d49a99199208b587ad4de
parentf69a39258c4306d9d11e6849600192c9eee9a971 (diff)
fix MPV volume at 100%
-rw-r--r--.config/mpv/scripts/full-ao-volume.lua7
1 files changed, 7 insertions, 0 deletions
diff --git a/.config/mpv/scripts/full-ao-volume.lua b/.config/mpv/scripts/full-ao-volume.lua
new file mode 100644
index 0000000..591138b
--- /dev/null
+++ b/.config/mpv/scripts/full-ao-volume.lua
@@ -0,0 +1,7 @@
+-- make sure AO (pulseaudio/pipewire) output is at 100%
+mp.register_event("audio-reconfig", function ()
+ if mp.get_property("ao-volume") ~= 100 then
+ mp.set_property_number("ao-volume", 100)
+ end
+end)
+