Fix #71: Change property mwfact to master_width_factor
This commit is contained in:
parent
c64b48f784
commit
a08e4ffdef
|
@ -272,7 +272,7 @@ Then edit this section to fit your needs.
|
||||||
| **icon** | Tag icon | path |
|
| **icon** | Tag icon | path |
|
||||||
| **init** | Create when awesome launch | boolean |
|
| **init** | Create when awesome launch | boolean |
|
||||||
| **layout** | The tag layout | layout |
|
| **layout** | The tag layout | layout |
|
||||||
| **mwfact** | Tiled layout master/slave ratio | float(0-1) |
|
| **master_width_factor** | Tiled layout master/slave ratio | float(0-1) |
|
||||||
| **column_count** | Number of columns | number |
|
| **column_count** | Number of columns | number |
|
||||||
| **master_count** | Number of master clients | number |
|
| **master_count** | Number of master clients | number |
|
||||||
| **no_focus_stealing_in** | Do not select this tag when a new client is added | boolean |
|
| **no_focus_stealing_in** | Do not select this tag when a new client is added | boolean |
|
||||||
|
@ -335,13 +335,13 @@ See:
|
||||||
| **block_children_focus_stealing** | Prevent popups from stealing focus | boolean |
|
| **block_children_focus_stealing** | Prevent popups from stealing focus | boolean |
|
||||||
| **default_layout** | The default layout for tags | layout |
|
| **default_layout** | The default layout for tags | layout |
|
||||||
| **group_children** | Add dialogs to the same tags as their parent client | boolean |
|
| **group_children** | Add dialogs to the same tags as their parent client | boolean |
|
||||||
| **mwfact** | The default master/slave ratio | float (0-1) |
|
| **master_width_factor** | The default master/slave ratio | float (0-1) |
|
||||||
| **force_odd_as_intrusive** | Make all non-normal (dock, splash) intrusive | boolean |
|
| **force_odd_as_intrusive** | Make all non-normal (dock, splash) intrusive | boolean |
|
||||||
| **no_focus_stealing_out** | Do not unselect tags when a new client is added | boolean |
|
| **no_focus_stealing_out** | Do not unselect tags when a new client is added | boolean |
|
||||||
| **favor_focused** | Prefer the focused screen to the screen property | boolean |
|
| **favor_focused** | Prefer the focused screen to the screen property | boolean |
|
||||||
|
|
||||||
|
|
||||||
It's worth noting that some settings like `mwfact` and `default_layout` should
|
It's worth noting that some settings like `master_width_factor` and `default_layout` should
|
||||||
be set **before** the tag arrow. Otherwise they wont take effect at startup.
|
be set **before** the tag arrow. Otherwise they wont take effect at startup.
|
||||||
|
|
||||||
**favor_focused** Is enabled by default for tags created after startup for
|
**favor_focused** Is enabled by default for tags created after startup for
|
||||||
|
@ -402,7 +402,7 @@ will allow the client into that tag. This function switch between `tile` and
|
||||||
local count = #match:clients() + 1 --The client is not there yet
|
local count = #match:clients() + 1 --The client is not there yet
|
||||||
if count == 2 then
|
if count == 2 then
|
||||||
awful.layout.set(awful.layout.suit.tile,tag)
|
awful.layout.set(awful.layout.suit.tile,tag)
|
||||||
awful.tag.setproperty(tag,"mwfact",0.5)
|
awful.tag.setproperty(tag,"master_width_factor",0.5)
|
||||||
else
|
else
|
||||||
awful.layout.set(awful.layout.suit.magnifier,tag)
|
awful.layout.set(awful.layout.suit.magnifier,tag)
|
||||||
end
|
end
|
||||||
|
|
|
@ -93,7 +93,7 @@ end
|
||||||
|
|
||||||
-- First, set some settings
|
-- First, set some settings
|
||||||
tyrannical.settings.default_layout = awful.layout.suit.tile.left
|
tyrannical.settings.default_layout = awful.layout.suit.tile.left
|
||||||
tyrannical.settings.mwfact = 0.66
|
tyrannical.settings.master_width_factor = 0.66
|
||||||
|
|
||||||
-- Setup some tags
|
-- Setup some tags
|
||||||
tyrannical.tags = {
|
tyrannical.tags = {
|
||||||
|
|
2
init.lua
2
init.lua
|
@ -277,7 +277,7 @@ awful.tag._add = awful.tag.add
|
||||||
|
|
||||||
awful.tag.add = function(tag,props,override)
|
awful.tag.add = function(tag,props,override)
|
||||||
props.screen,props.instances = props.screen or capi.mouse.screen,props.instances or setmetatable({}, { __mode = 'v' })
|
props.screen,props.instances = props.screen or capi.mouse.screen,props.instances or setmetatable({}, { __mode = 'v' })
|
||||||
props.mwfact,props.layout = props.mwfact or settings.tag.mwfact or settings.mwfact,props.layout or settings.default_layout or awful.layout.max
|
props.master_width_factor,props.layout = props.master_width_factor or settings.tag.master_width_factor or settings.master_width_factor,props.layout or settings.default_layout or awful.layout.max
|
||||||
local t = awful.tag._add(tag,awful.util.table.join(settings.tag,props,override))
|
local t = awful.tag._add(tag,awful.util.table.join(settings.tag,props,override))
|
||||||
fallbacks[#fallbacks+1] = props.fallback and t or nil
|
fallbacks[#fallbacks+1] = props.fallback and t or nil
|
||||||
t:connect_signal("property::selected", function(t) on_selected_change(t,props or {}) end)
|
t:connect_signal("property::selected", function(t) on_selected_change(t,props or {}) end)
|
||||||
|
|
|
@ -124,7 +124,7 @@ local function aero_tag()
|
||||||
local t = aw_tag.add("Aero", {
|
local t = aw_tag.add("Aero", {
|
||||||
screen = c.screen,
|
screen = c.screen,
|
||||||
layout = aw_layout.suit.tile,
|
layout = aw_layout.suit.tile,
|
||||||
mwfact = 0.5
|
master_width_factor = 0.5
|
||||||
})
|
})
|
||||||
|
|
||||||
t:clients({c,c2})
|
t:clients({c,c2})
|
||||||
|
|
Loading…
Reference in New Issue