diff --git a/README.md b/README.md index 48d0bd3..f272cf5 100644 --- a/README.md +++ b/README.md @@ -241,6 +241,21 @@ color_marked_normal = "#ffff00", 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: ------------ It is possible to use `smart_borders` features in other modules by emitting signals. diff --git a/init.lua b/init.lua index 900851a..e38e448 100644 --- a/init.lua +++ b/init.lua @@ -933,9 +933,9 @@ local function new(config) end 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 - if c.titlebars_enabled == false then + if c.disable_smart_borders then awful.titlebar.hide(c, pos) else awful.titlebar.show(c, pos)