Skip to content

Instantly share code, notes, and snippets.

View galindro's full-sized avatar

Bruno Galindro da Costa galindro

  • Navinfo Europe
  • Eindhoven, Netherlands
View GitHub Profile
@galindro
galindro / gist:b3881026c48a47ee69f3f4d1a9b9e0dd
Created September 4, 2018 14:01 — forked from Xarkam/KDE Spectacle copy screenshot to clipboard.md
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)