Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save galindro/b3881026c48a47ee69f3f4d1a9b9e0dd to your computer and use it in GitHub Desktop.
Save galindro/b3881026c48a47ee69f3f4d1a9b9e0dd to your computer and use it in GitHub Desktop.
KDE Spectacle copy screenshot to clipboard
  • sudo apt-get install xclip
  • Configure spectacle to use Rectangular Selection, default save to /some/path/Screenshot_%Y%M%D_%H%m%S
  • Configure PrintScreen for rectangular selection via custom shortcuts
  • Try it - once you select the area and hit enter it should show the pop-up notification about saved file.
  • On this notification select the settings button
  • In the notification settings enable "Run command" and set it as /usr/bin/xclip -selection clipboard -target image/png -i $(ls -1tr ~/Pictures/Screenshot_*.png | tail -n 1)
@dandv
Copy link

dandv commented Feb 12, 2021

Thanks, I was also looking for this, but now that I discovered Flameshot, goodbye xclip or Spectable or other rudimentary tools. Flameshot rocks.

@galindro
Copy link
Author

Nice. Tks to you too for the tip!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment