Skip to content

Instantly share code, notes, and snippets.

@evanslify
Last active February 18, 2019 10:11
Show Gist options
  • Save evanslify/c47e0efe9452bdb277ca6a99d65903c9 to your computer and use it in GitHub Desktop.
Save evanslify/c47e0efe9452bdb277ca6a99d65903c9 to your computer and use it in GitHub Desktop.
Take screenshot to clipboard in KDE
# Take regional screenshot
spectacle -nbr -o /dev/stdout | xclip -sel clip -t image/png && notify-send -t 2000 'Regional Screenshot Taken'
# Take full screenshot
spectacle -nbf -o /dev/stdout | xclip -sel clip -t image/png && notify-send -t 2000 'Full Screenshot Taken'
# Take screenshot of current focused window
spectacle -nba -o /dev/stdout | xclip -sel clip -t image/png && notify-send -t 2000 'Window Screenshot Taken'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment