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.
14 lines
245 B
14 lines
245 B
5 years ago
|
#!/bin/sh
|
||
|
|
||
|
slop=$(slop -f "%g") || exit 1
|
||
|
file="$HOME"/Pictures/screen-"$(date '+%d-%m-%y_%H:%M:%S')".png
|
||
|
|
||
|
case $1 in
|
||
|
"sel")
|
||
|
exec import -window root -silent -crop "$slop" "$file"
|
||
|
;;
|
||
|
*)
|
||
|
exec import -window root -silent "$file"
|
||
|
;;
|
||
|
esac
|