From 0dbf15a8f39ef8f6f5a2034c03be6c78e3ef5879 Mon Sep 17 00:00:00 2001 From: jon Date: Sat, 12 Mar 2022 15:50:30 -0600 Subject: [PATCH 1/6] stupid bell --- bash/.bashrc | 1 + 1 file changed, 1 insertion(+) diff --git a/bash/.bashrc b/bash/.bashrc index bd1f245..24158e9 100644 --- a/bash/.bashrc +++ b/bash/.bashrc @@ -174,3 +174,4 @@ ex() { } # turn off incredibly annoying bell +xset b off From 84976a7eb491caf252cf490024d9b7370fd2588b Mon Sep 17 00:00:00 2001 From: jon Date: Sat, 4 Jun 2022 11:17:05 -0500 Subject: [PATCH 2/6] Adjusted rxvt transparency slightly, added mouse scrolling to vim --- vim/.vimrc | 2 ++ x/.Xresources | 3 +-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/vim/.vimrc b/vim/.vimrc index 46d68fd..9558f33 100644 --- a/vim/.vimrc +++ b/vim/.vimrc @@ -19,6 +19,8 @@ set smartcase " share system clipboard set clipboard^=unnamed,unnamedplus +" mouse stuff +set mouse=a " hide showmode because its in statusline set noshowmode diff --git a/x/.Xresources b/x/.Xresources index 5c19466..f107bd2 100644 --- a/x/.Xresources +++ b/x/.Xresources @@ -9,9 +9,8 @@ URxvt.cursorUnderline: 1 !!! Real transparency (compositing) URxvt.depth: 32 -URxvt.background: rgba:0000/0000/0000/eeee !URxvt*background: rgba:0000/0000/0200/c800 -!URxvt.background: rgba:1111/1111/1111/dddd +URxvt*background: rgba:0000/0000/0200/EA60 URxvt*perl-ext-common: default,matcher URxvt*matcher.button: 1 From 9da567f19ffc8155f04290ebc489fbe6b3611df4 Mon Sep 17 00:00:00 2001 From: jon Date: Thu, 23 Jun 2022 08:17:29 -0500 Subject: [PATCH 3/6] Turn off terminal bell, increase rxvt scrollback --- bash/.bashrc | 4 ++-- x/.Xresources | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/bash/.bashrc b/bash/.bashrc index 24158e9..56a6e3e 100644 --- a/bash/.bashrc +++ b/bash/.bashrc @@ -31,7 +31,7 @@ alias s='sudo' alias df='sudo df -hT -x tmpfs -x devtmpfs' alias rsync='rsync --progress' -bind 'set completion-ignore-case on' +#bind 'set completion-ignore-case on' set bell-style none ## function and alias for short find @@ -174,4 +174,4 @@ ex() { } # turn off incredibly annoying bell -xset b off +#xset b off diff --git a/x/.Xresources b/x/.Xresources index f107bd2..78a799b 100644 --- a/x/.Xresources +++ b/x/.Xresources @@ -20,6 +20,9 @@ URxvt*internalBorder: 20 ! URxvt.blurRadius: 25 URxvt*.termName: rxvt-unicode-256color +! set scrollback for rxvt +URxvt.saveLines: 100000 + ! special *.foreground: #c5c8c6 *.background: #222222 From 3cea4a857bb8caf7128d1dadbd411e5bd59a8577 Mon Sep 17 00:00:00 2001 From: jon Date: Thu, 23 Jun 2022 08:18:43 -0500 Subject: [PATCH 4/6] Added stopwatch function to bashrc --- bash/.bashrc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bash/.bashrc b/bash/.bashrc index 56a6e3e..c635a7b 100644 --- a/bash/.bashrc +++ b/bash/.bashrc @@ -106,6 +106,11 @@ if [ -f /usr/share/fzf/shell/key-bindings.bash ]; then source /usr/share/fzf/shell/key-bindings.bash fi +#this is a stopwatch function, call with: $ stopwatch +stopwatch () { + date1=`date +%s`; while true; do echo -ne "$(date -u --date @$((`date +%s` - $date1)) +%H:%M:%S)\r"; done +} + n () { # Block nesting of nnn in subshells From bd33f3ea9de28cef51388787f832c13716d68c56 Mon Sep 17 00:00:00 2001 From: jon Date: Sat, 2 Jul 2022 14:43:08 -0500 Subject: [PATCH 5/6] Added kitty term config, set vim to vimx if it exists --- bash/.bashrc | 2 ++ tmux/.tmux.conf | 1 + 2 files changed, 3 insertions(+) diff --git a/bash/.bashrc b/bash/.bashrc index c635a7b..4653245 100644 --- a/bash/.bashrc +++ b/bash/.bashrc @@ -56,10 +56,12 @@ export PATH=$GOPATH:$GOPATH/bin:$PATH # use vimx if available (for clipboard support) if [ -f "/usr/bin/vimx" ]; then export EDITOR=/usr/bin/vimx + alias vim=/usr/bin/vimx else export EDITOR=/usr/bin/vim fi + # so stupid, systemd ignores EDITOR and requires its own env variable # just set it to whatever editor is export SYSTEMD_EDITOR=$EDITOR diff --git a/tmux/.tmux.conf b/tmux/.tmux.conf index a9fb878..57b1642 100644 --- a/tmux/.tmux.conf +++ b/tmux/.tmux.conf @@ -1,4 +1,5 @@ set -g default-terminal screen-256color +#set-option -sa terminal-overrides ",xterm-kitty:RGB" #remove escape delay set -s escape-time 0 From 2839131f9faedb59031ae57e47997780a272f098 Mon Sep 17 00:00:00 2001 From: jon Date: Sat, 16 Jul 2022 09:07:48 -0500 Subject: [PATCH 6/6] Added timer bash function, added vim-rsi for readline shortcuts, added movement keys in insert mode to vim --- bash/.bashrc | 10 ++++++++++ vim/.vimrc | 11 +++++++++++ 2 files changed, 21 insertions(+) diff --git a/bash/.bashrc b/bash/.bashrc index 4653245..1e49509 100644 --- a/bash/.bashrc +++ b/bash/.bashrc @@ -113,6 +113,16 @@ stopwatch () { date1=`date +%s`; while true; do echo -ne "$(date -u --date @$((`date +%s` - $date1)) +%H:%M:%S)\r"; done } +timer() { + start="$(( $(date '+%s') + $1))" + while [ $start -ge $(date +%s) ]; do + time="$(( $start - $(date +%s) ))" + printf '%s\r' "$(date -u -d "@$time" +%H:%M:%S)" + sleep 0.1 + done + notify-send "Timer Finished" "Timer Finished - $1 seconds elapsed" +} + n () { # Block nesting of nnn in subshells diff --git a/vim/.vimrc b/vim/.vimrc index 9558f33..e760d4d 100644 --- a/vim/.vimrc +++ b/vim/.vimrc @@ -34,6 +34,16 @@ set textwidth=79 set shiftwidth=4 set fileformat=unix +" move in insert mode +inoremap +inoremap +inoremap +inoremap +cnoremap +cnoremap +cnoremap +cnoremap + "highlight cursorline cterm=none ctermbg=darkred ctermfg=white guibg=darkred guifg=white hi cursorline cterm=none term=none ctermbg=236 set cursorline @@ -123,6 +133,7 @@ Plug 'junegunn/goyo.vim' Plug 'junegunn/fzf.vim' Plug 'scrooloose/nerdtree' Plug 'chrisbra/Colorizer' +Plug 'tpope/vim-rsi' " Colors Plug 'arzg/vim-substrata'