diff options
author | June McEnroe <june@causal.agency> | 2021-02-07 18:04:58 -0500 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2021-02-07 18:07:07 -0500 |
commit | 8a637380b556760be922624584d3774c4952f8cf (patch) | |
tree | 21b1fc4c62b789d97fd52b169d021fd7a88df459 /bin/up.sh | |
parent | Enable mouse acceleration in X (diff) | |
download | src-8a637380b556760be922624584d3774c4952f8cf.tar.gz src-8a637380b556760be922624584d3774c4952f8cf.zip |
Use scrot for up -s if no screencapture
Still missing putting the URL in an X selection.
Diffstat (limited to '')
-rw-r--r-- | bin/up.sh | 6 |
1 files changed, 5 insertions, 1 deletions
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" } |