'Can't get rid of borders in Awesome WM
I'm trying to make a task list popup with transparency, but I ran into a problem with the borders. Can't find a way to remove the black bars around the popup.
I tried border_width = 0 and theme.border_width = 0 but it just doesn't work.
local TaskPopup = awful.popup {
widget = awful.widget.tasklist {
screen = awful.screen.focused(),
filter = awful.widget.tasklist.filter.allscreen,
buttons = tasklist_buttons,
update_function = list_update,
style = {
bg_focus = "#fcba03",
bg_normal = "0",
},
layout = {
spacing = 5,
forced_num_rows = 2,
layout = wibox.layout.grid.horizontal
},
widget_template = {
{
{
{
id = "clienticon",
widget = awful.widget.clienticon,
forced_height = 80,
},
widget = wibox.container.place,
},
{
{
id = "clienttext",
widget = wibox.widget.textbox,
text = '...',
align = 'center',
},
widget = wibox.container.background,
bg = "#615532",
},
widget = wibox.layout.fixed.vertical,
fill_space = true
},
id = "background_role",
forced_width = 120,
forced_height = 120,
widget = wibox.container.background,
create_callback = function(self, c, index, objects) --luacheck: no unused
self:get_children_by_id("clienticon")[1].client = c
self:get_children_by_id("clienttext")[1].text = c.class
end,
},
},
border_width = 0,
bg = "0",
ontop = true,
placement = awful.placement.centered,
opacity = 0.8,
visible = true
}
Solution 1:[1]
Thanks to @Uli I managed to remove the borders (shadows) of the popup.
The problem was that the picom compositor was creating shadows around the popup.
Making the widget type = "desktop" makes picom ignore it.
border_width = 0,
bg = "0",
ontop = true,
placement = awful.placement.centered,
opacity = 0.8,
visible = true,
type = "desktop"
github.com/yshui/picom/blob/...
Enabled client-side shadows on windows. Note desktop windows (windows with '_NET_WM_WINDOW_TYPE_DESKTOP') never get shadow, unless explicitly requested using the wintypes option.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | FluffyDango |
