From 4fb97347775f483958218524b98859fdfbfcb9b4 Mon Sep 17 00:00:00 2001 From: terminaldweller Date: Sun, 10 Jul 2022 18:03:46 +0430 Subject: updates --- .newsboat/urls | 1 + .tmux.conf | 1 + .vimrc | 4 ++-- .w3m/config | 14 +++++++------- .w3m/keymap | 10 +++++----- .zshrc | 7 ++++--- services/docker/run | 2 +- 7 files changed, 21 insertions(+), 18 deletions(-) diff --git a/.newsboat/urls b/.newsboat/urls index c788e78..fd81a24 100644 --- a/.newsboat/urls +++ b/.newsboat/urls @@ -3,6 +3,7 @@ http://feeds.feedburner.com/abseilio https://www.cyberciti.biz/atom/atom.xml https://www.semicolonandsons.com/feed https://blog.terminaldweller.com/rss/feed +https://suckless.org/atom.xml # (Youtube) # Horror diff --git a/.tmux.conf b/.tmux.conf index 19db849..abde695 100644 --- a/.tmux.conf +++ b/.tmux.conf @@ -84,6 +84,7 @@ bind-key ! break-pane -d -n _hidden_pane bind-key @ join-pane -s $.0 bind-key p popup -w 80% -h 80% -E xonsh +bind-key S popup -w 90% -h 90% -E env WWW_HOME=searx.terminaldweller.com /home/devi/w3m/w3m -o auto_image=FALSE -graph #to support nested tmux sessions for ssh workflows bind -T root F6 \ diff --git a/.vimrc b/.vimrc index 6032a0b..658ed37 100644 --- a/.vimrc +++ b/.vimrc @@ -207,6 +207,8 @@ Plug 'lifepillar/pgsql.vim', {'for': ['sql','pqsl', 'pgsql']} Plug 'HiPhish/info.vim' Plug 'kmonad/kmonad-vim' Plug 'MattesGroeger/vim-bookmarks' +Plug 'vim-pandoc/vim-pandoc' +Plug 'vim-pandoc/vim-pandoc-syntax' " Plug 'kana/vim-operator-user' " Plug 'terryma/vim-multiple-cursors' " Plug 'Konfekt/vim-office' @@ -218,8 +220,6 @@ Plug 'MattesGroeger/vim-bookmarks' " Plug 'tmux-plugins/vim-tmux' " Plug 'rhysd/vim-gfm-syntax' " Plug 'vim-utils/vim-troll-stopper' -" Plug 'vim-pandoc/vim-pandoc' -" Plug 'vim-pandoc/vim-pandoc-syntax' " Plug 'tmux-plugins/vim-tmux-focus-events' " Plug 'skammer/vim-css-color' " Plug 'jelera/vim-javascript-syntax' diff --git a/.w3m/config b/.w3m/config index 9d3886b..b147f5a 100644 --- a/.w3m/config +++ b/.w3m/config @@ -1,4 +1,4 @@ -tabstop 8 +tabstop 4 indent_incr 4 pixel_per_char 9 pixel_per_line 19 @@ -14,7 +14,7 @@ ext_dirlist 1 dirlist_cmd file:///$LIB/dirlist.cgi use_dictcommand 1 dictcommand file:///$LIB/w3mdict.cgi -multicol 0 +multicol 1 alt_entity 0 graphic_char 1 display_borders 1 @@ -48,7 +48,7 @@ visited_anchor 1 visited_color magenta pagerline 10000 use_history 1 -history 100 +history 1000 save_hist 1 confirm_qq 1 close_tab_back 0 @@ -76,7 +76,7 @@ index_file mime_types ~/.w3m/mime.types, /etc/mime.types mailcap ~/.w3m/mailcap, /etc/w3m/mailcap, /etc/mailcap urimethodmap ~/.w3m/urimethodmap, /etc/w3m/urimethodmap -editor /bin/vi +editor /usr/bin/vim mailto_options 1 mailer gnome-open mailto:%s extbrowser gnome-open @@ -97,7 +97,7 @@ ftppass_hostnamegen 0 pre_form_file ~/.w3m/pre_form siteconf_file ~/.w3m/siteconf user_agent Mozilla/5.0 (Windows NT 10.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.7113.93 Safari/537.36 -no_referer 0 +no_referer 1 accept_language en;q=1.0 accept_encoding gzip, compress, bzip, bzip2, deflate accept_media text/html, text/*;q=0.5, image/*, audio/*, application/* @@ -114,7 +114,7 @@ use_proxy 1 http_proxy https_proxy ftp_proxy -no_proxy +no_proxy localhost,127.0.0.0/16 noproxy_netaddr 0 no_cache 0 ssl_forbid_method @@ -124,7 +124,7 @@ ssl_key_file ssl_ca_path /etc/pki/tls/certs/ ssl_ca_file use_cookie 1 -show_cookie 0 +show_cookie 1 accept_cookie 1 accept_bad_cookie 0 cookie_reject_domains diff --git a/.w3m/keymap b/.w3m/keymap index ddd406a..f3b37a5 100644 --- a/.w3m/keymap +++ b/.w3m/keymap @@ -75,9 +75,6 @@ keymap t NEW_TAB keymap T TAB_MENU keymap d CLOSE_TAB -keymap ESC-b VIEW_BOOKMARK -keymap ESC-a ADD_BOOKMARK - # Search keymap / ISEARCH keymap ? ISEARCH_BACK @@ -95,8 +92,8 @@ keymap [ PREV_MARK keymap \" REG_MARK # bookmark operation -keymap ESC-b VIEW_BOOKMARK -keymap ESC-a ADD_BOOKMARK +keymap SPC-b VIEW_BOOKMARK +keymap SPC-a ADD_BOOKMARK # Misc operation keymap \\ MENU @@ -130,3 +127,6 @@ keymap u TAB_GOTO /usr/lib/w3m/cgi-bin/restore_tab.cgi keymap SPC-m CURSOR_MIDDLE keymap SPC-l CURSOR_BOTTOM keymap SPC-h CURSOR_TOP + +keymap xb COMMAND "SHELL ~/.w3m/cgi-bin/fzf_bookmarks.cgi ; GOTO /usr/lib/w3m/cgi-bin/goto_clipboard_primary.cgi" +keymap XB COMMAND "SHELL ~/.w3m/cgi-bin/fzf_bookmarks.cgi ; TAB_GOTO /usr/lib/w3m/cgi-bin/goto_clipboard_primary.cgi" diff --git a/.zshrc b/.zshrc index 0b71f2e..667d656 100644 --- a/.zshrc +++ b/.zshrc @@ -23,7 +23,7 @@ eval `dircolors ~/.dir_colors` unalias dr alias gd="git diff --color-words" -alias w3m="torsocks w3m -o auto_image=FALSE -graph" +alias w3m="torsocks /home/devi/w3m/w3m -o auto_image=FALSE -graph" alias rm="rm -I --one-file-system --preserve-root=all" alias vv="vim" alias ls="exa" @@ -130,7 +130,7 @@ alias jupyterlab="jupyter lab --no-browser --port 9989" alias iredisrc="vim ~/scripts/.iredisrc" alias fixiredisrc="cp ~/scripts/.iredisrc ~/.iredisrc" # alias irssi="irssi -n terminaldweller" -alias irssi="TERM=screen-256color docker run --runtime=runsc -it -e TERM -u $(id -u):$(id -g) --log-driver=none -v $HOME/.irssi:/home/user/.irssi:ro -v /etc/localtime:/etc/localtime:ro bloodstalker/irssi:latest" +alias irssi="TERM=screen-256color docker run --runtime=runc -it -e TERM -u $(id -u):$(id -g) --log-driver=none -e DBUS_SESSION_BUS_ADDRESS="$DBUS_SESSION_BUS_ADDRESS" --network=host -v $HOME/.irssi:/home/user/.irssi:ro -v /etc/localtime:/etc/localtime:ro bloodstalker/irssi:latest" alias joplinkeymap="vim ~/scripts/.config/joplin/keymap.json" alias fixjoplinkeymap="cp ~/scripts/.config/joplin/keymap.json ~/.config/joplin/keymap.json" alias postitrc="vim ~/scripts/postit" @@ -232,6 +232,7 @@ alias fixcmusrc="cp ~/scripts/.config/cmus/rc ~/.config/cmus/rc" # alias cointop="ssh -oHostKeyAlgorithms=+ssh-rsa cointop@185.112.147.110 -p 2222 -t cointop --colorscheme devi" alias zshenv="vim ~/scripts/.zshenv" alias fixzshenv="cp ~/scripts/.zshenv ~/.zshenv" +alias postman="flatpak run com.getpostman.Postman" #autosuggest ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE="fg=#5f5fff,bg=#000000,bold,underline" @@ -311,7 +312,7 @@ STARDICT_DATA_DIR="/home/devi/.stardict" export STARDICT_DATA_DIR export LIBGL_ALWAYS_INDIRECT=1 #export PULSE_SERVER=tcp:192.168.1.103 -export WWW_HOME="duckduckgo.com" +export WWW_HOME="searx.terminaldweller.com" # http://download.huzheng.org/ alias def="sdcv --color" alias defe="sdcv --color -u dictd_www.dict.org_gcide" diff --git a/services/docker/run b/services/docker/run index 77eff1a..9f41200 100755 --- a/services/docker/run +++ b/services/docker/run @@ -6,4 +6,4 @@ mountpoint -q /sys/fs/cgroup/systemd || { mount -t cgroup -o none,name=systemd cgroup /sys/fs/cgroup/systemd; } #exec env HTTP_PROXY="http://127.0.0.1:9999" chpst -o 1048576 -p 1048576 dockerd $OPTS 2>&1 -exec env NO_PROXY="localhost,127.0.0.1,192.168.1/24" HTTPS_PROXY="socks5://127.0.0.1:9996" HTTP_PROXY="socks5://127.0.0.1:9996" chpst -o 1048576 -p 1048576 dockerd $OPTS 2>&1 +exec env NO_PROXY="localhost,127.0.0.1,192.168.1/24" HTTPS_PROXY="socks5://127.0.0.1:9995" HTTP_PROXY="socks5://127.0.0.1:9995" chpst -o 1048576 -p 1048576 dockerd $OPTS 2>&1 -- cgit v1.2.3