Browse Source

Update

red-hat-laptop
Kevin Mok 6 years ago
parent
commit
a82e9bd341
Signed by: Kevin-Mok GPG Key ID: AEA75288DC135CF5
  1. 1
      dot_Xresources.tmpl
  2. 2
      dot_config/fish/config.fish.tmpl
  3. 3
      dot_config/fish/functions/find-bg.fish
  4. 3
      dot_config/fish/functions/scp-cdf.fish
  5. 3
      dot_config/i3/config.tmpl
  6. 5
      dot_config/mpv/input.conf
  7. 10
      dot_vimrc.tmpl
  8. 92
      key_aliases.tmpl
  9. 5
      key_dirs.tmpl

1
dot_Xresources.tmpl

@ -19,6 +19,7 @@ URxvt*inheritPixmap: true
! URxvt*shading: 0 (blackest) to 99 black, 101 to 200 (whitest) white
URxvt*shading: 40
! URxvt*shading: 35
! urxvt*blurRadius: 10
/* ]]] transparency */

2
dot_config/fish/config.fish.tmpl

@ -80,6 +80,7 @@ abbr cpe "copy echo"
abbr cpp "copy echo (pwd)"
abbr cff "create-fish-function"
abbr ev "evince-silent"
abbr fbg "find-bg"
# git [[[ #
abbr gcamp "git-amend-push"
@ -97,6 +98,7 @@ abbr pgrf "grep-pdf-file"
abbr rs "redshift-set"
abbr ut "unix-timestamp"
abbr uzr "unzip-rm"
abbr fvft "find-vim-filetype"
# ]]] fxn abbr's #

3
dot_config/fish/functions/find-bg.fish

@ -0,0 +1,3 @@
function find-bg
find ~/Pictures/Backgrounds/ -regextype sed -regex ".*$argv[1].*[[:digit:]]\{1,\}.*" -printf "%f\n" | sort -r | head -n1 | cut -f1 -d '.'
end

3
dot_config/fish/functions/scp-cdf.fish

@ -0,0 +1,3 @@
function scp-cdf
scp $argv[1] mokkar@teach.cs.utoronto.ca:~/Downloads/$argv[1]
end

3
dot_config/i3/config.tmpl

@ -45,8 +45,7 @@ bindsym Mod4+c exec $browser
bindsym Mod4+f exec firefox
bindsym Mod4+$mod+f exec echo 'Kevin@fosstodon.org' | xclip -selection clipboard
bindsym Mod4+h exec echo 'kevin.mok@live.ca' | xclip -selection clipboard
# bindsym $mod+m exec ~/scripts/vim-man
bindsym $mod+m exec urxvt -e ~/scripts/vim-man
bindsym Mod4+m exec urxvt -e ~/scripts/vim-man
bindsym Mod4+$mod+m exec pass -c uoft/markus
bindsym Mod4+n exec urxvt -e nvim
bindsym Mod4+o exec xclip -selection clipboard ~/.password-store/social/gmail

5
dot_config/mpv/input.conf

@ -5,6 +5,7 @@ WHEEL_DOWN add volume -1
# speed
r set speed 1.0
g set speed 1.6
h set speed 2.4
s add speed -.2
d add speed .2
@ -21,3 +22,7 @@ Shift+DOWN seek -60
# mark
m revert-seek mark # mark position for revert-seek
Shift+m revert-seek
# subtitle delay
z add sub-delay +0.25
Z add sub-delay -0.25

10
dot_vimrc.tmpl

@ -64,10 +64,11 @@ autocmd Filetype markdown inoremap <S-Tab> <Esc><<A
autocmd Filetype markdown inoremap > <Esc>>>A
autocmd Filetype markdown inoremap >> >
autocmd FileType markdown,tex,text set spell spelllang=en_us
autocmd FileType python set fdm=indent
autocmd Filetype json nnoremap <leader>j :%!python -m json.tool<CR>
autocmd Filetype json set foldmethod=marker
autocmd FileType sh map <F8> :!clear && shellcheck %<CR>
autocmd FileType tex set updatetime=3000
autocmd FileType tex set updatetime=1000
autocmd FileType tex map <F8> :VimtexCompile<CR>
autocmd VimEnter *.tex VimtexCompile
autocmd VimLeave *.tex !tex-clean %:p
@ -132,6 +133,7 @@ Plug 'vim-scripts/L9'
Plug '907th/vim-auto-save'
let g:auto_save = 1
" let g:auto_save_events = ["CursorHold", "CursorHoldI"]
let g:auto_save_events = ["CursorHold"]
" autocmd VimEnter *.tex let g:auto_save = 0
" provides various functionality for writing LaTeX in Vim
@ -392,7 +394,8 @@ autocmd Filetype tex inoremap <localleader>ep \epsilon
autocmd Filetype tex inoremap <localleader>fa \forall
autocmd Filetype tex inoremap <localleader>g \geq
autocmd Filetype tex inoremap <localleader>i \in
autocmd Filetype tex inoremap <localleader>l \leq
autocmd Filetype tex inoremap <localleader>le \leq
autocmd Filetype tex inoremap <localleader>lo \log
autocmd Filetype tex inoremap <localleader>lr \Leftrightarrow
" autocmd Filetype tex inoremap <localleader>n \neg
autocmd Filetype tex inoremap <localleader>n \neq
@ -436,4 +439,7 @@ autocmd Filetype go-template inoremap <localleader>e {{"{{ else }}"}}
autocmd Filetype go-template inoremap <localleader>hd {{"{{ .chezmoi.homedir }}"}}
autocmd Filetype go-template nnoremap <localleader>fp :%s/{{"{{{"}}/[[[/g<CR>:%s/}}}/]]]/g<CR>
autocmd Filetype python inoremap <localleader>bp breakpoint()
autocmd Filetype python inoremap <localleader>s self.
" ]]] Local Mappings "

