diff --git a/sh-scripts/getclip.sh b/sh-scripts/getclip.sh index 6dc677b5..fad05add 100755 --- a/sh-scripts/getclip.sh +++ b/sh-scripts/getclip.sh @@ -9,6 +9,8 @@ if [[ $contents == "qute://pdfjs/web/viewer.html?filename="* ]]; then cut -d "=" -f 2- | python -c "import urllib.parse, sys; print(urllib.parse.unquote(sys.stdin.readline()))") fi -echo "$contents" | xsel --clipboard + +mkdir -p /tmp/clipboard/ +echo "$contents" | tee "/tmp/clipboard/$(date --iso-8601=seconds)" | xsel --clipboard notify-send -u low -i "edit-paste-symbolic" "xsel --clipboard" "${contents:0:160}"