2

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 2

2

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 } }
3
  • 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, 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.
    – BeaverusIV
    Aug 27, 2010 at 5:48
  • Ok, now I understand what you want (I edited my answer).
    – cYrus
    Aug 27, 2010 at 9:24
2

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 }

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .