Skip to content

Instantly share code, notes, and snippets.

@nekolinuxblog
Created January 18, 2022 10:53
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 nekolinuxblog/ad127800a4a9a6dacc062c491896540b to your computer and use it in GitHub Desktop.
Save nekolinuxblog/ad127800a4a9a6dacc062c491896540b to your computer and use it in GitHub Desktop.
maimとimage magickで影付きウインドスクリーンショット
#!/bin/sh
########################################################
# 2022/01/17
# ok.xmonad@gmail.com
# すくりーんしょっと
########################################################
output_filename=sc_window_$(date +%Y%m%d%H%M%S).png
sc_dir=${HOME}/Pictures/screenshot
maim -B -sut 9999999 | \
convert - \( +clone -background black -shadow 80x10+10+10 \) \
+swap -background none -layers merge +repage ${sc_dir}/${output_filename}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment