11 lines
354 B
Bash
Executable File
11 lines
354 B
Bash
Executable File
#!/usr/bin/env sh
|
|
if [ "-w" = "$1" ]; then
|
|
scrot -e 'xclip -selection clipboard -t image/png -i $f && rm $f'
|
|
else
|
|
if [ ! "" = "$1" ]; then
|
|
dunstify -u "normal" " Wrong parameter. No screenshot taken" && exit 1
|
|
else
|
|
scrot -s -e 'xclip -selection clipboard -t image/png -i $f && rm $f'
|
|
fi
|
|
fi
|