Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Are there commands to preform actions such as alt-tab?

share|improve this question
    
I'm afraid I don't quite understand what you mean by "commands to perform actions." Do you mean other shortcuts to manage open windows? –  Nathan Osman Apr 23 '11 at 16:07
    
A command from the shell? But if you are in a shell, and do 1 times 'alt tab', you're in a second application, if there is any - if you do it two times, the second command can't be issued, because now you already switched away. :) –  user unknown Apr 23 '11 at 16:53
    
I'm actually trying to bind things to a gesture application. I'm not actually planing on typing them out in terminal every time I want to show the desktop or switch windows or whatever. –  Vallery Apr 23 '11 at 19:30

1 Answer 1

up vote 2 down vote accepted

Given you last comment Alexander, I think you want to use "xte" which is available if you install the xautomation software package from software centre or synaptic manager

'xte' is a command line tool which you could shell out from your code.

Example syntax to invoke an "ALT-TAB" would be

xte "keydown Alt_L" "key Tab" "keyup Alt_L"
share|improve this answer
    
Thanks. I started using xsendkeys, but this looks more useful since it can also hold keys down. Thanks! –  Vallery Apr 24 '11 at 14:55

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.