8 lines
226 B
Bash
Executable file
8 lines
226 B
Bash
Executable file
#!/bin/sh
|
|
mkdir -p ${HOME}/screenshot
|
|
TARGET="${HOME}/screenshot/grab-$(date +'%Y%m%d%H%M%S').png"
|
|
maim -s -n -o -p 1 -f png -m 10 -u | tee $TARGET | xclip -selection clipboard -t image/png
|
|
|
|
[ -s ${TARGET} ] || rm ${TARGET}
|
|
|
|
|