flameshot-org.github.io icon indicating copy to clipboard operation
flameshot-org.github.io copied to clipboard

Add instructions to use global shortcut in ubuntu

Open arredond opened this issue 6 years ago • 5 comments

I'm a huge fan of your tool and have recently installed it on Ubuntu. For future users, I think adding some instructions to use global shortcuts in Ubuntu (same as with KDE Plasma) would be great. This StackExchange answer is a pretty good start:

If you need to replace the PrtScr shortcut do the following:

  1. Release the PrtScr binding by this command

gsettings set org.gnome.settings-daemon.plugins.media-keys screenshot ''

  1. 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.

  1. Set shortcut to PrtScr (print).

That is it. Next time you push PrtScr flameshot will be launched.

It's trivial enough but I'm happy to provide a PR if useful.

arredond avatar Apr 03 '19 12:04 arredond

Actually you can instead do the following:

  1. Go to Settings -> Devices -> Keyboard and search for screenshot.
  2. Click on the save picture shortcut and press Backspace to reset it.
  3. Go to the bottom, click on + and create a custom shortcut.
  4. Enter name: flameshot, command: /usr/bin/flameshot gui. Press the Prnt Scrn key to assign the shortcut.

devnoname120 avatar May 27 '19 12:05 devnoname120

And if /usr/bin/flameshot doesn't work, try /snap/bin/flameshot. (Ubuntu 22.04)

rillig avatar Feb 08 '23 13:02 rillig

This link has explained it for some of the Desktop Environments (Gnome, KDE, Mate):

https://www.addictivetips.com/ubuntu-linux-tips/flameshot-default-linux-screenshot-app/

mmahmoudian avatar Feb 10 '23 09:02 mmahmoudian

@mmahmoudian Thanks for the link. As an ordinary user, I don't want to follow this lengthy list of steps just to achieve what I expect to be built-in into a screenshot application: That it offers to install itself as the default screenshot app bound to the PrtScr key.

rillig avatar Feb 10 '23 17:02 rillig

@rillig these steps are very straightforward, very easy, and very very quick (less than 5 clicks in total). If you are looking for a software that makes all decisions on your behalf without considering your preference, you are using the wrong operating system and wrong software. We will never offer such limiting obscure thing. It is against every belief of proper software design and Linux culture. Users are expected to know their software stack and operating system, or else they are just pure obedient consumers. What we provide in Flameshot is giving the user the options and freedom.

Update: on second thought, I personally would not do it, but this should be decided by the whole dev team. So I put my vote on "not blindly pushing a default keybinding for invoking Flameshot". The rest can be discussed by the rest of the dev team and the consensus decision will be taken as the general stand.

mmahmoudian avatar Feb 10 '23 18:02 mmahmoudian