Add notification toggle setting

This commit is contained in:
Yocraft-2000
2026-07-18 00:37:43 +02:00
parent 758744f9ca
commit eb8f134bfc
3 changed files with 19 additions and 6 deletions
+2
View File
@@ -85,5 +85,7 @@ end
function onActivate(id) function onActivate(id)
noctalia.runAsync("xdg-open '" .. id .. "'") noctalia.runAsync("xdg-open '" .. id .. "'")
if noctalia.getConfig("notify") then
noctalia.notify("Websites", "Opening " .. id) noctalia.notify("Websites", "Opening " .. id)
end end
end
+7
View File
@@ -26,3 +26,10 @@ default = [
"YouTube|https://youtube.com", "YouTube|https://youtube.com",
"Gmail|https://mail.google.com", "Gmail|https://mail.google.com",
] ]
[[setting]]
key = "notify"
type = "bool"
label_key = "settings.notify.label"
description_key = "settings.notify.description"
default = true
+4
View File
@@ -3,6 +3,10 @@
"links": { "links": {
"label": "Links", "label": "Links",
"description": "Format: Name|https://url" "description": "Format: Name|https://url"
},
"notify": {
"label": "Notify",
"description": "Notify when opening link."
} }
} }
} }