Skip to content

Commit

Permalink
feat(getclip): capture clipboard
Browse files Browse the repository at this point in the history
  • Loading branch information
vEnhance committed Jan 30, 2024
1 parent 3508050 commit aed3046
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sh-scripts/getclip.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}"

0 comments on commit aed3046

Please sign in to comment.