From af89305dfee7222bdbbdc8b9572c9c80575541ad Mon Sep 17 00:00:00 2001 From: terminaldweller Date: Sat, 10 Dec 2022 11:04:35 +0330 Subject: update --- .w3m/cgi-bin/fzf_surfraw_tmux.cgi | 2 +- .w3m/cgi-bin/restore_session.cgi | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to '.w3m/cgi-bin') 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" -- cgit v1.2.3