[scripts] fix: screenshot

also add header
This commit is contained in:
David JULIEN 2022-05-03 20:23:13 +02:00
parent f20223da57
commit 5d8c5ca6f4

View File

@ -1,4 +1,17 @@
#!/usr/bin/env sh #!/usr/bin/env sh
######################################################################
# @author : swytch
# @file : screenshot
# @license : GPLv3
# @created : Wednesday May 20, 2020 17:52:58 CEST
#
# @description : grab a screenshot
# @deps : scrot xclip dunstify
######################################################################
sleep .1
if [ "-w" = "$1" ]; then if [ "-w" = "$1" ]; then
scrot -e 'xclip -selection clipboard -t image/png -i $f && rm $f' scrot -e 'xclip -selection clipboard -t image/png -i $f && rm $f'
else else