Add slave/master client properties
This commit is contained in:
parent
bfa3efbb91
commit
04c291cdc9
|
@ -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
|
||||
|
||||
|
|
4
init.lua
4
init.lua
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue