From 9bb49d1352c970f666cbf44b0eec11817b2ccb4f Mon Sep 17 00:00:00 2001 From: terminaldweller Date: Wed, 26 May 2021 23:30:46 +0430 Subject: fixed the w3m script problems. now using exa. some other small stuff --- .w3m/build.sh | 2 +- .w3m/cgi-bin/goto_tmux_clipboard.cgi | 2 +- .w3m/cgi-bin/restore_session.cgi | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) mode change 100644 => 100755 .w3m/build.sh (limited to '.w3m') diff --git a/.w3m/build.sh b/.w3m/build.sh old mode 100644 new mode 100755 index 5b68f06..cc705da --- 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 -- cgit v1.2.3