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
+3 -1
View File
@@ -85,5 +85,7 @@ end
function onActivate(id)
noctalia.runAsync("xdg-open '" .. id .. "'")
noctalia.notify("Websites", "Opening " .. id)
if noctalia.getConfig("notify") then
noctalia.notify("Websites", "Opening " .. id)
end
end
+7
View File
@@ -26,3 +26,10 @@ default = [
"YouTube|https://youtube.com",
"Gmail|https://mail.google.com",
]
[[setting]]
key = "notify"
type = "bool"
label_key = "settings.notify.label"
description_key = "settings.notify.description"
default = true
+9 -5
View File
@@ -1,8 +1,12 @@
{
"settings": {
"links": {
"label": "Links",
"description": "Format: Name|https://url"
"settings": {
"links": {
"label": "Links",
"description": "Format: Name|https://url"
},
"notify": {
"label": "Notify",
"description": "Notify when opening link."
}
}
}
}