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.

I'd like to have an icon on the unity launcher that triggers either the Alt + Tab or compiz scale behavior. I don't want to use keyboard shortcuts and want to switch easily between applications using the mouse.

It would be great to trigger the compiz scale behavior by clicking an icon on the launcher.

Is it possible? What is the actual command that is run when pressing Alt + Tab?

share|improve this question

1 Answer 1

You need a desktop file to put something in the launcher.

gksudo gedit /usr/share/applications/name.desktop

Fill out this template:

[Desktop Entry]
 Name=the name you want shown
 Comment=
 Exec=command to run
 Icon=icon name
 Terminal=false
 Type=Application
 StartupNotify=true

Then you need to learn about xdotool which can simulate mouse and keyboard with commands.

Hope this helps even though I was not thorough.

share|improve this answer
    
Thank you very much. –  mFat May 28 '11 at 11:59
    
you mentioned thanks her that means you got the answer right if you got the answer please mark it as a answer by clicking the tick mark below the arrows used to vote please! –  VENKI Feb 24 '12 at 5:25

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.