[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
1 changed files with 13 additions and 0 deletions

View File

@ -1,4 +1,17 @@
#!/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
scrot -e 'xclip -selection clipboard -t image/png -i $f && rm $f'
else