dotfiles

My personal shell configs and stuff
git clone git://git.alex.balgavy.eu/dotfiles.git
Log | Files | Refs | Submodules | README | LICENSE

commit a605fa3b220d8e964e14a4144b22d382cd53c7f4
parent 6d59e9d561689cc925ec9b97933f6e518253a531
Author: Alex Balgavy <alex@balgavy.eu>
Date:   Sun, 20 Jun 2021 00:21:28 +0200

w3m: configure cgi-bin scripts

Diffstat:
Msurfraw/elvi/reddit | 8++++----
Mw3m/config | 4++--
Mw3m/keymap | 4+++-
3 files changed, 9 insertions(+), 7 deletions(-)

diff --git a/surfraw/elvi/reddit b/surfraw/elvi/reddit @@ -4,14 +4,14 @@ # DATE: April 07, 2013 # # DESC: Elvi to search Reddit News -# elvis: reddit -- Search Reddit for user submitted news (www.reddit.com) +# elvis: reddit -- Search Reddit for user submitted news (old.reddit.com) . surfraw || exit 1 w3_usage_hook () { cat <<EOF Usage: $w3_argv0 [options] [search words]... Description: - Search Reddit (www.reddit.com) for user submitted news + Search Reddit (old.reddit.com) for user submitted news EOF w3_global_usage } @@ -19,8 +19,8 @@ EOF w3_config w3_parse_args "$@" if test -z "$w3_args"; then - w3_browse_url "http://www.reddit.com" + w3_browse_url "http://old.reddit.com" else escaped_args=`w3_url_of_arg $w3_args` - w3_browse_url "http://www.reddit.com/search?q=${escaped_args}" + w3_browse_url "http://old.reddit.com/search?q=${escaped_args}" fi diff --git a/w3m/config b/w3m/config @@ -63,7 +63,7 @@ preserve_timestamp 1 keymap_file ~/.config/w3m/keymap document_root personal_document_root -cgi_bin +cgi_bin ~/.config/w3m/cgi-bin index_file mime_types ~/.mime.types, /usr/local/Cellar/w3m/0.5.3_6/etc/mime.types mailcap ~/.config/mailcap, /usr/local/Cellar/w3m/0.5.3_6/etc/w3m/mailcap @@ -95,7 +95,7 @@ accept_encoding gzip, compress, bzip, bzip2, deflate accept_media text/html, text/*;q=0.5, image/*, video/* argv_is_url 1 retry_http 1 -default_url 1 +default_url 0 follow_redirection 10 meta_refresh 0 dns_order 4 diff --git a/w3m/keymap b/w3m/keymap @@ -24,13 +24,14 @@ keymap C-u PREV_HALF_PAGE # Misc keymap H BACK keymap ~ GOTO_HOME # specified in $WWW_HOME -keymap M-f GOTO https://search.alex.balgavy.eu keymap C-l REDRAW keymap s PRINT keymap S DOWNLOAD keymap ";" COMMAND keymap e EXTERN_LINK keymap ] EXTERN +keymap M-e COMMAND 'SET_OPTION default_url=1 ; GOTO ; SET_OPTION default_url=0' +keymap M-f COMMAND 'SHELL ~/.config/w3m/cgi-bin/get-query.cgi ; GOTO /cgi-bin/searx-query.cgi' # Menus keymap M-h HISTORY @@ -67,6 +68,7 @@ keymap SPCc EXEC_SHELL 'printf "%s" $W3M_URL | clc' keymap SPCs EXEC_SHELL 'pocket save $W3M_URL' keymap SPCl EXEC_SHELL 'pocket save $W3M_CURRENT_LINK' keymap SPCv EXEC_SHELL 'linkhandler "$W3M_CURRENT_LINK"' +keymap xs COMMAND 'EXEC_SHELL ~/.config/w3m/cgi-bin/surfraw.cgi ; GOTO /cgi-bin/goto-target-url.cgi' # ABORT Quit at once # ACCESSKEY Pop up accesskey menu