flameshot-org / flameshot-org.github.io

Flameshot official websites & documents
https://flameshot.org
24 stars 35 forks source link

Add instructions to use global shortcut in ubuntu #112

Open arredond opened 5 years ago

arredond commented 5 years ago

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.

devnoname120 commented 5 years ago

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.
rillig commented 1 year ago

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

mmahmoudian commented 1 year ago

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/

rillig commented 1 year ago

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

mmahmoudian commented 1 year ago

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