dotfiles

Cross platform dotfiles for linux, mac and windows
git clone git@getsh.org:dotfiles.git
Log | Files | Refs

commit 022327cec3e7c174a330f8e68f34082979f4624c
parent b192b5171ab1456dc9879c7dc71341820cc769cb
Author: Bharatvaj <bharatvaj@yahoo.com>
Date:   Fri, 19 Nov 2021 04:09:48 +0530

Merge branch 'base' of github.com:bharatvaj/dotfiles into termux

Diffstat:
M.config/.gitignore | 5+++++
A.config/lynx/lynx.cfg | 12++++++++++++
A.config/lynx/lynx.lss | 87+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
M.config/sh/aliases | 2+-
A.config/tmux/tmux.conf | 42++++++++++++++++++++++++++++++++++++++++++
M.config/vim/keybindings/keybindings.vim | 1+
M.profile | 3+++
7 files changed, 151 insertions(+), 1 deletion(-)

diff --git a/.config/.gitignore b/.config/.gitignore @@ -14,4 +14,9 @@ !vim/** !X11 !wgetrc +!lynx/ +!lynx/lynx.cfg +!lynx/lynx.lss +!tmux/ +!tmux/* !user-dirs.dirs diff --git a/.config/lynx/lynx.cfg b/.config/lynx/lynx.cfg @@ -0,0 +1,12 @@ +STARTFILE:https://lite.duckduckgo.com/lite/ +VI_KEYS_ALWAYS_ON:TRUE +ACCEPT_ALL_COOKIES:TRUE +TEXTFIELDS_NEED_ACTIVATION:TRUE + +UPDATE_TERM_TITLE:TRUE +DEFAULT_EDITOR:vim +EDITOR:vim + +KEYMAP:J:DOWN_TWO +KEYMAP:K:UP_TWO +DEFAULT_KEYPAD_MODE:LINKS_AND_FIELDS_ARE_NUMBERED diff --git a/.config/lynx/lynx.lss b/.config/lynx/lynx.lss @@ -0,0 +1,87 @@ +em: bold: brightblue +strong: bold: brightred +b: bold: red +i: bold: brightblue +a: bold: green +img: dim: brown +fig: normal: gray +caption: reverse: brown +hr: normal: yellow +blockquote: normal: brightblue +ul: normal: brown +address: normal: magenta +title: normal: magenta +tt: dim: brightmagenta: black +h1: bold: yellow: blue +label: normal: magenta +q: normal: yellow: magenta +small: dim: default +big: bold: yellow +sup: bold: yellow +sub: dim: gray +li: normal: magenta +code: normal: cyan +cite: normal: cyan + +table: normal: brightcyan +tr: bold: brown +td: normal: default +br: normal: default + +alink: reverse: black: white +status: reverse: black: lightgray +alert: bold: yellow: red +whereis: reverse+underline: magenta: cyan + +menu.bg: normal: black: lightgray +menu.frame: normal: black: lightgray +menu.entry: normal: lightgray: black +menu.n: normal: red: gray +menu.active: normal: yellow: black +menu.sb: normal: brightred: lightgray + +forwbackw.arrow:reverse +hot.paste: normal: brightred: gray + +# Styles with classes - <ul class=red> etc. +ul.red: underline: brightred +ul.blue: bold: brightblue +li.red: reverse: red: yellow +li.blue: bold: blue +strong.a: bold: black: red +em.a: reverse: black: blue +strong.b: bold: white: red +em.b: reverse: white: blue +strong.debug: reverse: green +font.letter: normal: white: blue +input.submit: normal: cyan +tr.baone: bold: yellow +tr.batwo: bold: green +tr.bathree: bold: red + +# Special handling for link. +link: normal: white +link.green: bold: brightgreen +link.red: bold: black: red +link.blue: bold: white: blue +link.toc: bold: black: white + +# Special cases for link - the rel or title is appended after the class. +# <link rel=next class=red href="1"> +link.red.next: bold: red +link.red.prev: bold: yellow: red +link.blue.prev: bold: yellow: blue +link.blue.next: bold: blue +link.green.toc: bold: white: green + +# Define styles that will be used when syntax highlighting is requested +span.htmlsrc_comment:normal: white +span.htmlsrc_tag:normal: white +span.htmlsrc_attrib:normal: cyan +span.htmlsrc_attrval:normal: magenta +span.htmlsrc_abracket:normal: white +span.htmlsrc_entity:normal: white +span.htmlsrc_badseq:normal: red +span.htmlsrc_badtag:normal: red +span.htmlsrc_badattr:normal: red +span.htmlsrc_sgmlspecial:normal: yellow diff --git a/.config/sh/aliases b/.config/sh/aliases @@ -3,5 +3,5 @@ mich wget && alias wget="wget --hsts-file=\"$XDG_CACHE_HOME/wget-hsts\"" mich nvim && alias vim=nvim # ls conditioning -mich sl && alias lls=sl && alias llls=sl && alias sls=sl +mich sl && alias lls=sl && alias llls=sl && alias sls=sl && alias lsl=sl diff --git a/.config/tmux/tmux.conf b/.config/tmux/tmux.conf @@ -0,0 +1,42 @@ +# Miscellaneous +set -g base-index 1 +set escape-time 0 +set -g set-titles on + +# Status bar +set -g status-position top +set -g status-right "" + +bind v split-window -h +bind s split-window -v + +# Navigation +set-window-option -g mode-keys vi + +bind -n C-h select-pane -L +bind -n C-j select-pane -D +bind -n C-k select-pane -U +bind -n C-l select-pane -R + +bind J resize-pane -D 5 +bind K resize-pane -U 5 +bind H resize-pane -L 5 +bind L resize-pane -R 5 + +# Clipboard +unbind -T copy-mode-vi Space +unbind -T copy-mode-vi Enter + +bind -T copy-mode-vi v send-keys -X begin-selection +bind -T copy-mode-vi y send-keys -X copy-selection-and-cancel + +set-option -g mouse on +setw -g mode-keys vi +set-option -s set-clipboard off +bind P paste-buffer + +# Themes +set -g status-bg black +set -g status-fg white +set -g window-status-current-style "bg=white,fg=black" + diff --git a/.config/vim/keybindings/keybindings.vim b/.config/vim/keybindings/keybindings.vim @@ -14,6 +14,7 @@ nnoremap <Leader>v :vsplit<enter> nnoremap <Leader>s :split<enter> " Quick save and write +nnoremap <leader>wq :wq<cr> nnoremap <leader>w :w<cr> nnoremap <leader>q :q<cr> diff --git a/.profile b/.profile @@ -11,6 +11,7 @@ export GNUPGHOME="$XDG_DATA_HOME/gnupg" export VIMINIT="source $XDG_CONFIG_HOME/vim/vimrc" export LESSHISTFILE=- export LYNX_CFG="$XDG_CONFIG_HOME/lynx/lynx.cfg" +export LYNX_LSS="$XDG_CONFIG_HOME/lynx/lynx.lss" export NODE_REPL_HISTORY="$XDG_DATA_HOME"/node_repl_history export NPM_CONFIG_USERCONFIG=$XDG_CONFIG_HOME/npm/npmrc export PASSWORD_STORE_DIR="$XDG_DATA_HOME"/pass @@ -30,6 +31,8 @@ export SCREENRC="$XDG_CONFIG_HOME"/screen/screenrc export DOCKER_CONFIG="$XDG_CONFIG_HOME"/docker export MACHINE_STORAGE_PATH="$XDG_DATA_HOME"/docker-machine +export NOTMUCH_CONFIG="$XDG_CONFIG_HOME/notmuch/config" + # Local programs export NB_PATH="$XDG_DATA_HOME/notebook"