qs: rename config option notifications.monitor to notifications.forceMonitor

This commit is contained in:
end-4
2026-05-13 20:01:21 +02:00
parent 0da83ba460
commit 9e1568fcdc
2 changed files with 7 additions and 7 deletions
@@ -14,7 +14,7 @@ Scope {
PanelWindow { PanelWindow {
id: root id: root
visible: (Notifications.popupList.length > 0) && !GlobalStates.screenLocked visible: (Notifications.popupList.length > 0) && !GlobalStates.screenLocked
screen: Quickshell.screens.find(s => Config.options.notifications.monitor.enable ? s.name === Config.options.notifications.monitor.name : s.name === Hyprland.focusedMonitor?.name) ?? null screen: Quickshell.screens.find(s => Config.options.notifications.forceMonitor.enable ? s.name === Config.options.notifications.forceMonitor.name : s.name === Hyprland.focusedMonitor?.name) ?? null
WlrLayershell.namespace: "quickshell:notificationPopup" WlrLayershell.namespace: "quickshell:notificationPopup"
WlrLayershell.layer: WlrLayer.Overlay WlrLayershell.layer: WlrLayer.Overlay
@@ -268,10 +268,10 @@ ContentPage {
ConfigSwitch { ConfigSwitch {
buttonIcon: "monitor" buttonIcon: "monitor"
text: Translation.tr("Show on specific monitor") text: Translation.tr("Force specific monitor")
checked: Config.options.notifications.monitor.enable checked: Config.options.notifications.forceMonitor.enable
onCheckedChanged: { onCheckedChanged: {
Config.options.notifications.monitor.enable = checked; Config.options.notifications.forceMonitor.enable = checked;
} }
StyledToolTip { StyledToolTip {
text: Translation.tr("If you have multiple monitors and want notifications to only show on one of them, enable this and enter the monitor name below (e.g., eDP-1)") text: Translation.tr("If you have multiple monitors and want notifications to only show on one of them, enable this and enter the monitor name below (e.g., eDP-1)")
@@ -279,14 +279,14 @@ ContentPage {
} }
ConfigRow { ConfigRow {
enabled: Config.options.notifications.monitor.enable enabled: Config.options.notifications.forceMonitor.enable
MaterialTextArea { MaterialTextArea {
Layout.fillWidth: true Layout.fillWidth: true
placeholderText: Translation.tr("Monitor name to show notifications on (e.g., eDP-1)") placeholderText: Translation.tr("Monitor name to show notifications on (e.g., eDP-1)")
text: Config.options.notifications.monitor.name text: Config.options.notifications.forceMonitor.name
wrapMode: TextEdit.Wrap wrapMode: TextEdit.Wrap
onTextChanged: { onTextChanged: {
Config.options.notifications.monitor.name = text; Config.options.notifications.forceMonitor.name = text;
} }
} }
} }