From 8116b395445c1d766e6eca6a216f9c84e4c6511f Mon Sep 17 00:00:00 2001 From: streetturtle Date: Sat, 1 Feb 2020 13:32:44 -0500 Subject: Request only necessarry fields from API --- jira-widget/jira.lua | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) (limited to 'jira-widget') diff --git a/jira-widget/jira.lua b/jira-widget/jira.lua index 15855cb..652767a 100644 --- a/jira-widget/jira.lua +++ b/jira-widget/jira.lua @@ -21,7 +21,7 @@ local gs = require("gears.string") local HOME_DIR = os.getenv("HOME") -local GET_ISSUES_CMD = [[bash -c "curl -s -X GET -n '%s/rest/api/2/search?%s'"]] +local GET_ISSUES_CMD = [[bash -c "curl -s -X GET -n '%s/rest/api/2/search?%s&fields=id,assignee,summary,status'"]] local DOWNLOAD_AVATAR_CMD = [[bash -c "curl -n --create-dirs -o %s/.cache/awmw/jira-widget/avatars/%s %s"]] local jira_widget = {} @@ -146,10 +146,6 @@ local function worker(args) widget = wibox.container.background } - row:connect_signal("button::release", function(_, _, _, button) - spawn.with_shell("google-chrome https://" .. host .. '/' .. issue._number) - end) - row:connect_signal("mouse::enter", function(c) c:set_bg(beautiful.bg_focus) end) row:connect_signal("mouse::leave", function(c) c:set_bg(beautiful.bg_normal) end) @@ -174,11 +170,7 @@ local function worker(args) if popup.visible then popup.visible = not popup.visible else - local geo = mouse.current_widget_geometry - local x = geo.x + (geo.width / 2) - (popup:geometry().width / 2) - popup:move_next_to({x = x, y = geo.y + 22, width = 0, height = geo.height}) - - -- popup:move_next_to(mouse.current_widget_geometry) + popup:move_next_to(mouse.current_widget_geometry) end end) ) -- cgit v1.2.3