Custom keyboard shortcut to lauch a terminal and run a command in Unity

Posted by David Weinraub on Ask Ubuntu See other posts from Ask Ubuntu or by David Weinraub
Published on 2012-03-26T06:37:00Z Indexed on 2012/03/26 11:43 UTC
Read the original article Hit count: 423

Filed under:
|
|

I know this should be the simplest thing, but coming up empty. ;-(

I would like to create a keyboard shortcut ctrl-alt-P that opens a terminal window and runs a ping command:

ping -c 4 somefixeddomain.com

[Useful for quickly checking whether my internet connection is actually working.]

I have attempted to do this (in Unity, Ubuntu v11.10) using:

Settings > Keyboard > Custom Shortcuts

filling in all the obvious stuff, but no luck. All ideas welcome.

© Ask Ubuntu or respective owner

Related posts about unity

Related posts about command-line