diff --git a/dot_Xresources.tmpl b/dot_Xresources.tmpl index a868dde..04a58d2 100755 --- a/dot_Xresources.tmpl +++ b/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 */ diff --git a/dot_config/fish/config.fish.tmpl b/dot_config/fish/config.fish.tmpl index 4c3e20c..df51128 100755 --- a/dot_config/fish/config.fish.tmpl +++ b/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 # diff --git a/dot_config/fish/functions/find-bg.fish b/dot_config/fish/functions/find-bg.fish new file mode 100644 index 0000000..ff1205c --- /dev/null +++ b/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 diff --git a/dot_config/fish/functions/scp-cdf.fish b/dot_config/fish/functions/scp-cdf.fish new file mode 100644 index 0000000..79de8cf --- /dev/null +++ b/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 diff --git a/dot_config/i3/config.tmpl b/dot_config/i3/config.tmpl index 1938d62..7a5cbda 100755 --- a/dot_config/i3/config.tmpl +++ b/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 diff --git a/dot_config/mpv/input.conf b/dot_config/mpv/input.conf index e767dca..46ec7cb 100755 --- a/dot_config/mpv/input.conf +++ b/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 diff --git a/dot_vimrc.tmpl b/dot_vimrc.tmpl index 7200c37..862c4d5 100755 --- a/dot_vimrc.tmpl +++ b/dot_vimrc.tmpl @@ -64,10 +64,11 @@ autocmd Filetype markdown inoremap < >>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 j :%!python -m json.tool autocmd Filetype json set foldmethod=marker autocmd FileType sh map :!clear && shellcheck % -autocmd FileType tex set updatetime=3000 +autocmd FileType tex set updatetime=1000 autocmd FileType tex map :VimtexCompile 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 ep \epsilon autocmd Filetype tex inoremap fa \forall autocmd Filetype tex inoremap g \geq autocmd Filetype tex inoremap i \in -autocmd Filetype tex inoremap l \leq +autocmd Filetype tex inoremap le \leq +autocmd Filetype tex inoremap lo \log autocmd Filetype tex inoremap lr \Leftrightarrow " autocmd Filetype tex inoremap n \neg autocmd Filetype tex inoremap n \neq @@ -436,4 +439,7 @@ autocmd Filetype go-template inoremap e {{"{{ else }}"}} autocmd Filetype go-template inoremap hd {{"{{ .chezmoi.homedir }}"}} autocmd Filetype go-template nnoremap fp :%s/{{"{{{"}}/[[[/g:%s/}}}/]]]/g +autocmd Filetype python inoremap bp breakpoint() +autocmd Filetype python inoremap s self. + " ]]] Local Mappings " diff --git a/key_aliases.tmpl b/key_aliases.tmpl index d486e86..ce56e9e 100755 --- a/key_aliases.tmpl +++ b/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 # diff --git a/key_dirs.tmpl b/key_dirs.tmpl index a0e2992..f5f6837 100755 --- a/key_dirs.tmpl +++ b/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 [[[ #