I currently have a rule so Iron opens on my 'www' tag, but how do I get Awesome to switch to that tag?
2 Answers
You can click on the www
tag in the tag list (see man awesome
and search for bindings
), or you can take a look at these LUA
functions if you want to do more (e.g. to set a shortcut for it):
Or if you want to switch to a tag once a rule is applied you can use this form:
{ rule = { class = "Iron" } ,
properties = { tag = tags[1][3] , switchtotag = true } }
-
Sorry, I should have been more specific as I want to incorporate a command into the rule: "{ rule = { class = "Iron" }, properties = { tag = tags[1][3] }}" Aug 27, 2010 at 3:50
-
I 'fixed' it by adding a function into the menu to focus onto the tag them spawn Iron. Should do seeing as I'll only open it from the menu. Aug 27, 2010 at 5:48
-
Added this to rc.lua before the menu:
function load_prog(cmd, tag)
awful.tag.viewonly(tags[1][tag])
awful.util.spawn(cmd)
end
And then in the menu:
{ "Iron", function () load_prog("iron", 3) end }