2 Clarified question in response to comment
source | link

On Linux Mint, I would like to bind a shortcut key to run a command*.

I can achievehave already achieved this using the GUI, but I need a way to adddefine this keyboard shortcut from the command-line, without GUI interaction**.

The keybinding should work identical to the one created through the GUI and work anywhere. In other words: not a bash binding, which would only work when sent to that terminal window.

Further explanation:
* The command it will runThe command it will run is shutter -s. It lets me take a screenshot of an area of the screen, but that isn't relevant to the scope of this question.
** Why I want to do this: I run Mint on many machines/VMs, and need to be able to provision new ones quickly. To achieve this, I've scripted the installation of everything I need to do dev work.

On Linux Mint, I would like to bind a shortcut key to run a command*.

I can achieve this using the GUI, but I need a way to add this keyboard shortcut from the command-line, without GUI interaction**.

Further explanation:
* The command it will run is shutter -s. It lets me take a screenshot of an area of the screen, but that isn't relevant to the scope of this question.
** I run Mint on many machines/VMs, and need to be able to provision new ones quickly. To achieve this, I've scripted the installation of everything I need to do dev work.

On Linux Mint, I would like to bind a shortcut key to run a command*.

I have already achieved this using the GUI, but I need a way to define this keyboard shortcut from the command-line, without GUI interaction**.

The keybinding should work identical to the one created through the GUI and work anywhere. In other words: not a bash binding, which would only work when sent to that terminal window.

Further explanation:
* The command it will run is shutter -s. It lets me take a screenshot of an area of the screen, but that isn't relevant to the scope of this question.
** Why I want to do this: I run Mint on many machines/VMs, and need to be able to provision new ones quickly. To achieve this, I've scripted the installation of everything I need to do dev work.

1
source | link

How can I add a keyboard shortcut from the command-line or by editing a file?

On Linux Mint, I would like to bind a shortcut key to run a command*.

I can achieve this using the GUI, but I need a way to add this keyboard shortcut from the command-line, without GUI interaction**.

Further explanation:
* The command it will run is shutter -s. It lets me take a screenshot of an area of the screen, but that isn't relevant to the scope of this question.
** I run Mint on many machines/VMs, and need to be able to provision new ones quickly. To achieve this, I've scripted the installation of everything I need to do dev work.