Commit bfc657d49625bd75a9bb80d800adc0af6a386dc3
1 parent
b8902b96c1
Exists in
master
fixed new awesome layouts
Showing 4 changed files with 32 additions and 9 deletions Side-by-side Diff
awesome/awesome/darkburn/theme.lua
View file @
bfc657d
awesome/awesome/layouts/browse.lua
View file @
bfc657d
... | ... | @@ -8,7 +8,8 @@ |
8 | 8 | module("vain.layout.browse") |
9 | 9 | |
10 | 10 | extra_padding = 0 |
11 | - | |
11 | +mwfact_global = 0.5 | |
12 | +ncol = 1 | |
12 | 13 | name = "browse" |
13 | 14 | |
14 | 15 | function arrange(p) |
15 | 16 | |
... | ... | @@ -39,11 +40,13 @@ |
39 | 40 | local cls = p.clients |
40 | 41 | |
41 | 42 | -- Width of main column? |
42 | - local t = awful.tag.selected(p.screen) | |
43 | - local mwfact = awful.tag.getmwfact(t) | |
43 | + --local t = awful.tag.selected(p.screen) | |
44 | + --local mwfact = awful.tag.getmwfact(t) | |
45 | + local mwfact = mwfact_global | |
44 | 46 | |
45 | 47 | -- Make slave windows overlap main window? Do this if ncol is 1. |
46 | - local overlap_main = awful.tag.getncol(t) | |
48 | + --local overlap_main = awful.tag.getncol(t) | |
49 | + local overlap_main = ncol | |
47 | 50 | |
48 | 51 | if #cls > 0 |
49 | 52 | then |
awesome/awesome/layouts/termfair.lua
View file @
bfc657d
awesome/awesome/rc.lua
View file @
bfc657d
... | ... | @@ -58,6 +58,23 @@ |
58 | 58 | |
59 | 59 | |
60 | 60 | -------------------------------------- |
61 | +---- Layout Settings ---- | |
62 | +-------------------------------------- | |
63 | + | |
64 | +-- number of columns | |
65 | +vain.layout.termfair.nmaster = 3 | |
66 | +-- min number of rows (yes the var-name is backwards) | |
67 | +vain.layout.termfair.ncol = 1 | |
68 | + | |
69 | +-- percent of space for main window | |
70 | +vain.layout.browse.mwfact_global = 0.6 | |
71 | +-- 0 for non-overlapping, 1 for ovelapping | |
72 | +vain.layout.browse.ncol = 1 | |
73 | +-- reduces the size of the main window if "overlapping slave column" is activated. | |
74 | +-- This allows you to see if there are any windows in your slave column. | |
75 | +vain.layout.browse.extra_padding = 5 | |
76 | + | |
77 | +-------------------------------------- | |
61 | 78 | ---- Plugin Settings ---- |
62 | 79 | -------------------------------------- |
63 | 80 | |
64 | 81 | |
... | ... | @@ -136,8 +153,11 @@ |
136 | 153 | tags[s] = awful.tag(tags.names, s, tags.layout) |
137 | 154 | end |
138 | 155 | -- }}} |
156 | +-- | |
157 | +--awful.layout.set(vain.layout.termfair, tags[1][2]) | |
158 | +--awful.tag.setnmaster(3, tags[1][2]) | |
159 | +--awful.tag.setncol(1, tags[1][2]) | |
139 | 160 | |
140 | - | |
141 | 161 | -------------------------------------- |
142 | 162 | ---- Menu ---- |
143 | 163 | -------------------------------------- |
... | ... | @@ -530,9 +550,6 @@ |
530 | 550 | size_hints = {"program_position", "program_size"} |
531 | 551 | } |
532 | 552 | } |
533 | - -- Set Firefox to always map on tags number 2 of screen 1. | |
534 | - -- { rule = { class = "Firefox" }, | |
535 | - -- properties = { tag = tags[1][2] } }, | |
536 | 553 | } |
537 | 554 | -- }}} |
538 | 555 |