mostly vim
This commit is contained in:
parent
e2f1e4ef36
commit
21ffbcae3d
|
@ -52,7 +52,7 @@ secondary = #dddddd
|
||||||
alert = #bd2c40
|
alert = #bd2c40
|
||||||
|
|
||||||
[bar/main]
|
[bar/main]
|
||||||
monitor = ${env:MONITOR:HDMI-0}
|
monitor = ${env:MONITOR:HDMI-2}
|
||||||
width = 100%
|
width = 100%
|
||||||
height = 27
|
height = 27
|
||||||
;offset-x = 1%
|
;offset-x = 1%
|
||||||
|
@ -192,29 +192,28 @@ format-prefix-foreground = ${colors.foreground-alt}
|
||||||
type = internal/network
|
type = internal/network
|
||||||
interface = wlan0
|
interface = wlan0
|
||||||
interval = 10
|
interval = 10
|
||||||
label-connected = SSID: %essid% %signal%% %local_ip%
|
label-connected = %essid% %signal%% %local_ip%
|
||||||
format-background = #444444
|
format-background = #444444
|
||||||
format-prefix =
|
format-connected-prefix =
|
||||||
format-prefix-foreground = ${colors.foreground-alt}
|
format-connected-prefix-foreground = ${colors.foreground-alt}
|
||||||
|
|
||||||
[module/weather]
|
[module/weather]
|
||||||
type = custom/script
|
type = custom/script
|
||||||
exec = ~/.scripts/i3_weather.sh
|
exec = ~/scripts/i3_weather.sh
|
||||||
interval = 3600
|
interval = 3600
|
||||||
click-left = alacritty --hold -e curl -Ss http://wttr.in
|
click-left = alacritty --hold -e curl -Ss http://wttr.in
|
||||||
format-prefix = W
|
|
||||||
format-prefix-foreground = ${colors.foreground-alt}
|
format-prefix-foreground = ${colors.foreground-alt}
|
||||||
|
|
||||||
[module/finance]
|
[module/finance]
|
||||||
type = custom/script
|
type = custom/script
|
||||||
format-prefix = " "
|
format-prefix = " "
|
||||||
exec = ~/.scripts/i3_finance.sh
|
exec = ~/scripts/i3_finance.sh
|
||||||
format-prefix-foreground = ${colors.foreground-alt}
|
format-prefix-foreground = ${colors.foreground-alt}
|
||||||
interval = 3600
|
interval = 3600
|
||||||
|
|
||||||
[module/pacman]
|
[module/pacman]
|
||||||
type = custom/script
|
type = custom/script
|
||||||
exec = ~/.scripts/i3_pacman.sh
|
exec = ~/scripts/i3_pacman.sh
|
||||||
interval = 3600
|
interval = 3600
|
||||||
click-left = [[ $(checkupdates | wc -l) -gt 0 ]] && alacritty --hold -e checkupdates
|
click-left = [[ $(checkupdates | wc -l) -gt 0 ]] && alacritty --hold -e checkupdates
|
||||||
format-prefix =
|
format-prefix =
|
||||||
|
|
20
vimrc/.vimrc
20
vimrc/.vimrc
|
@ -5,7 +5,8 @@ filetype indent plugin on
|
||||||
syntax on
|
syntax on
|
||||||
|
|
||||||
" Add number rows
|
" Add number rows
|
||||||
set number
|
set relativenumber
|
||||||
|
set scrolloff=999
|
||||||
|
|
||||||
" No swap file
|
" No swap file
|
||||||
set noswapfile
|
set noswapfile
|
||||||
|
@ -33,7 +34,8 @@ map <S-Enter> O<ESC>
|
||||||
|
|
||||||
" Folding (move to python specific vim file?)
|
" Folding (move to python specific vim file?)
|
||||||
set foldmethod=indent
|
set foldmethod=indent
|
||||||
set foldnestmax=2
|
set foldnestmax=99
|
||||||
|
set foldlevelstart=99
|
||||||
nnoremap <space> za
|
nnoremap <space> za
|
||||||
vnoremap <space> zf
|
vnoremap <space> zf
|
||||||
|
|
||||||
|
@ -56,3 +58,17 @@ map <F2> :wq<CR>
|
||||||
|
|
||||||
" Lint
|
" Lint
|
||||||
autocmd FileType python map <buffer> gl :w<CR>:exec '!python -m black' shellescape(@%, 1)<CR>
|
autocmd FileType python map <buffer> gl :w<CR>:exec '!python -m black' shellescape(@%, 1)<CR>
|
||||||
|
|
||||||
|
" Automatically open NERDTree
|
||||||
|
autocmd VimEnter * NERDTree | wincmd p
|
||||||
|
|
||||||
|
" Exit Vim if NERDTree is the only window remaining in the only tab.
|
||||||
|
autocmd BufEnter * if tabpagenr('$') == 1 && winnr('$') == 1 && exists('b:NERDTree') && b:NERDTree.isTabTree() | quit | endif
|
||||||
|
|
||||||
|
|
||||||
|
" If another buffer tries to replace NERDTree, put it in the other window, and bring back NERDTree.
|
||||||
|
autocmd BufEnter * if bufname('#') =~ 'NERD_tree_\d\+' && bufname('%') !~ 'NERD_tree_\d\+' && winnr('$') > 1 |
|
||||||
|
\ let buf=bufnr() | buffer# | execute "normal! \<C-W>w" | execute 'buffer'.buf | endif
|
||||||
|
|
||||||
|
" Open the existing NERDTree on each new tab.
|
||||||
|
autocmd BufWinEnter * if getcmdwintype() == '' | silent NERDTreeMirror | endif
|
||||||
|
|
|
@ -13,6 +13,7 @@ alias more="less"
|
||||||
alias weather="curl wttr.in"
|
alias weather="curl wttr.in"
|
||||||
alias ls="exa -lhg --group-directories-first"
|
alias ls="exa -lhg --group-directories-first"
|
||||||
alias ll="exa -lhga --group-directories-first"
|
alias ll="exa -lhga --group-directories-first"
|
||||||
|
alias vim="nvim"
|
||||||
|
|
||||||
# path
|
# path
|
||||||
export PATH=/home/clint/.scripts/:$PATH
|
export PATH=/home/clint/.scripts/:$PATH
|
||||||
|
@ -35,6 +36,7 @@ setopt HIST_IGNORE_DUPS
|
||||||
bindkey '^R' history-incremental-search-backward
|
bindkey '^R' history-incremental-search-backward
|
||||||
# setopt share_history
|
# setopt share_history
|
||||||
|
|
||||||
|
|
||||||
# auto complete
|
# auto complete
|
||||||
autoload -Uz compinit
|
autoload -Uz compinit
|
||||||
compinit
|
compinit
|
||||||
|
@ -51,3 +53,6 @@ source /usr/share/zsh-theme-powerlevel10k/powerlevel10k.zsh-theme
|
||||||
setopt auto_cd
|
setopt auto_cd
|
||||||
|
|
||||||
pfetch
|
pfetch
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue