Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

1 Answer 1

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

Your Answer

 
discard

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.