use disable_smart_borders property instead of titlebars_enabled
This commit is contained in:
parent
880926d6c5
commit
9285a3292e
15
README.md
15
README.md
|
@ -241,6 +241,21 @@ color_marked_normal = "#ffff00",
|
||||||
color_marked_hover = "#ff0000",
|
color_marked_hover = "#ff0000",
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Disable:
|
||||||
|
------------
|
||||||
|
To disable `smart_borders` for certain clients you can set the
|
||||||
|
`disable_smart_borders` property:
|
||||||
|
|
||||||
|
```
|
||||||
|
ruled.client.append_rule({
|
||||||
|
id = "dont_show_smart_borders",
|
||||||
|
rule = { class = "myclass" },
|
||||||
|
properties = {
|
||||||
|
disable_smart_borders = true,
|
||||||
|
},
|
||||||
|
})
|
||||||
|
```
|
||||||
|
|
||||||
Integration / Signals:
|
Integration / Signals:
|
||||||
------------
|
------------
|
||||||
It is possible to use `smart_borders` features in other modules by emitting signals.
|
It is possible to use `smart_borders` features in other modules by emitting signals.
|
||||||
|
|
4
init.lua
4
init.lua
|
@ -933,9 +933,9 @@ local function new(config)
|
||||||
end
|
end
|
||||||
|
|
||||||
client.connect_signal("request::tag", smart_border_titlebars)
|
client.connect_signal("request::tag", smart_border_titlebars)
|
||||||
client.connect_signal("property::titlebars_enabled", function(c)
|
client.connect_signal("property::disable_smart_borders", function(c)
|
||||||
for _, pos in pairs(positions) do
|
for _, pos in pairs(positions) do
|
||||||
if c.titlebars_enabled == false then
|
if c.disable_smart_borders then
|
||||||
awful.titlebar.hide(c, pos)
|
awful.titlebar.hide(c, pos)
|
||||||
else
|
else
|
||||||
awful.titlebar.show(c, pos)
|
awful.titlebar.show(c, pos)
|
||||||
|
|
Loading…
Reference in New Issue