Add slave/master client properties

This commit is contained in:
Emmanuel Lepage Vallee 2014-05-01 16:33:34 -04:00
parent bfa3efbb91
commit 04c291cdc9
2 changed files with 6 additions and 0 deletions

View File

@ -203,6 +203,8 @@ Then edit this section to fit your needs.
| **ontop** | Display on top of the normal layout layer | boolean |
| **skip_taskbar** | Do not add to tasklist | boolean |
| **sticky** | Display in all tags | boolean |
| **master** | Open a client as master (bigger) | boolean |
| **slave** | Open a client as slave (smaller) | boolean |
*Need default rc.lua modifications in the "client.connect_signal('focus')" section

View File

@ -89,6 +89,10 @@ local function apply_properties(c,override,normal)
if props.centered == true then
awful.placement.centered(c, nil)
end
--Set slave or master
if props.slave == true or props.master == true then
awful.client["set"..(props.slave and "slave" or "master")](c, true)
end
--Focus new client
if props.focus_new ~= false and (c.transient_for and not settings.block_transient_for_focus_stealing) then
capi.client.focus = c