Sunday, May 5, 2024
 Popular · Latest · Hot · Upcoming
14
rated 0 times [  14] [ 0]  / answers: 1 / hits: 25869  / 1 Year ago, thu, december 29, 2022, 6:23:46

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.


More From » unity

 Answers
3

For Ubuntu 11.10 (Unity)




  1. Go to System Settings > Keyboard > Shortcuts > Custom Shortcuts.

  2. Add a new shortcut by pressing the + button.

  3. Choose a name for your shortcut, and in the 'Command' field, enter



    gnome-terminal -e "ping -c4 [your domain here]"

  4. Assign your shortcut key combination by selecting the shortcut and pressing the combination you desire (e.g. Ctrl+Alt+P).



[#39662] Thursday, December 29, 2022, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
ardingiba

Total Points: 497
Total Questions: 95
Total Answers: 109

Location: Gabon
Member since Sat, Jan 15, 2022
2 Years ago
;