add pavucontrol spawner on volume click

This commit is contained in:
lucy 2026-01-17 17:24:40 +01:00
parent 433d6268fc
commit afc3c4419c

View File

@ -1,4 +1,5 @@
import Quickshell
import Quickshell.Io
import QtQuick
import Quickshell.Services.Pipewire
import "../../reusables/"
@ -50,4 +51,15 @@ Item {
text: Pipewire.ready ? root.getVolumeIcon() : null
}
}
MouseArea {
id: pavuArea
Process {
id: pavuLauncher
command: ["sh", "-c", "pavucontrol"]
}
anchors.fill: root
onClicked: pavuLauncher.exec(pavuLauncher.command)
acceptedButtons: Qt.LeftButton
cursorShape: Qt.PointingHandCursor
}
}