Fix #71: Change property mwfact to master_width_factor

This commit is contained in:
Tomoya Tabuchi 2017-04-27 21:30:06 +09:00
parent c64b48f784
commit a08e4ffdef
No known key found for this signature in database
GPG Key ID: 0D2C1449EBF53F5E
4 changed files with 7 additions and 7 deletions

View File

@ -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

View File

@ -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 = {

View File

@ -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)

View File

@ -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})