You are not logged in.
Test driving a number of tiling WMs at the mo' and I think that awesome is the one for me. However I ran into a problem I'm apparently unable to figure out myself.
Problem is the rules section where, unless I completely misunderstand the purpose of the thing, I can tell awesome to, for example, open a certain application on a certain tag.
After having failed to do it with the old "apptags" command, I finally found the entry on awesome's wiki, that this sort of behaviour is now done in the "awful.rules.rules" section. But even with a lot of swearing and copying from other people's rc.lua, it just doesn't work.
My rc.lua (v. 3.4.1):
~~~
layouts = {
awful.layout.suit.tile, -- 1
awful.layout.suit.tile.left, -- 2
awful.layout.suit.tile.bottom, -- 3
awful.layout.suit.tile.top, -- 4
awful.layout.suit.max, -- 5
awful.layout.suit.magnifier, -- 6
awful.layout.suit.floating -- 7
}
tags = {}
for s = 1, screen.count() do
tags[s] = awful.tag({ "|default", "|network", "|office", "|graphics", "|media", "|6", "|7", "|8", "|torrent |" }, s,
{ layouts[1], layouts[1], layouts[3],
layouts[7], layouts[7], layouts[1],
layouts[1], layouts[1], layouts[1]
})
end
~~~
-- {{{ Rules
awful.rules.rules = {
-- All clients will match this rule.
{ rule = { },
properties = { border_width = beautiful.border_width,
border_color = beautiful.border_normal,
focus = true,
keys = clientkeys,
buttons = clientbuttons } },
{ rule = { class = "MPlayer" },
properties = { floating = true } },
{ rule = { class = "pinentry" },
properties = { floating = true } },
{ rule = { instance = "firefox" },
properties = { tag = tags[1][2] } },
}
-- }}}Now, when I'm in tag "default" for example, and start firefox, it still opens in tag "default" , instead of "network".
If someone could be so kind to either explain what I'm doing wrong, or what I misunderstood about that open-in-specific-tags stuff.
Thanks in advance
Last edited by JackH79 (2009-11-27 06:47:50)
Offline
Who says Firefox instance is "firefox"? I'd say that's your mistake. Ever heard of the xprop utility? Start it in a terminal emulator then click on a window. You are interested in two fields it returns, the WM_CLASS and WM_NAME which you can match in your rules.
WM_CLASS = "Foo", "Bar"
| |
instance ---| |
class -------------|
WM_NAME = "Foobar"
|
name ------|You need to install an RTFM interface.
Offline
Thanks for your kind and understanding reply. Yes, I have heard of xprop - and I have used it. The only thing I didn't realize is, that the first one was instance and the second one class. Simply thought they were interchangable. So yes, my mistake. Thanks very much for the info. It's working now.
Offline