blob: 502888fe97a1b452c090c69ea4625cccb365a83c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#!/bin/sh
if [ ! -n "$1" ]; then
scrot -q 100 -e 'xclip -selection c -t image/png < $f; mv $f ~/Pictures/screenshots/'
fi
while [ -n "$1" ]; do # while loop starts
case "$1" in
-s)
sleep 0.2
scrot --line mode=edge -i -s -e 'xclip -selection c -t image/png < $f; mv $f ~/Pictures/screenshots/'
;;
*) echo "Option $1 not recognized" ;;
esac
shift
done
|