Created
January 18, 2022 10:53
-
-
Save nekolinuxblog/ad127800a4a9a6dacc062c491896540b to your computer and use it in GitHub Desktop.
maimとimage magickで影付きウインドスクリーンショット
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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