Wayland Layers: Breaking changes

- renamed some layers from "quickshell-*" to "noctalia-*"
- added screen name to all layers, ex: "noctalia-wallpaper-DP1"
- added a way to disable overview management in the settings, this allow
stationnary wallpaper on niri
This commit is contained in:
ItsLemmy
2025-11-04 20:07:48 -05:00
parent 6a8c6a8914
commit 0e41306f73
15 changed files with 137 additions and 87 deletions
+1 -1
View File
@@ -85,7 +85,7 @@ Variants {
screen: modelData
WlrLayershell.layer: WlrLayer.Background
WlrLayershell.exclusionMode: ExclusionMode.Ignore
WlrLayershell.namespace: "quickshell-wallpaper"
WlrLayershell.namespace: "noctalia-wallpaper-" + (screen?.name || "unknown")
anchors {
bottom: true
+10 -10
View File
@@ -6,21 +6,21 @@ import qs.Commons
import qs.Services
import qs.Widgets
Variants {
model: Quickshell.screens
Loader {
active: CompositorService.isNiri && Settings.data.wallpaper.enabled && Settings.data.wallpaper.overviewEnabled
delegate: Loader {
required property ShellScreen modelData
property string wallpaper: ""
sourceComponent: Variants {
model: Quickshell.screens
active: CompositorService.isNiri && Settings.data.wallpaper.enabled && modelData
sourceComponent: PanelWindow {
delegate: PanelWindow {
id: panelWindow
required property ShellScreen modelData
property string wallpaper: ""
Component.onCompleted: {
if (modelData) {
Logger.d("Overview", "Loading Overview component for Niri on", modelData.name)
Logger.d("Overview", "Loading overview for Niri on", modelData.name)
}
setWallpaperInitial()
}
@@ -50,7 +50,7 @@ Variants {
screen: modelData
WlrLayershell.layer: WlrLayer.Background
WlrLayershell.exclusionMode: ExclusionMode.Ignore
WlrLayershell.namespace: "quickshell-overview"
WlrLayershell.namespace: "noctalia-overview-" + (screen?.name || "unknown")
anchors {
top: true
+2 -2
View File
@@ -205,7 +205,7 @@ Variants {
focusable: false
color: Color.transparent
WlrLayershell.namespace: "noctalia-dock-peek"
WlrLayershell.namespace: "noctalia-dock-peek-" + (screen?.name || "unknown")
WlrLayershell.exclusionMode: ExclusionMode.Ignore
implicitHeight: peekHeight
@@ -244,7 +244,7 @@ Variants {
focusable: false
color: Color.transparent
WlrLayershell.namespace: "noctalia-dock-main"
WlrLayershell.namespace: "noctalia-dock-" + (screen?.name || "unknown")
WlrLayershell.exclusionMode: exclusive ? ExclusionMode.Auto : ExclusionMode.Ignore
// Size to fit the dock container exactly
+1 -1
View File
@@ -44,7 +44,7 @@ Variants {
sourceComponent: PanelWindow {
screen: modelData
WlrLayershell.namespace: "noctalia-notifications"
WlrLayershell.namespace: "noctalia-notifications-" + (screen?.name || "unknown")
WlrLayershell.layer: (Settings.data.notifications && Settings.data.notifications.overlayLayer) ? WlrLayer.Overlay : WlrLayer.Top
color: Color.transparent
+16
View File
@@ -27,6 +27,22 @@ ColumnLayout {
Layout.bottomMargin: Style.marginL
}
NToggle {
visible: Settings.data.wallpaper.enabled && CompositorService.isNiri
label: I18n.tr("settings.wallpaper.settings.enable-overview.label")
description: I18n.tr("settings.wallpaper.settings.enable-overview.description")
checked: Settings.data.wallpaper.overviewEnabled
onToggled: checked => Settings.data.wallpaper.overviewEnabled = checked
Layout.bottomMargin: Style.marginL
}
NDivider {
visible: Settings.data.wallpaper.enabled
Layout.fillWidth: true
Layout.topMargin: Style.marginXL
Layout.bottomMargin: Style.marginXL
}
ColumnLayout {
visible: Settings.data.wallpaper.enabled
spacing: Style.marginL