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 am using xdotool to automate some GUI usage. That works pretty well, but sometimes I want to check what button currently has focus. So I need to query the value of that button. xdotool doesn't seem to support that (can only get window titles). Is there any other tool that archieves that? (And could someone with enough reputation create a tag for xdotool ... it's such a common tool in the Unix world.)

share|improve this question

Your Answer


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

Browse other questions tagged or ask your own question.