diff options
author | luxagraf <sng@luxagraf.net> | 2023-05-31 13:58:50 -0500 |
---|---|---|
committer | luxagraf <sng@luxagraf.net> | 2023-05-31 13:58:50 -0500 |
commit | 58ed0d4b2fd7e023e0c80f623c0103cfbd6e03d6 (patch) | |
tree | 04b603bfcc33109b9dbd08c7f60f2c77688fd889 /.w3m/cgi-bin/fn_yank_current_link.cgi | |
parent | b3aa94d1f0d74fecc02e82609e78e62d3b967bab (diff) |
Added scripts and config for w3m
Diffstat (limited to '.w3m/cgi-bin/fn_yank_current_link.cgi')
-rwxr-xr-x | .w3m/cgi-bin/fn_yank_current_link.cgi | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/.w3m/cgi-bin/fn_yank_current_link.cgi b/.w3m/cgi-bin/fn_yank_current_link.cgi new file mode 100755 index 0000000..412af56 --- /dev/null +++ b/.w3m/cgi-bin/fn_yank_current_link.cgi @@ -0,0 +1,13 @@ +#!/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 |