add titles for error notifications

This commit is contained in:
streetturtle 2019-12-17 21:37:03 -05:00
parent ecb9a0e9e8
commit 9045e67d18
2 changed files with 9 additions and 2 deletions

View File

@ -32,7 +32,11 @@ local function worker(args)
local args = args or {}
local icon = args.icons or HOME_DIR .. '/.config/awesome/awesome-wm-widgets/gerrit-widget/gerrit_icon.svg'
local host = args.host or naughty.notify{preset = naughty.config.presets.critical, text = 'Gerrit host is unknown'}
local host = args.host or naughty.notify{
preset = naughty.config.presets.critical,
title = 'Gerrit Widget',
text = 'Gerrit host is unknown'
}
local query = args.query or 'is:reviewer AND status:open AND NOT is:wip'
local current_number_of_reviews

View File

@ -31,7 +31,10 @@ local function worker(args)
local args = args or {}
local icon = args.icon or HOME_DIR .. '/.config/awesome/awesome-wm-widgets/jira-widget/jira-mark-gradient-blue.svg'
local host = args.host or naughty.notify{preset = naughty.config.presets.critical, text = 'Jira host is unknown'}
local host = args.host or naughty.notify{
preset = naughty.config.presets.critical,
title = 'Jira Widget',
text = 'Jira host is unknown'}
local query = args.query or 'jql=assignee=currentuser() AND resolution=Unresolved'
local current_number_of_reviews