Custom keyboard shortcut to lauch a terminal and run a command in Unity
For Ubuntu 11.10 (Unity)
- Go to
System Settings > Keyboard > Shortcuts > Custom Shortcuts
. - Add a new shortcut by pressing the
+
button. Choose a name for your shortcut, and in the 'Command' field, enter
gnome-terminal -e "ping -c4 [your domain here]"
Assign your shortcut key combination by selecting the shortcut and pressing the combination you desire (e.g. Ctrl+Alt+P).
For Lubuntu 20.04
- Go to
Start button on taskbar
>Preferences
>LXQt settings
>Shortcut Keys
- Press Add key to add new shortcut keys
- Click on
Shortcut:
and press your shortcut keys - Write a description to the current shortcut keys
- Choose the type of running:
Command
orDBus message
- After implementing the running method press Ok