mirror of
https://github.com/rywng/dotfiles.git
synced 2024-11-25 04:11:49 +08:00
84ad436aeb
boxshadow.sh: Add a tips for what this script does. grimshot-ui.sh: Move the box shadow editing part to this script. grimshot.sh: Same as above, to make the grimshot-ui a pure wrapper to this and grim, making the codebase cleaner.
14 lines
424 B
Bash
Executable File
14 lines
424 B
Bash
Executable File
#!/bin/sh
|
|
# Take $1 as input, add a box shadow, output to $2
|
|
|
|
# you can change background color here
|
|
background_color=none
|
|
|
|
convert $1 \
|
|
\( -clone 0 -background black -shadow 40x5+12+16 \) \
|
|
\( -clone 0 -background black -shadow 40x5-4-4 \) \
|
|
\( -clone 0 -background black -shadow 40x12+12-4 \) \
|
|
\( -clone 0 -background black -shadow 40x12-4+16 \) \
|
|
-reverse -background $background_color -layers merge +repage \
|
|
$2
|