This commit is contained in:
ackman678
2023-09-29 00:32:44 -04:00
parent 938c4691e4
commit bf837a53f5
3 changed files with 25 additions and 20 deletions

11
.bashrc
View File

@@ -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 | '

View File

@@ -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'"

24
.vimrc
View File

@@ -229,8 +229,6 @@ nnoremap <buffer> <silent> <localleader>r :JupyterSendCell<CR>
"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<enter>
" :map V :N<enter>
" or just use :n or :N followed by the dot . cmd!
"Quick save config
imap ;s <ESC>:update<enter>
nmap ;s <ESC>:update<enter>
nmap ;q <ESC>:quit<enter>
"Quick save config with output message silencing
imap <silent> ;s <Esc>:silent:update<enter>
nmap <silent> ;s <Esc>:silent:update<enter>
nmap ;q <Esc>:quit<enter>
" imap jjw <ESC>:update<enter>
"<CR> vs <enter> and running code
"Quick mode exit config
" Two semicolons are easy to type. The `^ fixes the cursor position.
imap ;; <ESC>`^
imap ;; <Esc>`^
inoremap <Tab> <Esc>`^
" 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 <S-h> :call ToggleHiddenAll()<CR>
nnoremap <silent> <S-h> :call ToggleHiddenAll()<CR>
" Configure color
set background=dark