1

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

Vallery
  • 1,015
  • 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 Answers1

5

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"
fossfreedom
  • 172,746
  • 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