From 9045e67d18859c57033ed38e6b64b5ecaf6dedf0 Mon Sep 17 00:00:00 2001 From: streetturtle Date: Tue, 17 Dec 2019 21:37:03 -0500 Subject: add titles for error notifications --- gerrit-widget/gerrit.lua | 6 +++++- jira-widget/jira.lua | 5 ++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/gerrit-widget/gerrit.lua b/gerrit-widget/gerrit.lua index 890371f..69036d0 100644 --- a/gerrit-widget/gerrit.lua +++ b/gerrit-widget/gerrit.lua @@ -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 diff --git a/jira-widget/jira.lua b/jira-widget/jira.lua index d0b364b..15855cb 100644 --- a/jira-widget/jira.lua +++ b/jira-widget/jira.lua @@ -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 -- cgit v1.2.3