diff options
author | streetturtle <streetturtle@users.noreply.github.com> | 2021-04-21 10:58:31 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-21 10:58:31 -0400 |
commit | fb334f27fab3ff5dbbc05f3da42fb5d4a8628b00 (patch) | |
tree | bd983a6ed4ed57d7650d404998102b9dd052a493 | |
parent | 9e42fec6b14c0594fae33104e858e1057618b1b2 (diff) |
Update jira.lua
-rw-r--r-- | jira-widget/jira.lua | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/jira-widget/jira.lua b/jira-widget/jira.lua index 8ba037e..6307af4 100644 --- a/jira-widget/jira.lua +++ b/jira-widget/jira.lua @@ -112,7 +112,8 @@ local function worker(user_args) local args = user_args or {} - local icon = args.icon or HOME_DIR .. '/.config/awesome/awesome-wm-widgets/jira-widget/icon/jira-mark-gradient-blue.svg' + local icon = args.icon or + HOME_DIR .. '/.config/awesome/awesome-wm-widgets/jira-widget/icon/jira-mark-gradient-blue.svg' local host = args.host or show_warning('Jira host is unknown') local query = args.query or 'jql=assignee=currentuser() AND resolution=Unresolved' local timeout = args.timeout or 600 @@ -222,7 +223,8 @@ local function worker(user_args) widget = wibox.widget.textbox }, { - markup = "<span foreground='#888888'>" .. issue.fields.assignee.displayName .. "</span>", + markup = "<span foreground='#888888'>" + .. issue.fields.assignee.displayName .. "</span>", widget = wibox.widget.textbox }, spacing = 8, @@ -288,10 +290,7 @@ local function worker(user_args) end) ) ) - watch( - 'cat /home/pmakhov/.config/JetBrains/IntelliJIdea2020.2/scratches/scratch_27.json', - --string.format(GET_ISSUES_CMD, host, query:gsub(' ', '+')), - timeout, update_widget, jira_widget) + watch(string.format(GET_ISSUES_CMD, host, query:gsub(' ', '+')), timeout, update_widget, jira_widget) return jira_widget end |