Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I currently have a rule so Iron opens on my 'www' tag, but how do I get Awesome to switch to that tag?

share|improve this question
up vote 1 down vote accepted

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 } }
share|improve this answer
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] }}" – BeaverusIV Aug 27 '10 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. – BeaverusIV Aug 27 '10 at 5:48
Ok, now I understand what you want (I edited my answer). – cYrus Aug 27 '10 at 9:24
Thanks for the answer. – BeaverusIV Aug 28 '10 at 5:07

Added this to rc.lua before the menu:

function load_prog(cmd, tag)

And then in the menu:

{ "Iron", function () load_prog("iron", 3) end }
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.