Skip to content

Instantly share code, notes, and snippets.

@az0mb13
Created September 5, 2022 14:42
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 az0mb13/69ec30b4749d7af242cfe2b9a43d898c to your computer and use it in GitHub Desktop.
Save az0mb13/69ec30b4749d7af242cfe2b9a43d898c to your computer and use it in GitHub Desktop.
Flameshot hack for rounded corners and shadows
#!/bin/bash
flameshot gui --raw >> /home/zombie/Pictures/flameshot/screenshot.png
convert /home/zombie/Pictures/flameshot/screenshot.png \( +clone -alpha extract -draw 'fill black polygon 0,0 0,5 5,0 fill white circle 5,5 5,0' \( +clone -flip \) -compose Multiply -composite \( +clone -flop \) -compose Multiply -composite \) -alpha off -compose CopyOpacity -composite /home/zombie/Pictures/flameshot/screenshot.png
convert /home/zombie/Pictures/flameshot/screenshot.png \( +clone -background black -shadow 75x10+0+0 \) +swap -bordercolor none -border 10 -background none -layers merge +repage /home/zombie/Pictures/flameshot/shadow.png
xclip -selection clipboard -t image/png -i /home/zombie/Pictures/flameshot/shadow.png
rm /home/zombie/Pictures/flameshot/screenshot.png /home/zombie/Pictures/flameshot/shadow.png
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment