diff --git a/README.md b/README.md index 461ec18..a38c2eb 100644 --- a/README.md +++ b/README.md @@ -272,7 +272,7 @@ Then edit this section to fit your needs. | **icon** | Tag icon | path | | **init** | Create when awesome launch | boolean | | **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 | | **master_count** | Number of master clients | number | | **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 | | **default_layout** | The default layout for tags | layout | | **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 | | **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 | -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. **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 if count == 2 then 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 awful.layout.set(awful.layout.suit.magnifier,tag) end diff --git a/example.rc.lua b/example.rc.lua index 8b786ef..c1d39cd 100644 --- a/example.rc.lua +++ b/example.rc.lua @@ -93,7 +93,7 @@ end -- First, set some settings tyrannical.settings.default_layout = awful.layout.suit.tile.left -tyrannical.settings.mwfact = 0.66 +tyrannical.settings.master_width_factor = 0.66 -- Setup some tags tyrannical.tags = { diff --git a/init.lua b/init.lua index 4e2791a..253efd0 100755 --- a/init.lua +++ b/init.lua @@ -277,7 +277,7 @@ awful.tag._add = awful.tag.add awful.tag.add = function(tag,props,override) 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)) fallbacks[#fallbacks+1] = props.fallback and t or nil t:connect_signal("property::selected", function(t) on_selected_change(t,props or {}) end) diff --git a/shortcut.lua b/shortcut.lua index 45f01c6..fb43289 100644 --- a/shortcut.lua +++ b/shortcut.lua @@ -124,7 +124,7 @@ local function aero_tag() local t = aw_tag.add("Aero", { screen = c.screen, layout = aw_layout.suit.tile, - mwfact = 0.5 + master_width_factor = 0.5 }) t:clients({c,c2})