I've been digging around in the API documentation, and I'm having limited sucess switching tags from within awesome-client. Basically, I can switch tags with:


But that is relative not absolute. From looking in my rc.lua, looks like what I need is:

local screen = mouse.screen

But I get the following error instead:

attempt to index field '?' (a nil value)

What is the most concise way of changing tags (preferably one command) to an absolute tag number. Alternatively, how can I find the current tag?


After a lot of trial and error this is what I came up with:


This will switch to the third tag.

  • Only on the first screen, even if the focus is on the second screen. – l0b0 Jun 25 '13 at 8:38
  • The first argument to tags is the screen number. – Alice Ryhl Jul 19 '15 at 21:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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