如何在 awesome window manager ver >4 中删除标题栏

How to remove title bar in awesome window manager ver >4

我最近升级了我的机器,现在是很棒的版本 4.x。现在有一个标题栏,右边有关闭、置顶、浮动、最大化等按钮。我可以摆脱这个吗?我将使用什么配置来普遍关闭它?

在您的 rc.lua 文件中,查找

-- Add title bars to normal clients and dialogs
{ rule_any = {type = { "normal", "dialog" }
  }, properties = { titlebars_enabled = true }
},

并改变

titlebars_enabled = true

titlebars_enabled = false

这个有点晚了(1 年前!)...
我按照 Emmanuel 之前在规则部分中所说的进行替换。但是当我让标题栏出现时,它们是空的,没有图标,没有文本框……什么都没有。
我的解决方法是在规则部分保留 titlebars_enabled = true
在信号部分(在 "manage" 句柄中):添加标题栏并在我开始时隐藏它(下面代码中的最后两行)。当我切换它的显示时,标题栏出现带有图标和文本:

-- Signal function to execute when a new client appears.
client.connect_signal("manage", function (c)
  -- Set the windows at the slave,
  -- i.e. put it at the end of others instead of setting it master.
  -- if not awesome.startup then awful.client.setslave(c) end

 if awesome.startup and
  not c.size_hints.user_position
  and not c.size_hints.program_position then
    -- Prevent clients from being unreachable after screen count changes.
    awful.placement.no_offscreen(c)
 end
--
 awful.titlebar(c,{size=10})
 awful.titlebar.hide(c)
end)

只是结合@Emmanuel 和@david 的两个答案,并有一个默认情况下隐藏标题栏的完整示例和一个切换它的组合键:

rule_any块中保留titlebars_enabled = true,这样可以避免显示时标题栏为空的问题。

当新客户(window)出现时隐藏标题栏在manage信号中添加awful.titlebar.hide(c):

client.connect_signal("manage", function (c)
    -- ... more code

    awful.titlebar.hide(c)
end)

然后添加一个键绑定,在本例中为 Modkey + Control + t,以调用 awful.titlebar.toggle.

clientkeys = my_table.join(
    -- ... more key bindings
    -- Remember to add a comma to the end of the previous keybinding above!

    awful.key({ modkey, 'Control' }, 't', function (c) awful.titlebar.toggle(c) end,
        {description = 'toggle title bar', group = 'client'})
)