1

I'm trying to change the keyboard shortcut 'CTRL + ALT + T'. The behavior I'd like is to open all existing terminals in the current workspace, and open a new one if there aren't any.

I'm using several previous questions (1, 2), which work to varying degrees, but I'm currently stuck on getting the keyboard shortcut to work.

Here's what I've done so far. I went to Settings > Keyboard shortcuts, removed the existing shortcut for launching terminal, and added a custom shortcut:

Custom shortcut

Added an executable script to my bin named 'terminal':

Script

Now, when I type 'terminal' into an open terminal, the script runs. But when I press 'Ctrl + Alt + T' nothing happens.

3
  • Try using the full path to the script for the shortcut command, maybe it doesn't evaluate ~/.bin directory.
    – pLumo
    Commented Apr 12, 2022 at 18:16
  • Ok, thanks this works.
    – atolnay
    Commented Apr 12, 2022 at 18:43
  • Great, let me put this as answer , might help others.
    – pLumo
    Commented Apr 12, 2022 at 18:45

1 Answer 1

1

For the shortcut command, you should use an absolute path to the script. It probably doesn't search in ~/.bin directory.

Use

~/.bin/terminal

or

/home/adam/.bin/terminal

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .