From 36ff9d53b78271491178f016654b95f6bd6bfaf5 Mon Sep 17 00:00:00 2001 From: streetturtle Date: Sat, 6 Mar 2021 13:20:35 -0500 Subject: [PATCH] [docker] highlight widget when the popup is shown --- docker-widget/docker.lua | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/docker-widget/docker.lua b/docker-widget/docker.lua index f05d06a..b9613d8 100644 --- a/docker-widget/docker.lua +++ b/docker-widget/docker.lua @@ -50,7 +50,10 @@ local docker_widget = wibox.widget { margins = 4, layout = wibox.container.margin }, - layout = wibox.layout.fixed.horizontal, + shape = function(cr, width, height) + gears.shape.rounded_rect(cr, width, height, 4) + end, + widget = wibox.container.background, set_icon = function(self, new_icon) self:get_children_by_id("icon")[1].image = new_icon end @@ -354,8 +357,10 @@ local function worker(user_args) gears.table.join( awful.button({}, 1, function() if popup.visible then + docker_widget:set_bg('#00000000') popup.visible = not popup.visible else + docker_widget:set_bg(beautiful.bg_focus) spawn.easy_async(string.format(LIST_CONTAINERS_CMD, number_of_containers), function(stdout, stderr) rebuild_widget(stdout, stderr)