Update Vim, NZXT wifi i3block
This commit is contained in:
@@ -103,6 +103,7 @@ abbr shrm "shred-rm"
|
|||||||
abbr thes "thesaurus"
|
abbr thes "thesaurus"
|
||||||
abbr ut "unix-timestamp"
|
abbr ut "unix-timestamp"
|
||||||
abbr uzr "unzip-rm"
|
abbr uzr "unzip-rm"
|
||||||
|
abbr vsnp "vim-snippet"
|
||||||
abbr fvft "find-vim-filetype"
|
abbr fvft "find-vim-filetype"
|
||||||
|
|
||||||
# ]]] fxn abbr's #
|
# ]]] fxn abbr's #
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
function vsnp
|
function vim-snippet
|
||||||
set snips_dir "/home/kevin/.vim/plugged/vim-snippets/UltiSnips"
|
set snips_dir "/home/kevin/.vim/plugged/vim-snippets/UltiSnips"
|
||||||
$EDITOR $snips_dir/$argv[1].snippets
|
$EDITOR $snips_dir/$argv[1].snippets
|
||||||
end
|
end
|
||||||
@@ -1,15 +1,19 @@
|
|||||||
# startup [[[ #
|
# startup [[[ #
|
||||||
|
|
||||||
|
set $term urxvt
|
||||||
|
set $term_alt st
|
||||||
|
# set $term st
|
||||||
|
# set $term_alt urxvt
|
||||||
{{ if eq .chezmoi.fullHostname "x1-carbon" }}
|
{{ if eq .chezmoi.fullHostname "x1-carbon" }}
|
||||||
exec dunst
|
exec dunst
|
||||||
exec compton
|
exec compton
|
||||||
exec imwheel
|
exec imwheel
|
||||||
exec numlockx on
|
xec numlockx on
|
||||||
exec xbacklight -set 10
|
exec xbacklight -set 10
|
||||||
# exec wal -i "$(/home/kevin/scripts/shuffler \"/home/kevin/Pictures/Backgrounds/dim/non-editing\")"
|
# exec wal -i "$(/home/kevin/scripts/shuffler \"/home/kevin/Pictures/Backgrounds/dim/non-editing\")"
|
||||||
exec wal -i $(/home/kevin/scripts/shuffler "$HOME/Pictures/Backgrounds/dim/non-editing")
|
exec wal -i $(/home/kevin/scripts/shuffler "$HOME/Pictures/Backgrounds/dim/non-editing")
|
||||||
{{ end }}
|
{{ end }}
|
||||||
exec --no-startup-id i3-msg 'workspace $ws2; exec $term'
|
# exec --no-startup-id i3-msg 'workspace $ws2; exec $term'
|
||||||
exec --no-startup-id i3-msg 'workspace $ws3; exec $browser'
|
exec --no-startup-id i3-msg 'workspace $ws3; exec $browser'
|
||||||
|
|
||||||
# ]]] startup #
|
# ]]] startup #
|
||||||
@@ -19,10 +23,6 @@ exec --no-startup-id i3-msg 'workspace $ws3; exec $browser'
|
|||||||
set $mod Mod1
|
set $mod Mod1
|
||||||
set $browser "firefox"
|
set $browser "firefox"
|
||||||
# set $browser "chromium"
|
# set $browser "chromium"
|
||||||
# set $term st
|
|
||||||
# set $term_alt urxvt
|
|
||||||
set $term urxvt
|
|
||||||
set $term_alt st
|
|
||||||
set $scripts_path "/home/kevin/scripts"
|
set $scripts_path "/home/kevin/scripts"
|
||||||
set $sch_dir "$HOME/Documents/School"
|
set $sch_dir "$HOME/Documents/School"
|
||||||
|
|
||||||
|
|||||||
@@ -68,6 +68,11 @@ WIDTH=220
|
|||||||
# sys.monitoring [[[ #
|
# sys.monitoring [[[ #
|
||||||
|
|
||||||
{{ if eq .chezmoi.fullHostname "nzxt" }}
|
{{ if eq .chezmoi.fullHostname "nzxt" }}
|
||||||
|
[wifi]
|
||||||
|
label=
|
||||||
|
instance=wlp4s0
|
||||||
|
interval=10
|
||||||
|
|
||||||
[temperature]
|
[temperature]
|
||||||
label=
|
label=
|
||||||
interval=5
|
interval=5
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ INTERFACE="${BLOCK_INSTANCE:-wlan0}"
|
|||||||
|
|
||||||
#------------------------------------------------------------------------
|
#------------------------------------------------------------------------
|
||||||
|
|
||||||
QUALITY=$(grep $INTERFACE /proc/net/wireless | awk '{ print int($3 * 100 / 70) }')
|
QUALITY=$(sudo grep $INTERFACE /proc/net/wireless | awk '{ print int($3 * 100 / 70) }')
|
||||||
# echo $QUALITY
|
# echo $QUALITY
|
||||||
W_inter=$(ip link | grep "[1-9]: wlp" | cut -d " " -f2 | tr -d ':')
|
W_inter=$(ip link | grep "[1-9]: wlp" | cut -d " " -f2 | tr -d ':')
|
||||||
W_name=$(nmcli d | grep "$W_inter" | awk '{print $4}')
|
W_name=$(nmcli d | grep "$W_inter" | awk '{print $4}')
|
||||||
|
|||||||
3
dot_config/mpv/mpv.conf
Normal file
3
dot_config/mpv/mpv.conf
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
sub-auto=fuzzy
|
||||||
|
ytdl-format=best
|
||||||
|
ytdl-raw-options=sub-format=en,write-srt=
|
||||||
@@ -30,7 +30,8 @@ set tw=75
|
|||||||
set undodir=~/.vim/undo
|
set undodir=~/.vim/undo
|
||||||
set undofile
|
set undofile
|
||||||
" set updatetime=1000
|
" set updatetime=1000
|
||||||
set updatetime=500
|
" set updatetime=500
|
||||||
|
set updatetime=0
|
||||||
|
|
||||||
autocmd VimResized * wincmd =
|
autocmd VimResized * wincmd =
|
||||||
filetype plugin on
|
filetype plugin on
|
||||||
@@ -58,6 +59,7 @@ autocmd FileType *css,htmldjango,html,javascript,json,markdown,tex,text,yaml set
|
|||||||
" autocmd Filetype html set foldmarker=0
|
" autocmd Filetype html set foldmarker=0
|
||||||
autocmd BufNewFile,BufRead *.gd set expandtab!
|
autocmd BufNewFile,BufRead *.gd set expandtab!
|
||||||
autocmd Filetype go set expandtab! sw=4
|
autocmd Filetype go set expandtab! sw=4
|
||||||
|
autocmd Filetype markdown set commentstring=<!---\ %s\ -->
|
||||||
autocmd Filetype markdown map <F8> :LivedownToggle<CR>
|
autocmd Filetype markdown map <F8> :LivedownToggle<CR>
|
||||||
autocmd Filetype markdown nnoremap <Tab> <Esc>>>A
|
autocmd Filetype markdown nnoremap <Tab> <Esc>>>A
|
||||||
autocmd Filetype markdown inoremap <S-Tab> <Esc><<A
|
autocmd Filetype markdown inoremap <S-Tab> <Esc><<A
|
||||||
@@ -140,13 +142,16 @@ Plug '907th/vim-auto-save'
|
|||||||
Plug 'lervag/vimtex'
|
Plug 'lervag/vimtex'
|
||||||
" au BufWritePost *.tex silent call Tex_RunLaTeX()
|
" au BufWritePost *.tex silent call Tex_RunLaTeX()
|
||||||
au BufWritePost *.tex silent !pkill -USR1 xdvi.bin
|
au BufWritePost *.tex silent !pkill -USR1 xdvi.bin
|
||||||
|
let g:Tex_MultipleCompileFormats = 'dvi,pdf'
|
||||||
let g:vimtex_view_general_viewer = 'zathura'
|
let g:vimtex_view_general_viewer = 'zathura'
|
||||||
let g:vimtex_quickfix_latexlog = {
|
let g:vimtex_quickfix_latexlog = {
|
||||||
\ 'overfull' : 0,
|
\ 'overfull' : 0,
|
||||||
\ 'underfull' : 0,
|
\ 'underfull' : 0,
|
||||||
\ 'global' : 0,
|
\ 'global' : 0,
|
||||||
|
\ 'references' : 0,
|
||||||
\ 'unused' : 0,
|
\ 'unused' : 0,
|
||||||
\}
|
\}
|
||||||
|
let g:vimtex_quickfix_autoclose_after_keystrokes = 5
|
||||||
" let g:vimtex_compiler_latexmk = {
|
" let g:vimtex_compiler_latexmk = {
|
||||||
" \ 'continuous' : 0,
|
" \ 'continuous' : 0,
|
||||||
" \}
|
" \}
|
||||||
@@ -256,13 +261,21 @@ call plug#end()
|
|||||||
" colorscheme gotham256
|
" colorscheme gotham256
|
||||||
colorscheme wal
|
colorscheme wal
|
||||||
|
|
||||||
nnoremap Q @@
|
" normal mappings [[[ "
|
||||||
|
|
||||||
nnoremap v <C-V>
|
nnoremap v <C-V>
|
||||||
|
nnoremap Q @@
|
||||||
|
|
||||||
|
" folds
|
||||||
|
nnoremap , za
|
||||||
|
|
||||||
|
" indenting
|
||||||
nnoremap > >>
|
nnoremap > >>
|
||||||
nnoremap < <<
|
nnoremap < <<
|
||||||
inoremap << <Esc><<A
|
inoremap << <Esc><<A
|
||||||
|
|
||||||
|
" ]]] normal mappings "
|
||||||
|
|
||||||
" leader mappings [[[ "
|
" leader mappings [[[ "
|
||||||
let mapleader="\<Space>"
|
let mapleader="\<Space>"
|
||||||
|
|
||||||
@@ -274,8 +287,10 @@ nnoremap <leader>c c$
|
|||||||
nnoremap <leader>d d$
|
nnoremap <leader>d d$
|
||||||
" delete entire buffer
|
" delete entire buffer
|
||||||
nnoremap <leader>dg ggdG
|
nnoremap <leader>dg ggdG
|
||||||
|
" delete entire line
|
||||||
|
nnoremap <leader>dl 0d$
|
||||||
" delete lines matching pattern
|
" delete lines matching pattern
|
||||||
nnoremap <leader>dl :g//d<left><left>
|
nnoremap <leader>dls :g//d<left><left>
|
||||||
" show docstring for cur word
|
" show docstring for cur word
|
||||||
nnoremap <leader>do :YcmCompleter GetDoc<CR>
|
nnoremap <leader>do :YcmCompleter GetDoc<CR>
|
||||||
" delete line into system clipboard
|
" delete line into system clipboard
|
||||||
@@ -291,8 +306,9 @@ nnoremap <leader>fmi :set foldmethod=indent<CR> zM
|
|||||||
nnoremap <leader>fmm :set foldmethod=marker<CR> zM
|
nnoremap <leader>fmm :set foldmethod=marker<CR> zM
|
||||||
" add marker foldmethod modeline
|
" add marker foldmethod modeline
|
||||||
nnoremap <leader>fi :YcmCompleter FixIt<CR>
|
nnoremap <leader>fi :YcmCompleter FixIt<CR>
|
||||||
" find copied text
|
" check filetype
|
||||||
nnoremap <leader>ft :se ft?
|
nnoremap <leader>ft :se ft?<CR>
|
||||||
|
" check todo's
|
||||||
nnoremap <leader>ftd /TODO<CR>
|
nnoremap <leader>ftd /TODO<CR>
|
||||||
nnoremap <leader>g :YcmCompleter GoTo<CR>
|
nnoremap <leader>g :YcmCompleter GoTo<CR>
|
||||||
" vimdiff split
|
" vimdiff split
|
||||||
@@ -317,6 +333,8 @@ vnoremap <leader>n q:anorm
|
|||||||
nnoremap <leader>nw :set nowrap<CR>
|
nnoremap <leader>nw :set nowrap<CR>
|
||||||
" check if in neovim
|
" check if in neovim
|
||||||
nnoremap <leader>nv :echo has('nvim')<CR>
|
nnoremap <leader>nv :echo has('nvim')<CR>
|
||||||
|
" open fold recursively
|
||||||
|
nnoremap <leader>o zO
|
||||||
" Plug commands
|
" Plug commands
|
||||||
nnoremap <leader>p "*p
|
nnoremap <leader>p "*p
|
||||||
nnoremap <leader>pli :PlugInstall<CR>
|
nnoremap <leader>pli :PlugInstall<CR>
|
||||||
|
|||||||
@@ -159,7 +159,8 @@ xya "yay -Qqne > ~/{{ .chezmoi.os }}-config/txt/{{ .chezmoi.fullHostname }}-pkgs
|
|||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
py "python"
|
py "python"
|
||||||
pyt "python -m unittest"
|
pyt "pytest -vv"
|
||||||
|
pyu "python -m unittest"
|
||||||
pipi "pip install"
|
pipi "pip install"
|
||||||
spipi "sudo pip install"
|
spipi "sudo pip install"
|
||||||
|
|
||||||
@@ -206,6 +207,7 @@ r "ranger"
|
|||||||
rg "printf '\033c' && rg"
|
rg "printf '\033c' && rg"
|
||||||
rx "redshift -x"
|
rx "redshift -x"
|
||||||
sn "sudo nvim"
|
sn "sudo nvim"
|
||||||
|
sw "swex"
|
||||||
vmd "vimdiff"
|
vmd "vimdiff"
|
||||||
wg "wego"
|
wg "wego"
|
||||||
wp "grep wallpaper ~/.cache/wal/colors.sh"
|
wp "grep wallpaper ~/.cache/wal/colors.sh"
|
||||||
@@ -493,7 +495,7 @@ ssc "ssh mokkar@teach.cs.utoronto.ca"
|
|||||||
jc "javac -d out *.java"
|
jc "javac -d out *.java"
|
||||||
jr "java -cp \"$CLASSPATH:out\""
|
jr "java -cp \"$CLASSPATH:out\""
|
||||||
|
|
||||||
wl2 "watson log --all --project=263 --tag=a2"
|
wl6 "watson log --all --project=263 --tag=a3"
|
||||||
wr2 "watson report --all --project=263 --tag=a2"
|
wr6 "watson report --all --project=263 --tag=a3"
|
||||||
|
|
||||||
# ]]] school #
|
# ]]] school #
|
||||||
|
|||||||
@@ -49,6 +49,7 @@ mh ~/coding/mf-site/layouts
|
|||||||
snp ~/.vim/plugged/vim-snippets/UltiSnips
|
snp ~/.vim/plugged/vim-snippets/UltiSnips
|
||||||
sv ~/coding/spotify-lib-vis/src
|
sv ~/coding/spotify-lib-vis/src
|
||||||
svg ~/coding/spotify-lib-vis/src/graphs/static/graphs/scripts
|
svg ~/coding/spotify-lib-vis/src/graphs/static/graphs/scripts
|
||||||
|
swd ~/coding/swex
|
||||||
tb ~/coding/trapbot/src/trapbot
|
tb ~/coding/trapbot/src/trapbot
|
||||||
wo ~/Documents/workout-logs/11
|
wo ~/Documents/workout-logs/11
|
||||||
{{ end }}
|
{{ end }}
|
||||||
@@ -61,9 +62,10 @@ sc ~/school
|
|||||||
lt ~/school/latex-notes
|
lt ~/school/latex-notes
|
||||||
|
|
||||||
6 ~/school/263
|
6 ~/school/263
|
||||||
62 ~/school/263/a2
|
63 ~/school/263/a3
|
||||||
624 ~/school/263/a2/q4
|
631 ~/school/263/a3/q1
|
||||||
62t ~/school/latex-notes/263/a2
|
632 ~/school/263/a3/q2
|
||||||
|
63t ~/school/latex-notes/263/a3
|
||||||
|
|
||||||
al1 ~/school/algorithms/w1-union-find
|
al1 ~/school/algorithms/w1-union-find
|
||||||
|
|
||||||
|
|||||||
@@ -13,13 +13,6 @@ case $1 in
|
|||||||
# devicename="alsa_output.pci-0000_00_14.2.iec958-stereo"
|
# devicename="alsa_output.pci-0000_00_14.2.iec958-stereo"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
# if [ "$1" = "dac" ]; then
|
|
||||||
# devicename="alsa_output.usb-FiiO_DigiHug_USB_Audio-01.analog-stereo"
|
|
||||||
# elif [ "$1" = "dac2" ]; then
|
|
||||||
# devicename="alsa_output.usb-1852_DigiHug_USB_Audio-01.analog-stereo"
|
|
||||||
# elif [ "$1" = "line-out" ]; then
|
|
||||||
# devicename="alsa_output.pci-0000_00_14.2.analog-stereo"
|
|
||||||
# fi
|
|
||||||
echo "$devicename"
|
echo "$devicename"
|
||||||
|
|
||||||
#change the default sink
|
#change the default sink
|
||||||
|
|||||||
Reference in New Issue
Block a user