Binding the terminal to a keyboard shortcut

Hopefully this is an easy one for you all. I’m just trying to make a keyboard shortcut to a terminal.

Ctrl + Alt + T doesn’t seem to work. Plus I prefer Super + Enter.

I’ve tried binding Super + Enter to ‘gnome-terminal’ but that doesn’t seem to work either. Any tips?

Gnome-terminal is ptyxis now? - #5 by navras

Ah, did not notice that. That did the trick!

For anyone looking to do the same here is all you need to do to bind the shortcut to ptyxis

1 Like

A tip for those who might find it useful:

I prefer a shortcut key for the terminal that only launches the terminal if it is not running, but otherwise switches to an existing terminal window. Such run-or-raise style shortcut prevents me from having ten terminal windows lingering all over the place.

There are three ways to achieve this, two involving an extension.

1. Without any extension

If you have your terminal pinned on the dash, you already have a run-or-raise style shortcut key. If the terminal is the second item on your dash, the shortcut key <Super>2 will either run the terminal, or raise its window if already launched.

That keyboard combination can be changed, but no interface is exposed. You could use dconf-editor or change the keyboard combination with a command:

gsettings set org.gnome.shell.keybindings switch-to-application-2 "['<Control><Alt>t']"

Here, we changed the shortcut assignment to launch the 2nd item on the Dash. Change "['<Control><Alt>t']" into "['<Control><Alt>t','<Super>2']". if you also want to keep the default assignment. Replace set by reset and leave out the last argument to change the setting back to default.

  • Mind that the lauched application depends on the order of the pinned icons of the dock, so you need to keep this stable.
  • You can assign at most 9 “Run or raise” style shortcuts this way.

2. Extension “Happy Appy Hotkey”

The extension Happy Appy Hotkey by jqno provides an easy-to-use interface to set up “run-or-raise” style shortcut keys to launch or switch to apps, independent of the order on the dock.

3. Power users: extension “Run or raise”

The extension Run or raise by e2rd is a keyboard daemon with which you can set up run-or-raise shortcut keys.

It also allows to set up traditional shortcut keys and thus can fully replace “Custom Shortcuts” in “Settings”. It allows full control on how shortcuts work, allows even to dynamically assign a hotkey to a current window so you can quickly recall it later during the same session, and set up layered shortcuts (e.g. a, then w to run the browser).

It involves maintaining a configuration file. While this requires a learning curve for the less tech-savvy user, it is a benefit for the power user (quick, direct, easily portable).

1 Like