Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

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 would like to accomplish the follwing:

  1. determine current tag X in awesome window manager
  2. sleep for 10 seconds
  3. Jump to tag X no matter what the current tag is.

I know i can control awesome via awesome-client via the command line. However, i can not find a single working example for its usage.

Can anybody help out ?

share|improve this question

Getting the current tag:

echo 'local awful = require("awful") ; return awful.tag.selected(2).name' | awesome-client

Switching to tag 1:

echo 'local awful = require("awful") ; return awful.tag.viewonly(tags[2][1])' | awesome-client

In both cases it handles screen number 2

share|improve this answer

You must log in to answer this question.

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