mirror of
https://github.com/gotbletu/shownotes
synced 2024-11-10 19:10:36 +00:00
14 lines
513 B
Bash
Executable File
14 lines
513 B
Bash
Executable File
#!/usr/bin/env sh
|
|
# EXTERN_LINK / $W3M_CURRENT_LINK = under cursor
|
|
# EXTERN / $W3M_URL = current page
|
|
echo "W3m-control: BACK"
|
|
url="$W3M_CURRENT_LINK"
|
|
printf "%b" "$url" > /tmp/clipbrd.txt
|
|
printf "%b" "$url" | xsel -b 2>/dev/null
|
|
printf "%b" "$url" | tmux load-buffer -
|
|
printf '%b' "$url" | wl-copy 2>/dev/null
|
|
printf '%b' "$url" | clip 2>/dev/null
|
|
printf '%b' "$url" > /dev/clipboard 2>/dev/null
|
|
printf '%b' "$url" | pbcopy 2>/dev/null
|
|
printf '%b' "$url" | termux-clipboard-set 2>/dev/null
|