You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
10 lines
379 B
10 lines
379 B
4 years ago
|
#!/usr/bin/env sh
|
||
|
# scrot refuses to work with double quotes
|
||
|
# shellcheck disable=SC2016
|
||
|
|
||
|
if [ "$1" = "selection" ]; then
|
||
|
notify-send "select an area" && scrot -e 'echo $f | xsel -i -b' -d 1 -s -q 1 && notify-send "screenshot saved, filename copied to clipboard"
|
||
|
else
|
||
|
scrot -e 'echo $f | xsel -i -b' -d 1 -q 1 && notify-send "screenshot saved, filename copied to clipboard"
|
||
|
fi
|