diff --git a/.bashrc b/.bashrc index dbe9837..a3abce0 100644 --- a/.bashrc +++ b/.bashrc @@ -94,10 +94,13 @@ export FZF_CTRL_T_COMMAND="$FZF_DEFAULT_COMMAND" alias fzfcmd='fzf --bind "enter:execute($EDITOR {})"' bind -x '"\C-p": fzfcmd;' -#setup history for fzf -export HISTIGNORE="ls:cd:exit:ps:history:pass:gpg:start*" -export HISTSIZE=4096 -export HISTFILESIZE=16384 +#setup bash history +export HISTIGNORE="ls*:cd*:exit:ps*:history:pass*:gpg*:start*" +# export HISTSIZE=4096 +export HISTSIZE=-1 #make unlimited +# export HISTSIZE=0 #disable history +# export HISTFILESIZE=32768 +unset HISTFILESIZE export HISTCONTROL=ignoreboth:erasedups shopt -s histappend # export HISTTIMEFORMAT='%Y-%m-%d %H:%M:%S | ' diff --git a/.config/sway/config b/.config/sway/config index 09998f3..3e25b41 100644 --- a/.config/sway/config +++ b/.config/sway/config @@ -44,7 +44,7 @@ bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle #display brightness #bindsym XF86MonBrightnessDown exec brightnessctl set 5%- #bindsym XF86MonBrightnessUp exec brightnessctl set +5% - + # Font for window titles. Will also be used by the bar unless a different font # is used in the bar {} block below. font pango:monospace 8 @@ -290,6 +290,10 @@ bar { # Toggle between dock mode and hide mode for i3 bar bindsym $mod+Shift+b bar mode toggle +# Turn off focused window title and set minimal default border thickness +bindsym $mod+Shift+m border pixel 1 +# bindsym $mod+Shift+m border toggle + # Basic color configuration using the Base16 variables for windows and borders. # Property Name Border BG Text Indicator Child Border #client.focused $base05 $base0D $base00 $base0D $base0D @@ -304,8 +308,8 @@ bindsym $mod+Shift+b bar mode toggle # tray_output none # } -# focus windowns using only keyboard -# focus_follows_mouse no +# focus windows using only keyboard +focus_follows_mouse no #Can use the following with custom workspace save files to reload layouts #exec --no-startup-id "i3-msg 'workspace 1; append_layout ~/.config/i3/workspace-1.json'" diff --git a/.vimrc b/.vimrc index 13119e2..c4514bf 100644 --- a/.vimrc +++ b/.vimrc @@ -229,8 +229,6 @@ nnoremap r :JupyterSendCell "General vim config set title -set noshowmode -"set cmdheight=0 set tabstop=8 set softtabstop=4 set shiftwidth=4 @@ -259,27 +257,27 @@ augroup END " au BufNewFile,BufRead *.js, *.html, *.css set tabstop=2 softtabstop=2 set shiftwidth=2 expandtab -"Mouse/trackpad pointer config +"Mouse/trackpad pointer config see :help mouse " set mouse=a "already set by defaults.vim -set mouse=n -" OR try set mouse=r mouse=& +" set mouse=nv +"Disable mouse +set mouse= " Shortcuts for next or prev file like after vim *.py " :map v :n " :map V :N " or just use :n or :N followed by the dot . cmd! - -"Quick save config -imap ;s :update -nmap ;s :update -nmap ;q :quit +"Quick save config with output message silencing +imap ;s :silent:update +nmap ;s :silent:update +nmap ;q :quit " imap jjw :update " vs and running code "Quick mode exit config " Two semicolons are easy to type. The `^ fixes the cursor position. -imap ;; `^ +imap ;; `^ inoremap `^ " Just press Space to enter insert mode while in normal mode. @@ -311,7 +309,7 @@ augroup resCur autocmd BufReadPost * call setpos(".", getpos("'\"")) augroup END -" Triger `autoread` when files changes on disk +" Trigger `autoread` when files changes on disk " https://unix.stackexchange.com/questions/149209/refresh-changed-content-of-file-opened-in-vim/383044#383044 " https://vi.stackexchange.com/questions/13692/prevent-focusgained-autocmd-running-in-command-line-editing-mode autocmd FocusGained,BufEnter,CursorHold,CursorHoldI * @@ -387,7 +385,7 @@ function! ToggleHiddenAll() endif endfunction -nnoremap :call ToggleHiddenAll() +nnoremap :call ToggleHiddenAll() " Configure color set background=dark