Score:1

Custom shortcut to "mate-screenshot -a"

in flag

I am using Ubuntu 20.04 with mate desktop. I also use an external keyboard - logitech keyboard k850 which unfortunately do not have the print-screen key :-(

In the native keyboard of my laptop the combination Shift + PrtSc opens the (mate?) screenshot dialog:

enter image description here

I am interested in having a selected-area-screenshot shortcut which is not using the PrtSc, better if this is a shortcut to mate-screenshot -a (directly selected area).

Any idea how to do it?

Score:1
in flag

I have just figured out that there is a screenshot key on my keyboard, which is fn + insert (which has a camera icon on it)...

So in order to achieve it, I use:

fn + Shift + insert

This will open this dialog box:

enter image description here

It is one step more than using mate-screenshot -a, yet - it works.

vanadium avatar
cn flag
You can always define your own custom shortcut that calls the command *you* want.
guyaloni avatar
in flag
Sounds great, can you please explain how?
vanadium avatar
cn flag
I do not have Mate. Just the standard way to add a custom shortcut in your desktop environment - look up the basic documentation if needed. Disable the standard shortcut defined for print screen first.
N0rbert avatar
zw flag
@guyaloni Custom keyboard shortcuts maybe defined in Keyboard Shortcuts of MATE Control Center (`mate-keybinding-properties`) . Also see our [previous Q&A](https://askubuntu.com/a/1379984/66509).
Score:1
my flag

You simply add a custom shortcut via the MATE Keyboard shortcuts settings app:

  1. Open shortcuts window: System->Preferences->Hardware->Keyboard Shortcuts
  2. Create new shortcut: Click the Add button. Set the name you like e.g. Area Screenshot and set the Command to mate-screenshot -a. Then click Apply
  3. Set the screenshot you want: Double click where it says Disabled and press your preferred Key combo, e.g. "Ctrl+T"

Done!

guyaloni avatar
in flag
From some reason the command is not fired....
Mickey avatar
my flag
mmh strange, what is the output of this command? `dconf dump /org/mate/desktop/keybindings/`
guyaloni avatar
in flag
`[custom0] action='mate-screenshot -a' binding='<Primary>t' name='Area Screenshot' `
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.