I needed to highlight some text in my screenshots and I did not know how to do it with the default screenshot app. Flameshot is a solution. I installed it.
How can I replace the PrtScr shortcut-key so that it launches Flameshot?
I needed to highlight some text in my screenshots and I did not know how to do it with the default screenshot app. Flameshot is a solution. I installed it.
How can I replace the PrtScr shortcut-key so that it launches Flameshot?
If you need or want to replace the PrtScr shortcut do the following:
Release the PrtScr binding by this command
Go to Settings -> Devices -> Keyboard and scroll to the end. Press + and you will create custom shortcut.
Enter name: "flameshot", command:
/usr/bin/flameshot gui
.Set shortcut to PrtScr (print).
That is it. Next time you push PrtScr flameshot will be launched.
Source: Posted in the question by OP which should have been posted as an answer instead.
Install and setup flameshot via terminal ... if there is no
custom0
shortcut / binding configuredInstall flameshot:
Release the PrtScr binding by this command:
Ubuntu 19.10 (Credits: @jobou's comment)
Older Ubuntu versions:
Set new custom binding:
Set name:
Set command:
Set binding:
In case you installed Flameshot via snapcraft.io and not via standard
sudo apt install flameshot
, then the path/usr/bin/flameshot gui
will not work, because the path is different.So, first run command
type flameshot
(for Ubuntu 18.04 and higher). This will show you the path where app is installed.Copy this path.
Press Super and search for keyboard shortcut.
Find word screenshot
Edit it (in my case, I assigned Shift+Ctrl+Alt+~ as I have never used this key combo)
Then go back, click + symbol and add the path you have copied to command.
This is tested on Ubuntu 20.04
Disable PrtScr or Print shortcut by opening the Keyboard Shortcuts Settings
Navigate to Keyboard Shortcuts on bottom left menu, then select Print shortcut which is to Save a screenshot to Pictures
Hit Backspace to disable the current keyboard shortcut so that we can use this for Flameshot later.
Hit Set to apply/confirm it.
Identify Flame binary location with
which
commandThen, scroll down to the bottom and select + symbol to add new shortcut.
Add Custom Shortcut
That's it
Or simply set any shortcut (including PrtScr) to
flameshot gui
: as indicated in the other answers, only without the need for any other setting. You will be asked if you want to remap the key (in Xfce at least, but I guess it's the same in most desktops).You might consider keeping PrtScr for the default screenshot tool and use other shortcuts for flameshot, at least two I mean, because you can also capture screen with delay: for a 5-second delay, use
flameshot gui -d 5000
.More here.
flameshot gui
.You’re done.
Ubuntu 20.04:
Remove the keyboard shortcut assigned for PrtScr:
Settings -> Keyboard Shortcuts -> Click Save a screenshot to Pictures -> Press Backspace to unassign.
Assign Flameshot to PrtScr:
Press the + icon -> Name: Flameshot -> Command: flameshot GUI -> Set Shortcut -> Press PrtScr -> Click Add to save.
Working in Kubuntu 20.10 :
Go to System Settings
Shortcuts > Global shortcuts
click Add Application button (you can type "flameshot" on the search box)
click OK
After adding the application, you should see a tab with Take screenshot description.
Click on it, and press the PrtSc key on your keyboard to set the shortcut.
Enjoy :)