92
key_aliases.tmpl

@ -156,6 +156,7 @@ xya "yay -Qqne > ~/{{ .chezmoi.os }}-config/txt/{{ .chezmoi.fullHostname }}-pkgs
{{ end }}
py "python"
pyt "python -m unittest"
pipi "sudo pip install"
# internet
@ -254,6 +255,7 @@ wt "watson status"
g "git"
gstr "git config credential.helper store"
gstrp "git config credential.helper store && git push"
# branch [[[ #
@ -327,6 +329,7 @@ gsts "git stash show stash@\{0\} -p"
gclear "git stash clear"
gpl "git pull --rebase"
grb "git rebase -"
grba "git rebase --abort"
grbc "git rebase --continue"
@ -358,6 +361,15 @@ gunc "git update-index --assume-unchanged"
rgt "rg TODO"
# make [[[ #
ma "printf '\033c' && bear make"
mc "bear make clean"
mca "bear make clean && printf '\033c' && bear make"
rmc "rm compile_commands.json"
# ]]] make #
# chezmoi [[[ #
zm "chezmoi"
@ -401,48 +413,7 @@ shc "shellcheck"
pdl "pdflatex"
tcl "tex-clean"
# mfs [[[ #
mfs "nvim ~/coding/best-mf-site-personal/index.html"
ht "python3 -m http.server"
# j "jekyll"
# js "jekyll serve"
h "hugo"
he "hugo serve -D --disableFastRender"
ss "ssh {{ .chezmoi.group }}@192.168.0.100"
ssb "ssh-bandit"
rt "python ~/coding/rt-scraper/!rt-scraper.py"
# ]]] mfs #
mm "printf '\033c' && bear make clean move_mouse_with_head && ./move_mouse_with_head"
med "printf '\033c' && bear make clean eye_detector && ./eye_detector"
mft "printf '\033c' && bear make clean face_detector && ./face_detector"
rft "~/coding/face-tracker/face_detector > /tmp/move_mouse_with_head.out"
gpsb "git push bitbucket"
# ]]] coding projs #
# school [[[ #
# 369 [[[ #
wlf "watson log --all --tag=final"
wrf "watson report --all --tag=final"
ssc "ssh mokkar@teach.cs.utoronto.ca"
ma "printf '\033c' && bear make"
mc "bear make clean"
mca "bear make clean && printf '\033c' && bear make"
rmc "rm compile_commands.json"
rms "rm swapfile.*"
# ]]] 369 #
# 309 [[[ #
# grocery-finder [[[ #
wl0 "watson log --all --project=309 --tag=phase2"
wr0 "watson report --all --project=309 --tag=phase2"
@ -475,7 +446,44 @@ gpsh "git push heroku"
# ]]] 309 #
# mfs [[[ #
mfs "nvim ~/coding/best-mf-site-personal/index.html"
ht "python3 -m http.server"
# j "jekyll"
# js "jekyll serve"
h "hugo"
he "hugo serve -D --disableFastRender"
ss "ssh {{ .chezmoi.group }}@192.168.0.100"
ssb "ssh-bandit"
rt "python ~/coding/rt-scraper/!rt-scraper.py"
# ]]] mfs #
# ada-mario [[[ #
mm "printf '\033c' && bear make clean move_mouse_with_head && ./move_mouse_with_head"
med "printf '\033c' && bear make clean eye_detector && ./eye_detector"
mft "printf '\033c' && bear make clean face_detector && ./face_detector"
rft "~/coding/face-tracker/face_detector > /tmp/move_mouse_with_head.out"
gpsb "git push bitbucket"
# ]]] ada-mario #
# ]]] coding projs #
# school [[[ #
# wlf "watson log --all --tag=final"
# wrf "watson report --all --tag=final"
ssc "ssh mokkar@teach.cs.utoronto.ca"
jc "javac -d out *.java"
jr "java -cp \"$CLASSPATH:out\""
wl1 "watson log --all --project=263 --tag=a1"
wr1 "watson report --all --project=263 --tag=a1"
# ]]] school #

5
key_dirs.tmpl

@ -6,7 +6,7 @@ bg ~/Pictures/Backgrounds
cf ~/.config
cff ~/.config/fish
d ~/Downloads
dw ~/dwm
# dw ~/dwm
D ~/Documents
k ~/
lc ~/linux-config
@ -56,6 +56,9 @@ sc ~/school
lt ~/school/latex-notes
6 ~/school/263
62 ~/school/263/a2
62t ~/school/latex-notes/263/a2
al1 ~/school/algorithms/w1-union-find
# 309 [[[ #

Loading…
Cancel
Save