Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Screenshot Hotkey #200

Open
Schneiderism opened this issue Apr 24, 2018 · 11 comments
Open

Screenshot Hotkey #200

Schneiderism opened this issue Apr 24, 2018 · 11 comments

Comments

@Schneiderism
Copy link

@Schneiderism Schneiderism commented Apr 24, 2018

Running Linux Mint, is there a way to either set a hotkey to take a screenshot, or a way to create a custom keyboard shortcut that points to the screenshot function? Sadly any applications that run in fullscreen modes make this application redundant.

@fschaap

This comment has been minimized.

Copy link

@fschaap fschaap commented May 14, 2018

I'm running Cinnamon on Manjaro, so I hope this applies 100% to Linux Mint.

What I did, because I wanted to use the 'prtscr' key to launch Flameshot is:

  1. Open System Settings
  2. Open Keyboard Settings (under Hardware)
  3. Select the 'Shortcuts' tab
  4. Under Categories open System > Screenshots and Recordings
  5. Check to which action the 'prtscr' key is bound (likely to Take a screenshot of an area or Take a screenshot... I had messed with this setting before, so I'm not quite sure)
  6. Open Custom Shortcuts
  7. Click Add custom shortcut
  8. Type 'Flameshot' in the Name field and 'flameshot gui' in the Command field (both without the enclosing apostrophies)
  9. Click Add
  10. That's it, hopefully.
@yochananmarqos

This comment has been minimized.

Copy link

@yochananmarqos yochananmarqos commented Aug 12, 2018

I tried the same thing on Manjaro Cinnamon, but it doesn't work for some reason. Running flameshot gui from the terminal with or without Flameshot running works,however.

@luucasalvesss

This comment has been minimized.

Copy link

@luucasalvesss luucasalvesss commented Aug 13, 2018

@yochananmarqos its cause DE use print screen key for default progam... try change the key printscreen in "global" put something random (link ctrl + 3 +4) , and try make what @fschaap say

im using manjaro kde and work fine
image

@yochananmarqos

This comment has been minimized.

Copy link

@yochananmarqos yochananmarqos commented Aug 13, 2018

@luucasalvesss I tried that, but it made no difference. Also I noticed none of the default keyboard shortcuts work; i.e., Alt + Print when Print is assigned to anything other than default.
screenshot from 2018-08-13-13 32 35
screenshot from 2018-08-13-13 32 52

@fschaap

This comment has been minimized.

Copy link

@fschaap fschaap commented Aug 27, 2018

I'm not sure why it is not working for you.
I would advise trying the following:

  • check if the command for your keyboard shortcut is 'flameshot gui' (without the single quotes)
  • add a random unused keyboard binding, like: ctrl+shift+7
  • test if Flameshot launches when you use that shortcut
  • if not, make the command for the shortcut '/usr/bin/flameshot' (without the single quotes)
  • if Flameshot is still not launching from the shortcut, I suppose something else is wrong on your system

However, if Flameshot is properly launching from this before unused shortcut, then you can start to get it connected to the Print-screen key. The point is, this is a bit finicky. What I have done:

  • in the above screenshot, under System > Screenshots and Recording remove all the shortcut bindings that have the 'Print' key in it
  • you can do this by double-clicking the keyboard binding
  • the keyboard-binding is now active and high-lighted
  • press the backspace key
  • the keyboard-binding now says 'unassigned'
  • doublecheck if the 'Print' button is assigned in any of the other categories
  • now go back to the Custom shortcut for Flameshot, double-click the keyboard-binding and hit the 'Print' key

I admit it is a bit finicky that you first have to unassign the other keyboard shortcuts, but this is what works for me.

@maksha

This comment has been minimized.

Copy link

@maksha maksha commented Nov 22, 2018

I'm running Cinnamon on Manjaro, so I hope this applies 100% to Linux Mint.

What I did, because I wanted to use the 'prtscr' key to launch Flameshot is:

  1. Open System Settings
  2. Open Keyboard Settings (under Hardware)
  3. Select the 'Shortcuts' tab
  4. Under Categories open System > Screenshots and Recordings
  5. Check to which action the 'prtscr' key is bound (likely to Take a screenshot of an area or Take a screenshot... I had messed with this setting before, so I'm not quite sure)
  6. Open Custom Shortcuts
  7. Click Add custom shortcut
  8. Type 'Flameshot' in the Name field and 'flameshot gui' in the Command field (both without the enclosing apostrophies)
  9. Click Add
  10. That's it, hopefully.

Following the steps from @fschaap works for me (Linux Mint 19):

image

@Faults

This comment has been minimized.

Copy link

@Faults Faults commented Apr 9, 2019

I have same issue on Ubuntu 19.04 Beta. I tried workaround, but the Gnome extension is already installed.

google-music

app indicators

@kamalhm

This comment has been minimized.

Copy link

@kamalhm kamalhm commented Jul 11, 2019

fschaap solution works perfectly, thanks!

@osagga

This comment has been minimized.

Copy link

@osagga osagga commented Jul 30, 2019

If anyone is looking for a way to do this on Ubuntu (tested on Ubuntu 19.04), here's the way that worked for me:

  • Release the PrtScr binding by this command
    gsettings set org.gnome.settings-daemon.plugins.media-keys screenshot ''
  • 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 (or wherever flameshot is, use which flameshot to see where it is)
    • Set shortcut to PrtScr (print).

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

Source: https://askubuntu.com/a/1039949

@LinuxOnTheDesktop

This comment has been minimized.

Copy link

@LinuxOnTheDesktop LinuxOnTheDesktop commented Nov 15, 2019

I am on Mint 19.2 Cinnamon. All that was necessary for me to get Flameshot to take a screenshot, whether Flameshot is running or not, was to tell Cinnamon to bind flameshot gui to a key. However, including the 'gui' bit - that is not going to occur to most people.

@evolutics

This comment has been minimized.

Copy link

@evolutics evolutics commented Dec 29, 2019

For Xubuntu users (Xfce), you can configure the Print Screen key as a Flameshot shortcut like this:

  • Via GUI: application "Keyboard" in the main menu, then tab "Application Shortcuts", where you edit the shortcut "Print" to bind it to the command flameshot gui.
  • Alternatively, via command line:
    xfconf-query --channel xfce4-keyboard-shortcuts \
      --property /commands/custom/Print \
      --create --set 'flameshot gui' --type string

I use the latter to configure my Xubuntu 18.04.3 LTS machine via Ansible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
10 participants
You can’t perform that action at this time.