summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorstreetturtle <streetturtle@gmail.com>2021-03-06 13:20:35 -0500
committerstreetturtle <streetturtle@gmail.com>2021-03-06 13:20:35 -0500
commit36ff9d53b78271491178f016654b95f6bd6bfaf5 (patch)
tree6a6e9d03d7d1b4dd1f215e2d99ce6055baa5235c
parent79490b3bdd491b54ce4dbdbc8846dbd871304d9d (diff)
[docker] highlight widget when the popup is shown
-rw-r--r--docker-widget/docker.lua7
1 files changed, 6 insertions, 1 deletions
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)