1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-04-04 04:42:05 -04:00

feat(ipc): add player-specific mpris volume control (#1645)

* feat: add mpris volume control through ipc

* feat: add mpris volume action and default binds
This commit is contained in:
ArijanJ
2026-02-10 21:44:56 +01:00
committed by GitHub
parent c783ff3dcf
commit e2c3ff00fb
4 changed files with 48 additions and 0 deletions

View File

@@ -57,6 +57,8 @@ const DMS_ACTIONS = [
{ id: "spawn dms ipc call audio decrement 1", label: "Volume Down (1%)" },
{ id: "spawn dms ipc call audio decrement 5", label: "Volume Down (5%)" },
{ id: "spawn dms ipc call audio decrement 10", label: "Volume Down (10%)" },
{ id: "spawn dms ipc call mpris increment 5", label: "Player Volume Up (5%)" },
{ id: "spawn dms ipc call mpris decrement 5", label: "Player Volume Down (5%)" },
{ id: "spawn dms ipc call audio mute", label: "Volume Mute Toggle" },
{ id: "spawn dms ipc call audio micmute", label: "Microphone Mute Toggle" },
{ id: "spawn dms ipc call audio cycleoutput", label: "Audio Output: Cycle" },
@@ -719,6 +721,14 @@ const DMS_ACTION_ARGS = {
base: "spawn dms ipc call audio decrement",
args: [{ name: "amount", type: "number", label: "Amount %", placeholder: "5", default: "5" }]
},
"player increment": {
base: "spawn dms ipc call mpris increment",
args: [{ name: "amount", type: "number", label: "Amount %", placeholder: "5", default: "5" }]
},
"player decrement": {
base: "spawn dms ipc call mpris decrement",
args: [{ name: "amount", type: "number", label: "Amount %", placeholder: "5", default: "5" }]
},
"brightness increment": {
base: "spawn dms ipc call brightness increment",
args: [