Skip to content

Instantly share code, notes, and snippets.

@rAum
Created November 22, 2023 14:12
Show Gist options
  • Save rAum/8e25c50f63ffbb95d758e80991ca169a to your computer and use it in GitHub Desktop.
Save rAum/8e25c50f63ffbb95d758e80991ca169a to your computer and use it in GitHub Desktop.
KDE quick screenshot script
#!/bin/bash
# For KDE: Custom shortcuts -> Meta+O + add this script
A=`printf '%(%Y-%m-%d_%H_%M_%S)T'` && maim -s ~/Pictures/QScreenshot_`echo $A`.png && xclip -sel clip -t image/png -i ~/Pictures/QScreenshot_$A.png
@rAum
Copy link
Author

rAum commented Nov 27, 2024

I use this snippet to make a quick part-of-screen screenshot and save it to file, as well as put it to clipboard, which is super handy and has better UX for me than defaults.
Together with clipboard history it is super handy.

For short gif screen recording I use Peek

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