From ecd7fe2964a210885ba6beb96ba2e1ef5895c09c Mon Sep 17 00:00:00 2001 From: June McEnroe Date: Sun, 7 Feb 2021 18:04:58 -0500 Subject: Use scrot for up -s if no screencapture Still missing putting the URL in an X selection. --- bin/up.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'bin/up.sh') diff --git a/bin/up.sh b/bin/up.sh index 562ab489..f55213d4 100644 --- a/bin/up.sh +++ b/bin/up.sh @@ -40,7 +40,11 @@ uploadHilex() { uploadScreen() { temp - screencapture -i "$@" "${temp}/capture.png" + if type screencapture >/dev/null; then + screencapture -i "$@" "${temp}/capture.png" + else + scrot -s "$@" "${temp}/capture.png" + fi pngo "${temp}/capture.png" || true upload "${temp}/capture.png" } -- cgit 1.4.1