add a couple scripts to bin

This commit is contained in:
Mark Riedesel 2019-07-19 16:20:03 -05:00
parent 28673aac9c
commit 2af44fe39f
2 changed files with 43 additions and 0 deletions

8
_bin/screengrab Executable file
View file

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