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

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
1
down vote

favorite












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.










share|improve this question

















  • 1




    I assume your shell is bash: do you use vi-mode or emacs-mode? You'll want to read about bash's bind command under Builtin commands, particularly the -x option
    – glenn jackman
    8 hours ago














up vote
1
down vote

favorite












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.










share|improve this question

















  • 1




    I assume your shell is bash: do you use vi-mode or emacs-mode? You'll want to read about bash's bind command under Builtin commands, particularly the -x option
    – glenn jackman
    8 hours ago












up vote
1
down vote

favorite









up vote
1
down vote

favorite











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.










share|improve this question













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.







command-line linux-mint keyboard-shortcuts






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked 8 hours ago









Eric Seastrand

1084




1084







  • 1




    I assume your shell is bash: do you use vi-mode or emacs-mode? You'll want to read about bash's bind command under Builtin commands, particularly the -x option
    – glenn jackman
    8 hours ago












  • 1




    I assume your shell is bash: do you use vi-mode or emacs-mode? You'll want to read about bash's bind command under Builtin commands, particularly the -x option
    – glenn jackman
    8 hours ago







1




1




I assume your shell is bash: do you use vi-mode or emacs-mode? You'll want to read about bash's bind command under Builtin commands, particularly the -x option
– glenn jackman
8 hours ago




I assume your shell is bash: do you use vi-mode or emacs-mode? You'll want to read about bash's bind command under Builtin commands, particularly the -x option
– glenn jackman
8 hours ago















active

oldest

votes











Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: false,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f474315%2fhow-can-i-add-a-keyboard-shortcut-from-the-command-line-or-by-editing-a-file%23new-answer', 'question_page');

);

Post as a guest



































active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes















 

draft saved


draft discarded















































 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f474315%2fhow-can-i-add-a-keyboard-shortcut-from-the-command-line-or-by-editing-a-file%23new-answer', 'question_page');

);

Post as a guest













































































Popular posts from this blog

How to check contact read email or not when send email to Individual?

Displaying single band from multi-band raster using QGIS

How many registers does an x86_64 CPU actually have?