diff options
author | terminaldweller <thabogre@gmail.com> | 2022-12-10 07:34:35 +0000 |
---|---|---|
committer | terminaldweller <thabogre@gmail.com> | 2022-12-10 07:34:35 +0000 |
commit | af89305dfee7222bdbbdc8b9572c9c80575541ad (patch) | |
tree | 93f241e61b671d3a8224db050025f65f9caf334b /.w3m/cgi-bin | |
parent | update (diff) | |
download | scripts-af89305dfee7222bdbbdc8b9572c9c80575541ad.tar.gz scripts-af89305dfee7222bdbbdc8b9572c9c80575541ad.zip |
update
Diffstat (limited to '.w3m/cgi-bin')
-rwxr-xr-x | .w3m/cgi-bin/fzf_surfraw_tmux.cgi | 2 | ||||
-rwxr-xr-x | .w3m/cgi-bin/restore_session.cgi | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/.w3m/cgi-bin/fzf_surfraw_tmux.cgi b/.w3m/cgi-bin/fzf_surfraw_tmux.cgi index 11516fd..1c1bafb 100755 --- a/.w3m/cgi-bin/fzf_surfraw_tmux.cgi +++ b/.w3m/cgi-bin/fzf_surfraw_tmux.cgi @@ -34,7 +34,7 @@ PREFIX=$(surfraw -elvi | grep -v 'LOCAL\|GLOBAL'| fzf -e | awk '{print $1}') if [ "$PREFIX" = "" ]; then exit; fi # get user input -read -r -e -p " $PREFIX >> Enter Your Search Keyword: " INPUT +read -r " $PREFIX >> Enter Your Search Keyword: " INPUT # print proper url and copy to primary clipboard (aka highlighted clipboard) and tmux clipboard # surfraw -p "$PREFIX" "$INPUT" | xsel -p diff --git a/.w3m/cgi-bin/restore_session.cgi b/.w3m/cgi-bin/restore_session.cgi index 4e30311..2262211 100755 --- a/.w3m/cgi-bin/restore_session.cgi +++ b/.w3m/cgi-bin/restore_session.cgi @@ -29,7 +29,7 @@ mkdir -p "$HOME/.w3m/bin" RESTORE_SESSSION="$HOME/.w3m/bin/w3mlastsession" # add shell header echo "#!/usr/bin/env sh" > "$RESTORE_SESSSION" -echo "torsocks w3m -graph \\" >> "$RESTORE_SESSSION" +echo "proxychains4 -q -f ~/proxies/ice/proxychains.conf w3m -o auto_image=FALSE -graph \\" >> "$RESTORE_SESSSION" # remove dupes without sorting, add -N flag at beginning and append trailing slash to each url awk '!x[$0]++' "$HOME/.w3m/RestoreSession.txt" | while read -r line ; do echo "-N '$line' \\" >> "$RESTORE_SESSSION" ; done # echo "2>/dev/null" >> "$RESTORE_SESSSION" |