Add notification toggle setting
This commit is contained in:
@@ -85,5 +85,7 @@ end
|
|||||||
|
|
||||||
function onActivate(id)
|
function onActivate(id)
|
||||||
noctalia.runAsync("xdg-open '" .. id .. "'")
|
noctalia.runAsync("xdg-open '" .. id .. "'")
|
||||||
noctalia.notify("Websites", "Opening " .. id)
|
if noctalia.getConfig("notify") then
|
||||||
|
noctalia.notify("Websites", "Opening " .. id)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -1,8 +1,12 @@
|
|||||||
{
|
{
|
||||||
"settings": {
|
"settings": {
|
||||||
"links": {
|
"links": {
|
||||||
"label": "Links",
|
"label": "Links",
|
||||||
"description": "Format: Name|https://url"
|
"description": "Format: Name|https://url"
|
||||||
|
},
|
||||||
|
"notify": {
|
||||||
|
"label": "Notify",
|
||||||
|
"description": "Notify when opening link."
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user