feat: set if notifs can be above fullscreen apps

This commit is contained in:
FUFSoB
2025-09-23 11:01:05 +05:00
parent b47ac6dd8a
commit ea0350bcca
4 changed files with 10 additions and 1 deletions
+1
View File
@@ -127,6 +127,7 @@
"doNotDisturb": false,
"monitors": [],
"location": "top_right",
"alwaysOnTop": false,
"lastSeenTs": 0,
"respectExpireTimeout": false,
"lowUrgencyDuration": 3,
+1
View File
@@ -248,6 +248,7 @@ Singleton {
property bool doNotDisturb: false
property list<string> monitors: []
property string location: "top_right"
property bool alwaysOnTop: false
property real lastSeenTs: 0
property bool respectExpireTimeout: false
property int lowUrgencyDuration: 3
+1 -1
View File
@@ -39,7 +39,7 @@ Variants {
screen: modelData
WlrLayershell.namespace: "noctalia-notifications"
WlrLayershell.layer: WlrLayer.Top
WlrLayershell.layer: (Settings.isLoaded && Settings.data && Settings.data.notifications && Settings.data.notifications.alwaysOnTop) ? WlrLayer.Overlay : WlrLayer.Top
color: Color.transparent
@@ -71,6 +71,13 @@ ColumnLayout {
currentKey: Settings.data.notifications.location || "top_right"
onSelected: key => Settings.data.notifications.location = key
}
NToggle {
label: "Always on top"
description: "Display notifications above fullscreen windows and other layers."
checked: Settings.data.notifications.alwaysOnTop
onToggled: checked => Settings.data.notifications.alwaysOnTop = checked
}
}
NDivider {