无法摆脱 Awesome WM 中的边框
Can't get rid of borders in Awesome WM
我正在尝试使用 t运行sparency 弹出任务列表,但我 运行 遇到了边框问题。找不到删除弹出窗口周围黑条的方法。
我试过 border_width = 0 和 theme.border_width = 0 但它不起作用。
Popup image
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
}
感谢@Uli,我设法移除了弹出窗口的边框(阴影)。
问题是 picom 合成器在弹出窗口周围创建了阴影。
让 widget type = "desktop" 使 picom 忽略它。
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.
我正在尝试使用 t运行sparency 弹出任务列表,但我 运行 遇到了边框问题。找不到删除弹出窗口周围黑条的方法。
我试过 border_width = 0 和 theme.border_width = 0 但它不起作用。
Popup image
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
}
感谢@Uli,我设法移除了弹出窗口的边框(阴影)。
问题是 picom 合成器在弹出窗口周围创建了阴影。
让 widget type = "desktop" 使 picom 忽略它。
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.