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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment