aboutsummaryrefslogtreecommitdiffstats
path: root/.w3m
diff options
context:
space:
mode:
authorterminaldweller <thabogre@gmail.com>2022-12-10 07:34:35 +0000
committerterminaldweller <thabogre@gmail.com>2022-12-10 07:34:35 +0000
commitaf89305dfee7222bdbbdc8b9572c9c80575541ad (patch)
tree93f241e61b671d3a8224db050025f65f9caf334b /.w3m
parentupdate (diff)
downloadscripts-af89305dfee7222bdbbdc8b9572c9c80575541ad.tar.gz
scripts-af89305dfee7222bdbbdc8b9572c9c80575541ad.zip
update
Diffstat (limited to '.w3m')
-rwxr-xr-x.w3m/cgi-bin/fzf_surfraw_tmux.cgi2
-rwxr-xr-x.w3m/cgi-bin/restore_session.cgi2
-rw-r--r--.w3m/keymap4
3 files changed, 4 insertions, 4 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"
diff --git a/.w3m/keymap b/.w3m/keymap
index c950b63..d45692a 100644
--- a/.w3m/keymap
+++ b/.w3m/keymap
@@ -124,8 +124,8 @@ keymap go COMMAND "SHELL /usr/lib/w3m/cgi-bin/goto_clipboard.cgi"
keymap SPC-s COMMAND "TAB_GOTO searx.terminaldweller.com"
keymap d COMMAND "EXTERN 'echo %s >> ~/.w3m/RestoreTab.txt' ; CLOSE_TAB"
-#keymap u TAB_GOTO /usr/lib/w3m/cgi-bin/restore_tab.cgi
-keymap u TAB_GOTO /home/devi/.w3m/cgi-bin/restore_tab.cgi
+keymap u TAB_GOTO /usr/lib/w3m/cgi-bin/restore_tab.cgi
+# keymap u TAB_GOTO /home/devi/.w3m/cgi-bin/restore_tab.cgi
keymap SPC-m CURSOR_MIDDLE
keymap SPC-l CURSOR_BOTTOM