awesome-wm , How to set a default nmaster for all tags?


How to set a default nmaster for all tags?

Question:

Tag: awesome-wm

I'm running awesome-wm 3.5.6 and am looking for a way to set the default nmaster for all my tags to zero. The best I can do so far is call awful.tag.setnmaster(0) right after my tags are created in my rc.lua. However, this only sets the nmaster value of the first tag, which actually makes sense reading the documentation I found here.

Is there a single property I can set to set the default nmaster for all my tags, or do I have to loop over them and set the value for each tag separately? In the latter case, some help with writing that loop would be greatly appreciated, as I'm pretty new to both lua and awesome :).

Thanks!


Answer:

I believe, having taken a look at the code, that it is not possible to a default nmaster by setting a single property (although I would love to be proven wrong).

So I had to implement a loop and after a bit of trial and error worked out the following, which works:

tags = {}
for s = 1, screen.count() do
    -- Each screen has its own tag table.
    tags[s] = awful.tag({ 1, 2, 3, 4, 5, 6, 7, 8, 9 }, s, awful.layout.suit.tile.bottom)
    for name,tag in pairs(tags[s]) do
        awful.tag.setnmaster(0, tag)
    end
end

Related:


Awesome desktop manager widgets


lua,widget,awesome-wm
I came upon this problem before, but only now it really renders awesome desktop manager useless. I was searching how to connect to Wifi with awesome. Found Gigamo Wifi Widget. Cool, how do I eat it? The awesome wiki entry on widgets does not really answer this question. I know...

How to set a custom icon of any client for the tasklist in awesomeWM v3.5.6?


lua,awesome-wm
if (c.class == "Google-chrome") then c.icon = capi.image ( "/home/art-attack/.config/awesome/icons/chrome.png" ) end I tried it but I always got an error i.e attempt to call field 'image' (a nil value) { rule = { class = "Google-chrome" }, properties = { icon = beautiful.icon_chrome } }, Then I find another...

are there any events related to awful.prompt in Awesome WM 3.5?


awesome-wm
I would like to know if it is possible to catch events from an awful.prompt widget like an event when the widget is activated with: myprompt:run() or when the user press Enter to validate his entry or Esc to leave/quit this widget....

How to get a signal when layout has changed in Awesome Wm


awesome-wm
Is is possible to capture the layout change in Awesome 3.5 like this for the tags ( for example): screen[s]:connect_signal("tag::history::update", function() --do some stuff when virtual desktop has changed end If so how do you do it?...

Strange behaviour of lua code (AwesomeWM config)


lua,awesome-wm
With this piece of code in my rc.lua (configuration file of AwesomeWM) I get what you see in image bellow: mybattmon = wibox.widget.textbox() function battery_status () local output={} local fd=io.popen("acpi", "r") local line=fd:read() while line do local battery_load = string.match(line, "(%d*)%%") local discharging if string.match(line, "Discharging")=="Discharging" then discharging="-" elseif string.match(line,...

How to set a default nmaster for all tags?


awesome-wm
I'm running awesome-wm 3.5.6 and am looking for a way to set the default nmaster for all my tags to zero. The best I can do so far is call awful.tag.setnmaster(0) right after my tags are created in my rc.lua. However, this only sets the nmaster value of the first...

Awesome WM: terminal window doesn't take full space


linux,lua,awesome-wm
I use Awesome as my WM and I don't know how to make my terminal window take full tiling space on my screen. My resolution is 1366x768 and I send pic related. Here you can see the problem : http://a.pomf.se/jqxrfq.png

How to set focus on a client under mouse cursor when a tag is changed?


awesome-wm
When I switch to another tag, a new client gets selected, but it is sometimes not a client that I have my mouse cursor over. To get a client under my mouse pointer focused, I have to either click somewhere on it, or switch to it with Mod4+j / k,...