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.

Is it possible to do the following in Ubuntu? If so can someone point me in the right direction.

Say you want to set a keyboard shortcut to do the following:

For examples sake, set Alt+F to open Firefox and maximize it, but only if Firefox is not already running. If it is running and not maximized, then maximize the most recently touched Firefox window. If it is maximized, then minimize Firefox.

Thanks, Joe

share|improve this question
    
@joemangrove I'm curious to know: did either of the answers work for you? –  Firefeather Nov 29 '10 at 20:39

2 Answers 2

Sounds like something AutoKey would be good for.

From the Ubuntu Software Center:

AutoKey is a desktop automation utility for Linux and X11. It allows the automation of virtually any task by responding to typed abbreviations and hotkeys. It offers a full-featured GUI that makes it highly accessible for novices, as well as a scripting interface offering the full flexibility and power of the Python language.

It can be installed by clicking here.

Screenshot of AutoKey from screenshots.debian.net

share|improve this answer

Go to: System, Settings, Keyboard Shortcuts, Add.

Chose a name and copy the following command:

xdg-open http://google.com

make sure the url you choose has http:// or https:// in front of it, otherwise, it will be interpreted, for instance, as a path on the local file system, which is opened with Nautilus or what ever.

If you want to find other interesting commands to put in those fields for short cuts, why not get your geek on at http://www.commandlinefu.com.

rev.: this answer made much simpler thanks to Roger Pate

share|improve this answer
    
The command could also be xdg-open http://google.com. –  Roger Pate Oct 29 '10 at 3:06

Your Answer

 
discard

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