mirror of
https://github.com/zoriya/noctalia-shell.git
synced 2026-08-15 18:43:59 +00:00
Audio: added a settings to choose your favorite external audio mixer (ex: pavucontrol, ...)
This commit is contained in:
@@ -86,7 +86,7 @@ Item {
|
||||
}
|
||||
|
||||
function openExternalMixer() {
|
||||
Quickshell.execDetached(["sh", "-c", "pwvucontrol || pavucontrol"]);
|
||||
Quickshell.execDetached(["sh", "-c", Settings.data.audio.externalMixer]);
|
||||
}
|
||||
|
||||
NPopupContextMenu {
|
||||
|
||||
@@ -59,7 +59,7 @@ Item {
|
||||
}
|
||||
|
||||
function openExternalMixer() {
|
||||
Quickshell.execDetached(["sh", "-c", "pwvucontrol || pavucontrol"]);
|
||||
Quickshell.execDetached(["sh", "-c", Settings.data.audio.externalMixer]);
|
||||
}
|
||||
|
||||
Timer {
|
||||
|
||||
@@ -10,11 +10,6 @@ ColumnLayout {
|
||||
id: root
|
||||
spacing: Style.marginL
|
||||
|
||||
NHeader {
|
||||
label: I18n.tr("settings.audio.volumes.section.label")
|
||||
description: I18n.tr("settings.audio.volumes.section.description")
|
||||
}
|
||||
|
||||
property real localVolume: AudioService.volume
|
||||
|
||||
Connections {
|
||||
@@ -24,6 +19,11 @@ ColumnLayout {
|
||||
}
|
||||
}
|
||||
|
||||
NHeader {
|
||||
label: I18n.tr("settings.audio.volumes.section.label")
|
||||
description: I18n.tr("settings.audio.volumes.section.description")
|
||||
}
|
||||
|
||||
// Master Volume
|
||||
ColumnLayout {
|
||||
spacing: Style.marginXXS
|
||||
@@ -141,6 +141,15 @@ ColumnLayout {
|
||||
}
|
||||
}
|
||||
|
||||
// External mixer command
|
||||
NTextInput {
|
||||
label: I18n.tr("settings.audio.external-mixer.label")
|
||||
description: I18n.tr("settings.audio.external-mixer.description")
|
||||
placeholderText: I18n.tr("settings.audio.external-mixer.placeholder")
|
||||
text: Settings.data.audio.externalMixer
|
||||
onTextChanged: Settings.data.audio.externalMixer = text
|
||||
}
|
||||
|
||||
NDivider {
|
||||
Layout.fillWidth: true
|
||||
Layout.topMargin: Style.marginL
|
||||
|
||||
Reference in New Issue
Block a user