diff --git a/src/windows/audioman/AudioEntry.qml b/src/windows/audioman/AudioEntry.qml index 40ab50c..03cf52f 100644 --- a/src/windows/audioman/AudioEntry.qml +++ b/src/windows/audioman/AudioEntry.qml @@ -2,6 +2,7 @@ import QtQuick import QtQuick.Layouts import QtQuick.Controls import Quickshell.Services.Pipewire +import Quickshell.Io RowLayout { id: root @@ -70,6 +71,14 @@ RowLayout { checkable: false visible: root.node.isSink text: isDefault ? "default" : "not default" + + onClicked: makeDefault.running = true + + Process { + id: makeDefault + command: ["pactl", "set-default-sink", root.node?.name] + running: false + } } } RowLayout { diff --git a/src/windows/audioman/AudioManager.qml b/src/windows/audioman/AudioManager.qml index c5d2304..c425e2b 100644 --- a/src/windows/audioman/AudioManager.qml +++ b/src/windows/audioman/AudioManager.qml @@ -3,6 +3,7 @@ import Quickshell.Services.Pipewire import QtQuick import QtQuick.Layouts import QtQuick.Controls +import "root:base" PopupWindow { anchor { @@ -16,12 +17,9 @@ PopupWindow { height: 300 visible: false - Rectangle { + BRectangle { anchors.fill: parent - border.color: "black" - border.width: 2 - radius: 5 - color: "white" + ScrollView { anchors.fill: parent contentWidth: availableWidth