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

时间:2017-03-10 17:27:32

标签: window-managers awesome-wm

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

3 个答案:

答案 0 :(得分:22)

在您的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 :(得分:1)

有点晚了(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)

答案 2 :(得分:1)

只需结合来自@Emmanuel和@david的答案,并在默认情况下有一个带有隐藏标题栏的完整示例,以及将其切换的组合键:

titlebars_enabled = true留在rule_any块中,这避免了显示时标题栏为空的问题。

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

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

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