~mil/sxmo-utils

ref: 103a6612f3987807b1abb99621d79fb6d59ff5cb sxmo-utils/scripts/appscripts/sxmo_screenshot.sh -rwxr-xr-x 379 bytes
103a6612Stacy Harper Fix autorotation script 11 months ago
                                                                                
1
2
3
4
5
6
7
8
9
#!/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