aboutsummaryrefslogtreecommitdiffstats
path: root/.w3m
diff options
context:
space:
mode:
authorterminaldweller <thabogre@gmail.com>2021-05-26 19:00:46 +0000
committerterminaldweller <thabogre@gmail.com>2021-05-26 19:00:46 +0000
commit9bb49d1352c970f666cbf44b0eec11817b2ccb4f (patch)
tree2173d672774aa6710e65a80c7ea2764be63e12c0 /.w3m
parentmerge (diff)
downloadscripts-9bb49d1352c970f666cbf44b0eec11817b2ccb4f.tar.gz
scripts-9bb49d1352c970f666cbf44b0eec11817b2ccb4f.zip
fixed the w3m script problems. now using exa. some other small stuff
Diffstat (limited to '.w3m')
-rwxr-xr-x[-rw-r--r--].w3m/build.sh2
-rwxr-xr-x.w3m/cgi-bin/goto_tmux_clipboard.cgi2
-rwxr-xr-x.w3m/cgi-bin/restore_session.cgi2
3 files changed, 3 insertions, 3 deletions
diff --git a/.w3m/build.sh b/.w3m/build.sh
index 5b68f06..cc705da 100644..100755
--- a/.w3m/build.sh
+++ b/.w3m/build.sh
@@ -2,4 +2,4 @@
set -x
set -e
-cd ~ && git clone https://github.com/tats/w3m && cd w3m && ./configure --with-ssl && sudo make install -j4
+cd ~ && git clone https://github.com/tats/w3m && cd w3m && ./configure --with-ssl --with-imagelib=imlib2 --with-termlib=terminfo && sudo make install -j4
diff --git a/.w3m/cgi-bin/goto_tmux_clipboard.cgi b/.w3m/cgi-bin/goto_tmux_clipboard.cgi
index fe91b57..591c21a 100755
--- a/.w3m/cgi-bin/goto_tmux_clipboard.cgi
+++ b/.w3m/cgi-bin/goto_tmux_clipboard.cgi
@@ -22,7 +22,7 @@
#GOTO url in clipboard in current page. If the clipboard has a
#"non url string/nothing" an blank page is shown.
-printf "%s\r\n" "W3m-control: GOTO $(tmux paste-buffer)";
+echo "W3m-control: GOTO $(tmux show-buffer)";
#delete the buffer (element in history) created between the current page and
#the searched page by calling this script.
printf "W3m-control: DELETE_PREVBUF\r\n"
diff --git a/.w3m/cgi-bin/restore_session.cgi b/.w3m/cgi-bin/restore_session.cgi
index aa0ba41..4e30311 100755
--- a/.w3m/cgi-bin/restore_session.cgi
+++ b/.w3m/cgi-bin/restore_session.cgi
@@ -32,7 +32,7 @@ echo "#!/usr/bin/env sh" > "$RESTORE_SESSSION"
echo "torsocks w3m -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"
+# echo "2>/dev/null" >> "$RESTORE_SESSSION"
chmod +x "$RESTORE_SESSSION"
## OUTPUT SCRIPT FILE EXAMPLE ~/.w3m/bin/w3mlastsession