Browse Source

Update

red-hat-laptop
Kevin Mok 5 years ago
parent
commit
31c621a339
Signed by: Kevin-Mok GPG Key ID: AEA75288DC135CF5
  1. 104
      aliases/key_aliases.tmpl
  2. 28
      aliases/key_dirs.tmpl
  3. 11
      aliases/key_files.tmpl
  4. 5
      dot_Xresources.tmpl
  5. 23
      dot_config/fish/config.fish.tmpl
  6. 3
      dot_config/fish/functions/git-submodule-branch.fish
  7. 2
      dot_config/fish/functions/git/git-clone-gitea.fish
  8. 2
      dot_config/fish/functions/git/git-push-new-gitea.fish
  9. 6
      dot_config/fish/functions/git/git-replace-origin-gitea.fish
  10. 3
      dot_config/fish/functions/mkdir-cd.fish
  11. 8
      dot_config/fish/functions/server-pages.fish
  12. 4
      dot_config/fish/functions/task/task-due-rm.fish
  13. 4
      dot_config/fish/functions/task/task-due.fish
  14. 2
      dot_config/fish/functions/task/task-mod-pri.fish
  15. 4
      dot_config/fish/functions/task/task-next-rm.fish
  16. 2
      dot_config/fish/functions/task/task-next.fish
  17. 18
      dot_config/i3/config.tmpl
  18. 2
      dot_taskopenrc
  19. 12
      dot_taskrc
  20. 33
      dot_vimrc.tmpl
  21. 3
      dot_xinitrc.tmpl
  22. 6
      scripts/executable_backup

104
aliases/key_aliases.tmpl

@ -28,8 +28,14 @@ td "tldr"
# display [[[ # # display [[[ #
# nvt "nvidia-settings --assign CurrentMetaMode='DVI-I-1: nvidia-auto-select +0+0 {ForceCompositionPipeline=On}, HDMI-0: nvidia-auto-select +3840+0 {ForceCompositionPipeline=On}'" # nvt "nvidia-settings --assign CurrentMetaMode='DVI-I-1: nvidia-auto-select +0+0 {ForceCompositionPipeline=On}, HDMI-0: nvidia-auto-select +3840+0 {ForceCompositionPipeline=On}'"
{{ if eq .chezmoi.fullHostname "x1-carbon" }}
xr "xrandr" xr "xrandr"
{{ if eq .chezmoi.fullHostname "nzxt" }}
xrn "xrandr --output HDMI-0 --rotate normal"
xrr "xrandr --output HDMI-0 --rotate right"
{{ end }}
{{ if eq .chezmoi.fullHostname "x1-carbon" }}
xro "xrandr --output HDMI2 --off" xro "xrandr --output HDMI2 --off"
xrr "xrandr --output HDMI2 --auto --right-of eDP1 --scale 1.33x1.33" xrr "xrandr --output HDMI2 --auto --right-of eDP1 --scale 1.33x1.33"
xrm "xrandr --output HDMI2 --auto --same-as eDP1 --scale 1.33x1.33" xrm "xrandr --output HDMI2 --auto --same-as eDP1 --scale 1.33x1.33"
@ -45,9 +51,11 @@ mkgb "sudo grub-mkconfig -o /boot/grub/grub.cfg"
ba "bat" ba "bat"
# ba "bat *" # ba "bat *"
awkp "awk -F',' '{print \$0}'" awkp "awk -F',' '{print \$0}'"
fde "fd -e"
grep "grep --color=auto -n" grep "grep --color=auto -n"
grpr "grep -r" grpr "grep -r"
rg "rg -S" rg "rg -S"
rge "rg -St"
# pk "pkill -f" # pk "pkill -f"
cld "colordiff -wy --suppress-common-lines" cld "colordiff -wy --suppress-common-lines"
@ -78,12 +86,15 @@ nctr "sudo systemctl restart netctl-auto@wlp4s0.service"
cpssh "ssh-copy-id -i ~/.ssh/id_rsa.pub" cpssh "ssh-copy-id -i ~/.ssh/id_rsa.pub"
xcssh "bat ~/.ssh/id_rsa.pub | xclip -selection clipboard" xcssh "bat ~/.ssh/id_rsa.pub | xclip -selection clipboard"
sp "mosh --ssh='ssh -p 8022' 192.168.0.12"
# digital ocean
ssd "mosh --ssh='ssh -p 399' kevin@165.22.239.234 tmux a" ssd "mosh --ssh='ssh -p 399' kevin@165.22.239.234 tmux a"
sfd "sftp -P 399 kevin@165.22.239.234"
sdh "mosh --ssh='ssh -p 399' kevin@165.22.239.234 htop" sdh "mosh --ssh='ssh -p 399' kevin@165.22.239.234 htop"
sfd "sftp -P 399 kevin@165.22.239.234"
# phone
ssp "mosh --ssh='ssh -p 8022' 192.168.0.13"
sfp "sftp -P 8022 192.168.0.13"
# test server sites # test server sites
svp "firefox git.ataraxy.tk khkm.tk cal.khkm.tk pste.gq smol.gq twem.tk"
# svp "firefox git.ataraxy.tk khkm.tk cal.khkm.tk pste.gq smol.gq twem.tk"
# postgres ssh tunnel # postgres ssh tunnel
sdt "ssh kevin@165.22.239.234 -L 5433:localhost:5432" sdt "ssh kevin@165.22.239.234 -L 5433:localhost:5432"
@ -103,7 +114,7 @@ udub "udisksctl unmount -b /dev/sdc2"
# ]]] mounting # # ]]] mounting #
tc "touch"
tch "touch"
vdr "vidir --verbose" vdr "vidir --verbose"
# directory-related [[[ # # directory-related [[[ #
@ -236,6 +247,7 @@ apu "apt upgrade"
# python [[[ # # python [[[ #
py "python" py "python"
py2 "python2"
# pyt "printf '\033c' && pytest -vvs" # pyt "printf '\033c' && pytest -vvs"
pyt "clear && tmux clear-history && pytest -vvs" pyt "clear && tmux clear-history && pytest -vvs"
pyts "clear && tmux clear-history && pytest -vv" pyts "clear && tmux clear-history && pytest -vv"
@ -280,13 +292,19 @@ am "antimicro"
a "task" a "task"
aa "task add" aa "task add"
aal "task add proj:lnx" aal "task add proj:lnx"
aam "task add proj:mny"
aap "task add proj:"
aas "task add proj:sch"
aay "task add proj:pey"
ac "task context" ac "task context"
acn "task context none && task" acn "task context none && task"
ach "task context home && task" ach "task context home && task"
aco "task context out && task" aco "task context out && task"
acs "task context sch && task" acs "task context sch && task"
acpl "task completed"
al "task limit:10"
af "task proj:"
apl "task completed"
al "task limit:15"
alg "task log"
ans "task +next" ans "task +next"
ao "taskopen" ao "taskopen"
asm "task summary" asm "task summary"
@ -316,6 +334,7 @@ bw "buku --immutable 1 -zw -1"
# ]]] buku # # ]]] buku #
cc "calcurse" cc "calcurse"
ccc "calcurse -D ~/.calcurse/alt-cals/class" ccc "calcurse -D ~/.calcurse/alt-cals/class"
cci "calcurse -i"
ccs "calcurse-caldav" ccs "calcurse-caldav"
chr "google-chrome" chr "google-chrome"
clc "cloc ." clc "cloc ."
@ -326,7 +345,7 @@ fh "feh"
fi "fish" fi "fish"
gpd "gpg --decrypt" gpd "gpg --decrypt"
gpe "gpg --encrypt --recipient" gpe "gpg --encrypt --recipient"
hb "habitctl log"
h "habitctl log"
# hbe "habitctl edit" # hbe "habitctl edit"
# hbeh "habitctl edith" # hbeh "habitctl edith"
htc "htop -s PERCENT_CPU" htc "htop -s PERCENT_CPU"
@ -339,6 +358,7 @@ ka "killall"
kd "killall Discord && killall Discord" kd "killall Discord && killall Discord"
kr "killall electron" kr "killall electron"
kt "killall thunderbird" kt "killall thunderbird"
lio "libreoffice"
mp "mpv --volume=50" mp "mpv --volume=50"
mra "man ranger" mra "man ranger"
# mt "minetest" # mt "minetest"
@ -348,23 +368,26 @@ p3 "python3"
pdft "pdftotext" pdft "pdftotext"
pipes "pipes.sh -t 3" pipes "pipes.sh -t 3"
py "python" py "python"
qc "qalc '"
qcg "qalculate-gtk"
q "qalc '"
qg "qalculate-gtk"
r "ranger" r "ranger"
rbg "ranger --selectfile (grep wallpaper ~/.cache/wal/colors.sh | cut -d\' -f2)" rbg "ranger --selectfile (grep wallpaper ~/.cache/wal/colors.sh | cut -d\' -f2)"
# rgc "printf '\033c' && rg" # rgc "printf '\033c' && rg"
# rgc "printf '\033c' && rg" # rgc "printf '\033c' && rg"
rgc "clear && tmux clear-history && rg -S" rgc "clear && tmux clear-history && rg -S"
rx "redshift -x" rx "redshift -x"
scm "sc-im"
sn "sudo nvim" sn "sudo nvim"
sqlb "sqlitebrowser"
ss "mosh" ss "mosh"
stp "termdown" stp "termdown"
# sw "swex" # sw "swex"
t "tmux"#[[[ t "tmux"#[[[
ta "tmux a -t" ta "tmux a -t"
tac "tmux a -t config || tmux new -s config"
tacf "tmux a -t config || tmux new -s config"
taj "tmux a -t journal || tmux new -s journal" taj "tmux a -t journal || tmux new -s journal"
tal "tmux a" tal "tmux a"
tc "clear && tmux clear-history"
tk "tmux kill-server" tk "tmux kill-server"
tl "tmux ls" tl "tmux ls"
tn "tmux new -s" tn "tmux new -s"
@ -372,7 +395,10 @@ tnb "tmux new -s backup"
#]]] #]]]
usn "usernames --num 20" usn "usernames --num 20"
vmd "vimdiff" vmd "vimdiff"
wg "wego"
# wg "wego"
wg "curl -L wthr.ml"
wgm "curl -L wthr.ml/m"
wgt "curl -L wthr.ml/t"
ytd "youtube-dl" ytd "youtube-dl"
z "zathura --fork" z "zathura --fork"
@ -429,9 +455,10 @@ wl "watson log -Gcd"
wla "watson log -Gca -p" wla "watson log -Gca -p"
wlat "watson log -Gca -T" wlat "watson log -Gca -T"
ww "watson log -Gc" ww "watson log -Gc"
wwb "watson log -Gc | bat"
wr "watson report -Gcd" wr "watson report -Gcd"
wra "watson report -Gca -p" wra "watson report -Gca -p"
wram "watson report -Gca | rg -S '^\w.*-\s\d*h' | sort -t' ' -hk3"
wram "watson report -Gca | rg -S '^\w.*-\s\d*h' | sort -t' ' -hk3 | sed 's/ - /,/' | xsv table"
wrat "watson report -Gca -T" wrat "watson report -Gca -T"
wrw "watson report -Gc" wrw "watson report -Gc"
@ -457,10 +484,12 @@ gba "git branch --no-merged && echo '' && git branch --merged"
gbu "git branch --no-merged" gbu "git branch --no-merged"
gbm "git branch --merged" gbm "git branch --merged"
gsm "git submodule add"
gsm "git submodule"
gsmp "git submodule foreach git pull" gsmp "git submodule foreach git pull"
gsmu "git submodule update --recursive --remote"
gmg "git merge" gmg "git merge"
gmgts "git merge -X theirs"
gmgt "git mergetool" gmgt "git mergetool"
gr "git remote -v" gr "git remote -v"
@ -481,6 +510,9 @@ gaf "git add -f"
# unsigned commt # unsigned commt
gacu "git add -A && git commit" gacu "git add -A && git commit"
glf "git lfs"
glfi "git lfs install"
grm "git rm" grm "git rm"
grmf "git rm -f" grmf "git rm -f"
grmc "git rm --cached" grmc "git rm --cached"
@ -515,7 +547,7 @@ gchn "git checkout -b"
gchm "git checkout master" gchm "git checkout master"
gchnw "git checkout -b wip" gchnw "git checkout -b wip"
gchw "git checkout wip" gchw "git checkout wip"
gchfh "git checkout HEAD --"
gchh "git checkout HEAD --"
grom "git reset --hard origin/master" grom "git reset --hard origin/master"
gheadm1 "git reset --hard HEAD~1" gheadm1 "git reset --hard HEAD~1"
@ -564,6 +596,7 @@ gunc "git update-index --assume-unchanged"
# coding projs [[[ # # coding projs [[[ #
tld "tldr"
# fsl "zathura --fork ~/coding/fastest-languages.pdf" # fsl "zathura --fork ~/coding/fastest-languages.pdf"
fsl "bat ~/Documents/fastest-languages/fastest-languages.md" fsl "bat ~/Documents/fastest-languages/fastest-languages.md"
rgt "rg TODO" rgt "rg TODO"
@ -604,14 +637,14 @@ upip "pip list --outdated --format=freeze | grep -v '^\-e' | cut -d = -f 1 | xa
ureq "pip freeze > requirements.txt" ureq "pip freeze > requirements.txt"
# show last history scan # show last history scan
hlg "psql -d spotifyvis -a -f /home/kevin/coding/spotify-lib-vis/src/scripts/history.sql | rg 2019 | tac"
hlg "psql -d spotifyvis -a -f /home/kevin/coding/spotify-lib-vis/src/scripts/queries/history.sql | rg 2019 | tac"
slg "tail -n 5 $spv_dir/src/api/management/commands/update-history.log" slg "tail -n 5 $spv_dir/src/api/management/commands/update-history.log"
# scan history # scan history
# hs "$spv_dir/src/update-history.sh && cat $spv_dir/src/api/management/commands/update-history.log | tail -n 1" # hs "$spv_dir/src/update-history.sh && cat $spv_dir/src/api/management/commands/update-history.log | tail -n 1"
# removes all but newest file # removes all but newest file
# rmol "ls -t | tail -n +2 | xargs rm -- && l" # rmol "ls -t | tail -n +2 | xargs rm -- && l"
snw "spotify-now -i '%artist - %title'"
# snw "spotify-now -i '%artist - %title'"
svd "pg_dump spotifyvis > spotifyvis.bak" svd "pg_dump spotifyvis > spotifyvis.bak"
@ -631,7 +664,7 @@ wr0 "watson report --all --project=309 --tag=phase2"
# server [[[ # # server [[[ #
# nd "node"
no "node"
ndm "nodemon" ndm "nodemon"
knd "killall node" knd "killall node"
mg "mongo" mg "mongo"
@ -659,11 +692,12 @@ gpsh "git push heroku"
# mfs [[[ # # mfs [[[ #
ht "python3 -m http.server"
pyh "python -m http.server"
# j "jekyll" # j "jekyll"
# js "jekyll serve" # js "jekyll serve"
h "hugo"
he "hugo serve -D --disableFastRender"
hu "hugo"
hd "hugo server -D --disableFastRender --bind 192.168.0.10 --baseURL 'http://192.168.0.10:1313'"
hg "hugo serve --disableFastRender"
# ]]] mfs # # ]]] mfs #
@ -696,14 +730,15 @@ wrm "watson report --all --project=minetest"
wamv "watson start minetest +video" wamv "watson start minetest +video"
mtg "minetest" mtg "minetest"
ms "minetestserver"
msc "minetestserver --gameid minetest --worldname Creative --terminal"
# msh "minetestserver --gameid minetest --worldname Hevin --config ~/.minetest/hevin.conf --terminal"
msh "minetestserver --gameid mineclone2 --worldname Hevin-MC --config ~/.minetest/hevin-mc.conf --terminal"
msv "minetestserver --gameid minimal --worldname Test --terminal"
mts "minetestserver"
mtsc "minetestserver --gameid minetest --worldname Creative --terminal"
# mtsh "minetestserver --gameid minetest --worldname Hevin --config ~/.minetest/hevin.conf --terminal"
mtsh "minetestserver --gameid mineclone2 --worldname Hevin-MC --config ~/.minetest/hevin-mc.conf --terminal"
mtsv "minetestserver --gameid minimal --worldname Test --terminal"
# mtrsy "rsync -vr .minetest/ /mnt/linux-files/.minetest/" # mtrsy "rsync -vr .minetest/ /mnt/linux-files/.minetest/"
tet "pandoc -f markdown -t html twitch-emote-conversion.md | xclip -selection clipboard" tet "pandoc -f markdown -t html twitch-emote-conversion.md | xclip -selection clipboard"
shrg "printf '¯\\\\\\\\\\_(ツ)_/¯' | xclip -selection clipboard"
# ]]] games # # ]]] games #
@ -712,16 +747,17 @@ tet "pandoc -f markdown -t html twitch-emote-conversion.md | xclip -selection cl
# basic # basic
# wlf "watson log --all --tag=final" # wlf "watson log --all --tag=final"
# wrf "watson report --all --tag=final" # wrf "watson report --all --tag=final"
gpa "column -ts',' ~/Documents/gpa.md"
ssc "mosh mokkar@teach.cs.utoronto.ca" ssc "mosh mokkar@teach.cs.utoronto.ca"
# alg course
jc "javac -d out *.java"
jr "java -cp \"$CLASSPATH:out\""
# 324
rhs "clear && tmux clear-history && runhaskell Ex3.hs"
rk "clear && tmux clear-history && raco test"
rki "racket -l racket/base -i"
rke "clear && tmux clear-history && raco test ex1.rkt"
# 263
wl6 "watson log --all --project=263 --tag=a5"
wr6 "watson report --all --project=263 --tag=a5"
z6 "zathura --fork ~/school/263/Introduction-to-Algorithms-CLRs/Introduction\ to\ Algorithms\ -\ 3rd\ Edition.pdf"
pd6 "pdflatex a5"
# 384
rgp "clear && tmux clear-history && rg -S -t py"
8aa "clear && tmux clear-history && python2 autograder.py"
# ]]] school # # ]]] school #

28
aliases/key_dirs.tmpl

@ -13,6 +13,7 @@ k ~/
lc ~/linux-config lc ~/linux-config
lf /mnt/linux-files lf /mnt/linux-files
lfv /mnt/linux-files/Videos lfv /mnt/linux-files/Videos
me /run/media/kevin
o / o /
p ~/.password-store p ~/.password-store
P ~/Pictures P ~/Pictures
@ -32,6 +33,7 @@ sv /etc/systemd/system
ad ~/.task ad ~/.task
ccd ~/.calcurse ccd ~/.calcurse
cn ~/coding cn ~/coding
drk ~/coding/dark-sky
hbd ~/.habitctl hbd ~/.habitctl
ib ~/linux-config/dot_config/i3blocks/scripts ib ~/linux-config/dot_config/i3blocks/scripts
ra ~/linux-config/dot_config/ranger ra ~/linux-config/dot_config/ranger
@ -49,7 +51,7 @@ ft ~/coding/face-tracker
j ~/Documents/journal j ~/Documents/journal
lh ~/Documents/listening-history lh ~/Documents/listening-history
mmd ~/coding/move-mouse-with-head mmd ~/coding/move-mouse-with-head
mfs ~/coding/mf-site
ms ~/coding/mf-site
mh ~/coding/mf-site/layouts mh ~/coding/mf-site/layouts
# mg ~/coding/best-mf-site-personal # mg ~/coding/best-mf-site-personal
sv ~/coding/spotify-lib-vis/src sv ~/coding/spotify-lib-vis/src
@ -88,25 +90,11 @@ adP ~/Pictures/ada-mario
sc ~/school sc ~/school
lt ~/school/latex-notes lt ~/school/latex-notes
6 ~/school/263
63 ~/school/263/a5
# 631 ~/school/263/a5/q1
# 632 ~/school/263/a5/q2
633 ~/school/263/a5/q3
63t ~/school/latex-notes/263/a5
2 ~/school/324
2e ~/school/324/e/3
al1 ~/school/algorithms/w1-union-find
# 309 [[[ #
0c ~/school/309-proj/css
0d ~/school/309
0j ~/school/309-proj/public/js
0l ~/school/309/l
0p ~/school/309-proj
0m ~/school/309-proj/mongo
# ]]] 309 #
8 ~/school/384
8a ~/school/384/a1
8t ~/school/latex-notes/384/a1
# ]]] sch # # ]]] sch #

11
aliases/key_files.tmpl

@ -8,7 +8,7 @@ ak ~/linux-config/dot_ssh/authorized_keys-all
d ~/linux-config/aliases/key_dirs.tmpl d ~/linux-config/aliases/key_dirs.tmpl
dw ~/dwm/config.def.h dw ~/dwm/config.def.h
f ~/linux-config/aliases/key_files.tmpl f ~/linux-config/aliases/key_files.tmpl
h ~/.local/share/fish/fish_history
fh ~/.local/share/fish/fish_history
n ~/linux-config/dot_vimrc.tmpl n ~/linux-config/dot_vimrc.tmpl
p ~/linux-config/txt/pacman-pkgs/pacman-pkgs.txt p ~/linux-config/txt/pacman-pkgs/pacman-pkgs.txt
r ~/linux-config/dot_config/ranger/rc.conf.tmpl r ~/linux-config/dot_config/ranger/rc.conf.tmpl
@ -31,13 +31,14 @@ ng /etc/nginx/nginx.conf
# cdn [[[ # # cdn [[[ #
ap ~/.task/pending.data ap ~/.task/pending.data
at ~/.task/to-add.md
bid ~/Documents/journal/todo/blog.md bid ~/Documents/journal/todo/blog.md
cc ~/linux-config/private_dot_calcurse/conf cc ~/linux-config/private_dot_calcurse/conf
ci ~/linux-config/txt/ideas.md ci ~/linux-config/txt/ideas.md
cm ./commit-msg.txt cm ./commit-msg.txt
cmt /tmp/commit-msg.txt cmt /tmp/commit-msg.txt
hb ~/.habitctl/log
hbh ~/.habitctl/habits
h ~/.habitctl/log
hh ~/.habitctl/habits
hlg ~/coding/spotify-lib-vis/src/api/management/commands/update-history.log hlg ~/coding/spotify-lib-vis/src/api/management/commands/update-history.log
id ~/Documents/journal/todo/ideas.md id ~/Documents/journal/todo/ideas.md
ig ./.gitignore ig ./.gitignore
@ -74,6 +75,10 @@ wt ~/.config/watson/state.tmp
# ]]] 309 # # ]]] 309 #
# 384
8a ~/school/384/a1/searchAgents.py
8s ~/school/384/a1/search.py
# ]]] sch # # ]]] sch #
mta ~/.minetest/clientmods/custom_aliases/init.lua mta ~/.minetest/clientmods/custom_aliases/init.lua

5
dot_Xresources.tmpl

@ -1,6 +1,7 @@
/* dpi [[[ */ /* dpi [[[ */
Xft.dpi: 135 Xft.dpi: 135
! Xft.dpi: 170
Xft.autohint: 0 Xft.autohint: 0
Xft.lcdfilter: lcddefault Xft.lcdfilter: lcddefault
Xft.hintstyle: hintfull Xft.hintstyle: hintfull
@ -42,8 +43,8 @@ URxvt*transparent: true
URxvt*inheritPixmap: true URxvt*inheritPixmap: true
! URxvt*transparent: false ! URxvt*transparent: false
! URxvt*shading: 0 (blackest) to 99 black, 101 to 200 (whitest) white ! URxvt*shading: 0 (blackest) to 99 black, 101 to 200 (whitest) white
URxvt*shading: 50
! URxvt*shading: 40
! URxvt*shading: 50
URxvt*shading: 40
! URxvt*shading: 35 ! URxvt*shading: 35
! urxvt*blurRadius: 10 ! urxvt*blurRadius: 10

23
dot_config/fish/config.fish.tmpl

@ -99,9 +99,15 @@ abbr aan "task-anno"
abbr ae "task-edit" abbr ae "task-edit"
abbr adl "task-delete" abbr adl "task-delete"
abbr adn "task-done" abbr adn "task-done"
abbr adu "task-due"
abbr adr "task-due-rm"
abbr an "task-next" abbr an "task-next"
abbr anr "task-next-rm"
abbr ant "task-notes" abbr ant "task-notes"
abbr apr "task-mod-pri" abbr apr "task-mod-pri"
abbr aprl "task-mod-pri L"
abbr aprm "task-mod-pri M"
abbr aprh "task-mod-pri H"
abbr apj "task-mod-proj" abbr apj "task-mod-proj"
abbr at "task-mod-tag" abbr at "task-mod-tag"
abbr asr "task-start" abbr asr "task-start"
@ -113,6 +119,7 @@ abbr b "buku-fzf"
abbr bf "buku-fzf fq" abbr bf "buku-fzf fq"
abbr bq "benq-brightness" abbr bq "benq-brightness"
abbr bupp "backup-phone-pics" abbr bupp "backup-phone-pics"
abbr cccs "sync-alt-cal class"
abbr cpc "copy cat" abbr cpc "copy cat"
abbr cpe "copy echo" abbr cpe "copy echo"
abbr cpp "copy echo (pwd)" abbr cpp "copy echo (pwd)"
@ -122,8 +129,8 @@ abbr def "define"
abbr ens "enable-site" abbr ens "enable-site"
abbr ev "evince-silent" abbr ev "evince-silent"
# abbr fbg "find-bg" # abbr fbg "find-bg"
abbr fv "fzf-vim"
abbr fvft "find-vim-filetype" abbr fvft "find-vim-filetype"
abbr fzv "fzf-vim"
# git [[[ # # git [[[ #
abbr gcamp "git-amend-push" abbr gcamp "git-amend-push"
@ -131,16 +138,19 @@ abbr gclg "git-clone-gitea"
abbr gdf "git-diff-files" abbr gdf "git-diff-files"
abbr gpsi "git-push-initial" abbr gpsi "git-push-initial"
abbr gpsmt "git-push-multiple" abbr gpsmt "git-push-multiple"
abbr gpng "git-push-new-gitea gitea"
abbr gpngo "git-push-new-gitea origin"
abbr gpng "git-push-new-gitea origin"
abbr gpngg "git-push-new-gitea gitea"
abbr gremotes "git-mult-remotes" abbr gremotes "git-mult-remotes"
abbr grmb "git-delete-branch" abbr grmb "git-delete-branch"
abbr gro "git-replace-origin" abbr gro "git-replace-origin"
abbr grog "git-replace-origin-gitea"
abbr gsmb "git-submodule-branch"
# ]]] git # # ]]] git #
abbr m "man-vim" abbr m "man-vim"
abbr ma "man-vim task" abbr ma "man-vim task"
abbr mat "math" abbr mat "math"
abbr mdf "mkdir-cd"
abbr pgr "grep-pdf" abbr pgr "grep-pdf"
abbr pgrf "grep-pdf-file" abbr pgrf "grep-pdf-file"
abbr png "git-push-new-gitea" abbr png "git-push-new-gitea"
@ -152,9 +162,8 @@ abbr smd "smol-delete"
abbr sml "smol-slist" abbr sml "smol-slist"
abbr smr "smol-replace" abbr smr "smol-replace"
abbr shrm "shred-rm" abbr shrm "shred-rm"
abbr svs "scan-history"
abbr tac "tmux-attach config"
abbr taj "tmux-attach journal"
abbr shs "scan-history"
abbr svp "server-pages"
abbr thes "thesaurus" abbr thes "thesaurus"
abbr ut "unix-timestamp" abbr ut "unix-timestamp"
abbr uzr "unzip-rm" abbr uzr "unzip-rm"
@ -176,4 +185,4 @@ abbr jct "java-compile-test"
# ]]] fxn abbr's # # ]]] fxn abbr's #
# task sync > /dev/null 2>&1 # task sync > /dev/null 2>&1
~/scripts/xmodmap-custom
# ~/scripts/xmodmap-custom

3
dot_config/fish/functions/git-submodule-branch.fish

@ -0,0 +1,3 @@
function git-submodule-branch
git submodule set-branch --branch $argv[2] -- $argv[1]
end

2
dot_config/fish/functions/git/git-clone-gitea.fish

@ -1,3 +1,3 @@
function git-clone-gitea function git-clone-gitea
git clone ssh://git@ataraxy.tk:399/Kevin-Mok/$argv[1].git
git clone ssh://git@kevin-mok.com:399/Kevin-Mok/$argv[1].git
end end

2
dot_config/fish/functions/git/git-push-new-gitea.fish

@ -1,4 +1,4 @@
function git-push-new-gitea function git-push-new-gitea
git remote add $argv[1] ssh://git@ataraxy.tk:399/Kevin-Mok/$argv[2].git
git remote add $argv[1] ssh://git@kevin-mok.com:399/Kevin-Mok/$argv[2].git
and git push --set-upstream $argv[1] master and git push --set-upstream $argv[1] master
end end

6
dot_config/fish/functions/git/git-replace-origin-gitea.fish

@ -0,0 +1,6 @@
function git-replace-origin-gitea
git remote remove origin
and git remote add origin ssh://git@kevin-mok.com:399/Kevin-Mok/$argv[1].git
and git branch --set-upstream-to=origin/master master
and git push
end

3
dot_config/fish/functions/mkdir-cd.fish

@ -0,0 +1,3 @@
function mkdir-cd
mkdir -p $argv[1] && cd $argv[1]
end

8
dot_config/fish/functions/server-pages.fish

@ -1,8 +1,8 @@
function server-pages function server-pages
set sites git.ataraxy.tk khkm.tk cal.khkm.tk mnpd.gq/k-bg pste.gq smol.gq twem.tk
set titles "Kevin Mok's Gitea" "Kevin Mok" "Baïkal server" "k-bg" "hastebin" "Kevin's URL Shortener" "Index of /"
# set sites mnpd.gq/k-bg
# set titles "k-bg"
set sites kevin-mok.com git.kevin-mok.com cal.khkm.tk mnpd.gq/kbg pste.gq smol.gq twem.tk
set titles "Kevin Mok" "Kevin Mok's Gitea" "Baïkal server" "kbg" "hastebin" "Kevin's URL Shortener" "Twitch Emote Links"
# set sites twem.tk
# set titles "Twitch Emote Links"
for i in (seq (count $sites)) for i in (seq (count $sites))
set title (wget -qO- "$sites[$i]" | perl -l -0777 -ne 'print $1 if /<title.*?>\s*(.*?)\s*<\/title/si' | recode html) set title (wget -qO- "$sites[$i]" | perl -l -0777 -ne 'print $1 if /<title.*?>\s*(.*?)\s*<\/title/si' | recode html)

4
dot_config/fish/functions/task/task-due-rm.fish

@ -0,0 +1,4 @@
function task-due-rm
task $argv[1] mod due:
and task
end

4
dot_config/fish/functions/task/task-due.fish

@ -0,0 +1,4 @@
function task-due
task $argv[1] mod due:+$argv[2]
and task
end

2
dot_config/fish/functions/task/task-mod-pri.fish

@ -1,4 +1,4 @@
function task-mod-pri function task-mod-pri
task $argv[1] modify pri:$argv[2]
task $argv[2] modify pri:$argv[1]
and task and task
end end

4
dot_config/fish/functions/task/task-next-rm.fish

@ -0,0 +1,4 @@
function task-next-rm
task $argv[1] modify -nx
and task
end

2
dot_config/fish/functions/task/task-next.fish

@ -1,4 +1,4 @@
function task-next function task-next
task $argv[1] modify +next
task $argv[1] modify +nx
and task and task
end end

18
dot_config/i3/config.tmpl

@ -13,7 +13,8 @@ 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 xrdb ~/.Xresources && grep wallpaper ~/.cache/wal/colors.sh | cut -d\' -f2 | xargs wal -i > /dev/null
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 #
@ -51,6 +52,7 @@ bindsym Mod4+f exec firefox
# bindsym Mod4+$mod+f exec printf 'Kevin@fosstodon.org' | xclip -selection clipboard # bindsym Mod4+$mod+f exec printf 'Kevin@fosstodon.org' | xclip -selection clipboard
bindsym Mod4+h exec $type_delay_cmd && xdotool type 'kevin.mok@live.ca' bindsym Mod4+h exec $type_delay_cmd && xdotool type 'kevin.mok@live.ca'
# bindsym Mod4+m exec $term -e ~/scripts/vim-man # bindsym Mod4+m exec $term -e ~/scripts/vim-man
bindsym Mod4+m exec $type_delay_cmd && xdotool type 'me@kevin-mok.com'
# bindsym Mod4+$mod+m exec pass -c uoft/markus # bindsym Mod4+$mod+m exec pass -c uoft/markus
bindsym Mod4+n exec $term -e nvim bindsym Mod4+n exec $term -e nvim
bindsym Mod4+o exec xclip -selection clipboard ~/.password-store/social/gmail && $type_delay_cmd && xdotool key 'Control_L+v' bindsym Mod4+o exec xclip -selection clipboard ~/.password-store/social/gmail && $type_delay_cmd && xdotool key 'Control_L+v'
@ -64,7 +66,7 @@ bindsym Mod4+q exec qdirstat
bindsym Mod4+r exec $term -e ranger bindsym Mod4+r exec $term -e ranger
bindsym Mod4+$mod+r exec notify-send "watson restart" "$(watson restart)" bindsym Mod4+$mod+r exec notify-send "watson restart" "$(watson restart)"
bindsym Mod4+$mod+s exec $type_delay_cmd && xdotool type 'https://smol.gq/' bindsym Mod4+$mod+s exec $type_delay_cmd && xdotool type 'https://smol.gq/'
bindsym Mod4+$mod+t exec xclip -selection clipboard ~/.password-store/social/trapbot && $type_delay_cmd && xdotool key 'Control_L+v'
bindsym Mod4+t exec xclip -selection clipboard ~/.password-store/social/trapbot && $type_delay_cmd && xdotool key 'Control_L+v'
# bindsym Mod4+u exec printf 'kevin.mok@mail.utoronto.ca' | xclip -selection clipboard # bindsym Mod4+u exec printf 'kevin.mok@mail.utoronto.ca' | xclip -selection clipboard
bindsym Mod4+u exec $type_delay_cmd && xdotool type 'kevin.mok@mail.utoronto.ca' bindsym Mod4+u exec $type_delay_cmd && xdotool type 'kevin.mok@mail.utoronto.ca'
# bindsym Mod4+$mod+u exec pass -c uoft/acorn # bindsym Mod4+$mod+u exec pass -c uoft/acorn
@ -75,12 +77,12 @@ bindsym Control+Mod4+w exec $term -e nvim /home/kevin/.config/watson/state.tmp
bindsym Mod4+z exec cliqz bindsym Mod4+z exec cliqz
{{ if .ext_kb }} {{ if .ext_kb }}
bindsym Mod4+x exec ~/scripts/xmodmap-custom bindsym Mod4+x exec ~/scripts/xmodmap-custom
bindsym Print --release exec "scrot -s /tmp/screenshot-$(date +%F_%T).png -e 'xclip -selection c -t image/png < $f'"
bindsym Control+Print --release exec "scrot -u /tmp/screenshot-$(date +%F_%T).png -e 'xclip -selection c -t image/png < $f'"
bindsym Print --release exec "scrot -s ~/tmp/screenshot-$(date +%F_%T).png -e 'xclip -selection c -t image/png < $f'"
bindsym Control+Print --release exec "scrot -u ~/tmp/screenshot-$(date +%F_%T).png -e 'xclip -selection c -t image/png < $f'"
{{ else }} {{ else }}
bindsym Mod4+x exec xmodmap ~/.Xmodmap-laptop && xset r rate $XSET_DELAY $XSET_RATE bindsym Mod4+x exec xmodmap ~/.Xmodmap-laptop && xset r rate $XSET_DELAY $XSET_RATE
bindsym $mod+p --release exec "scrot -s /tmp/screenshot-$(date +%F_%T).png -e 'xclip -selection c -t image/png < $f'"
bindsym Control+$mod+p --release exec "scrot -u /tmp/screenshot-$(date +%F_%T).png -e 'xclip -selection c -t image/png < $f'"
bindsym $mod+p --release exec "scrot -s ~/tmp/screenshot-$(date +%F_%T).png -e 'xclip -selection c -t image/png < $f'"
bindsym Control+$mod+p --release exec "scrot -u ~/tmp/screenshot-$(date +%F_%T).png -e 'xclip -selection c -t image/png < $f'"
{{ end }} {{ end }}
# ]]] app shortcuts # # ]]] app shortcuts #
@ -318,8 +320,8 @@ bindsym $mod+F5 workspace $ws5; exec $browser
bindsym Mod4+g workspace $ws5; layout tabbed; exec gimp bindsym Mod4+g workspace $ws5; layout tabbed; exec gimp
# bindsym Mod4+g workspace $ws5; exec mgba-qt # bindsym Mod4+g workspace $ws5; exec mgba-qt
bindsym Mod4+i workspace $ws5; exec idea bindsym Mod4+i workspace $ws5; exec idea
bindsym Mod4+m workspace $ws5; layout tabbed; exec $term -e ~/.minetest/minetest/bin/minetest
bindsym Mod4+t workspace $ws5; exec thunderbird
# bindsym Mod4+m workspace $ws5; layout tabbed; exec $term -e ~/.minetest/minetest/bin/minetest
bindsym Mod4+$mod+t workspace $ws5; exec thunderbird
bindsym Mod4+5 workspace $ws5; exec godot bindsym Mod4+5 workspace $ws5; exec godot
bindsym Mod4+F5 workspace $ws5; exec cd ~/coding/ada-mario && godot -e bindsym Mod4+F5 workspace $ws5; exec cd ~/coding/ada-mario && godot -e
# for_window [class="Move_mouse_with_head"] floating enable; move absolute position 0 0 # for_window [class="Move_mouse_with_head"] floating enable; move absolute position 0 0

2
dot_taskopenrc

@ -1,6 +1,6 @@
#BROWSER='xdg-open $FILE &>/dev/null' #BROWSER='xdg-open $FILE &>/dev/null'
#EDITOR='vim'
EDITOR='nvim'
#FILE_CMD='xdg-open' #FILE_CMD='xdg-open'
TASKBIN='task' TASKBIN='task'

12
dot_taskrc

@ -15,6 +15,7 @@
# }}} info # # }}} info #
data.location=~/.task data.location=~/.task
# rc.debug=1
# Color theme (uncomment one to use){{{ # Color theme (uncomment one to use){{{
#include /usr/share/doc/task/rc/light-16.theme #include /usr/share/doc/task/rc/light-16.theme
@ -42,23 +43,26 @@ taskd.certificate=\/home\/kevin\/.task\/do.cert.pem
taskd.key=\/home\/kevin\/.task\/do.key.pem taskd.key=\/home\/kevin\/.task\/do.key.pem
taskd.ca=\/home\/kevin\/.task\/ca.cert.pem taskd.ca=\/home\/kevin\/.task\/ca.cert.pem
taskd.server=taskd.khkm.tk:53589 taskd.server=taskd.khkm.tk:53589
taskd.credentials=Hevin\/Kevin\/e843c83c-b701-43e7-9509-70595333b419
taskd.credentials=Hevin\/Kevin\/eb6225dc-80fb-4721-8b03-9114c6c4423d
# }}} server # # }}} server #
# urgency {{{ # # urgency {{{ #
urgency.user.project.mfs.coefficient=3
urgency.user.project.ms.coefficient=3
urgency.user.project.pey.coefficient=7
urgency.user.project.sch.coefficient=5 urgency.user.project.sch.coefficient=5
urgency.uda.priority.L.coefficient=-1
urgency.uda.priority.H.coefficient=10
urgency.uda.priority.L.coefficient=-7
urgency.uda.priority..coefficient=1 urgency.uda.priority..coefficient=1
urgency.user.tag.nx.coefficient=15
# }}} urgency # # }}} urgency #
# context {{{ # # context {{{ #
# context.home=project.not:ieas project.not:out project.not:sch tag.not:amn # context.home=project.not:ieas project.not:out project.not:sch tag.not:amn
context.home=project.not:ieas project.not:out tag.not:amn
context.home=project.not:ieas project.not:out
context.out=project:out context.out=project:out
context.sch=project:sch context.sch=project:sch

33
dot_vimrc.tmpl

@ -14,7 +14,7 @@ set expandtab
" set foldmethod=indent " set foldmethod=indent
set foldmethod=marker set foldmethod=marker
set hlsearch set hlsearch
set ignorecase
" set ignorecase
set linebreak set linebreak
set linespace=5 set linespace=5
set mouse=a set mouse=a
@ -58,12 +58,14 @@ autocmd CursorHold * if !bufexists("[Command Line]") | checktime | endif
autocmd BufNewFile,BufRead .* set syntax=sh autocmd BufNewFile,BufRead .* set syntax=sh
autocmd BufRead,BufNewFile /tmp/calcurse*,~/.calcurse/notes/* set filetype=markdown autocmd BufRead,BufNewFile /tmp/calcurse*,~/.calcurse/notes/* set filetype=markdown
autocmd FileType *css,gitcommit,htmldjango,html,javascript,json,lisp,markdown,tex,text,yaml set tabstop=2 shiftwidth=2
autocmd FileType *css,gitcommit,haskell,htmldjango,html,javascript,json,lisp,markdown,
\racket,tex,text,yaml set tabstop=2 shiftwidth=2
" autocmd BufNewFile,BufRead *.md set filetype=markdown " autocmd BufNewFile,BufRead *.md set filetype=markdown
" autocmd Filetype markdown set textwidth=0 " autocmd Filetype markdown set textwidth=0
" 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 html,javascript,python,lua set fdm=indent
" autocmd Filetype markdown set commentstring=<!---\ %s\ --> " autocmd Filetype markdown set commentstring=<!---\ %s\ -->
" autocmd Filetype markdown map <F8> :LivedownToggle<CR> " autocmd Filetype markdown map <F8> :LivedownToggle<CR>
autocmd Filetype markdown map <F8> :InstantMarkdownPreview<CR> autocmd Filetype markdown map <F8> :InstantMarkdownPreview<CR>
@ -87,10 +89,9 @@ autocmd Filetype markdown inoremap >> >
" ]]] format options " " ]]] format options "
" autocmd FileType markdown,tex,text set spell spelllang=en_us formatoptions=cjMqtvw " autocmd FileType markdown,tex,text set spell spelllang=en_us formatoptions=cjMqtvw
autocmd FileType markdown,tex,text set spell spelllang=en_us formatoptions=acjMqtvw autocmd FileType markdown,tex,text set spell spelllang=en_us formatoptions=acjMqtvw
" autocmd FileType tex,text set spell spelllang=en_us formatoptions=acjMqtvw
autocmd FileType python,lua set fdm=indent
autocmd Filetype json nnoremap <leader>j :%!python -m json.tool<CR> autocmd Filetype json nnoremap <leader>j :%!python -m json.tool<CR>
autocmd Filetype json set foldmethod=marker autocmd Filetype json set foldmethod=marker
autocmd Filetype racket set commentstring=;%s;
autocmd FileType sh map <F8> :!clear && shellcheck %<CR> autocmd FileType sh map <F8> :!clear && shellcheck %<CR>
autocmd Filetype taskdata set tw=0 autocmd Filetype taskdata set tw=0
autocmd FileType tex set updatetime=1000 timeoutlen=300 tw=65 autocmd FileType tex set updatetime=1000 timeoutlen=300 tw=65
@ -128,7 +129,7 @@ autocmd BufNewFile,BufRead key_* map <F1> :w<CR>:silent !sync-shortcuts<CR>
" ]]] commands for specific files " " ]]] commands for specific files "
" vim-plug [[[
" vim-plug [[[
" plug auto-install " plug auto-install
if empty(glob('~/.vim/autoload/plug.vim')) if empty(glob('~/.vim/autoload/plug.vim'))
silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs
@ -257,7 +258,6 @@ Plug 'jiangmiao/auto-pairs'
Plug 'henrik/vim-indexed-search' Plug 'henrik/vim-indexed-search'
Plug 'PotatoesMaster/i3-vim-syntax' Plug 'PotatoesMaster/i3-vim-syntax'
" vim file explorer " vim file explorer
Plug 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' }
Plug 'terryma/vim-multiple-cursors' Plug 'terryma/vim-multiple-cursors'
" let g:multi_cursor_select_all_word_key='<C-a>' " let g:multi_cursor_select_all_word_key='<C-a>'
let g:multi_cursor_exit_from_visual_mode=0 let g:multi_cursor_exit_from_visual_mode=0
@ -275,7 +275,7 @@ Plug 'djoshea/vim-autoread'
" Plug 'trapd00r/vim-syntax-vidir-ls' " Plug 'trapd00r/vim-syntax-vidir-ls'
Plug 'calviken/vim-gdscript3' Plug 'calviken/vim-gdscript3'
" display hex colors in Vim " display hex colors in Vim
Plug 'RRethy/vim-hexokinase'
" Plug 'RRethy/vim-hexokinase'
Plug 'junegunn/goyo.vim' Plug 'junegunn/goyo.vim'
" prevent commands being executed through modelines " " prevent commands being executed through modelines "
Plug 'ciaranm/securemodelines/' Plug 'ciaranm/securemodelines/'
@ -288,11 +288,11 @@ Plug 'kana/vim-textobj-user'
Plug 'rbonvall/vim-textobj-latex' Plug 'rbonvall/vim-textobj-latex'
" swap words " swap words
Plug 'tommcdo/vim-exchange' Plug 'tommcdo/vim-exchange'
Plug 'scrooloose/nerdtree'
let NERDTreeQuitOnOpen=1
let NERDTreeShowHidden=1
Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' }
Plug 'junegunn/fzf.vim'
" Plug 'scrooloose/nerdtree'
" let NERDTreeQuitOnOpen=1
" let NERDTreeShowHidden=1
" Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' }
" Plug 'junegunn/fzf.vim'
Plug 'christoomey/vim-tmux-navigator' Plug 'christoomey/vim-tmux-navigator'
" mappings [[[ " " mappings [[[ "
@ -317,6 +317,9 @@ Plug 'junegunn/vim-easy-align'
xmap ga <Plug>(EasyAlign) xmap ga <Plug>(EasyAlign)
" Start interactive EasyAlign for a motion/text object (e.g. gaip) " Start interactive EasyAlign for a motion/text object (e.g. gaip)
nmap ga <Plug>(EasyAlign) nmap ga <Plug>(EasyAlign)
Plug 'wlangstroth/vim-racket'
Plug 'neovimhaskell/haskell-vim'
Plug 'masukomi/vim-markdown-folding'
" ]]] vim-plug " " ]]] vim-plug "
" Mappings [[[ " " Mappings [[[ "
@ -409,6 +412,8 @@ nnoremap <leader>ll Vjgq
nnoremap <leader>m :vert Man nnoremap <leader>m :vert Man
" apply normal command to selection " apply normal command to selection
vnoremap <leader>n q:anorm vnoremap <leader>n q:anorm
" turn off autoformat"
nnoremap <leader>na :set spell spelllang=en_us formatoptions=cjMqtvw<CR>
nnoremap <leader>nt :NERDTree<CR> nnoremap <leader>nt :NERDTree<CR>
" check if in neovim " check if in neovim
nnoremap <leader>nv :echo has('nvim')<CR> nnoremap <leader>nv :echo has('nvim')<CR>
@ -553,12 +558,14 @@ autocmd Filetype c inoremap <localleader>uc unsigned char
autocmd BufNewFile,BufRead *.h nnoremap <localleader>x 0iextern <Esc>f{hc$;<Esc> autocmd BufNewFile,BufRead *.h nnoremap <localleader>x 0iextern <Esc>f{hc$;<Esc>
autocmd BufNewFile,BufRead ~/.habitctl/log nnoremap <localleader>d Gy3kGpf<Tab>hV3j<C-a>$rnj.j.j$.
autocmd Filetype fish inoremap <localleader>1 $argv[1] autocmd Filetype fish inoremap <localleader>1 $argv[1]
autocmd Filetype fish inoremap <localleader>2 $argv[2] autocmd Filetype fish inoremap <localleader>2 $argv[2]
autocmd Filetype javascript inoremap <localleader>x process.exit() autocmd Filetype javascript inoremap <localleader>x process.exit()
autocmd Filetype markdown inoremap <localleader>cb - [ ]
autocmd Filetype markdown inoremap <localleader>c - [ ]
autocmd Filetype markdown nnoremap <localleader>x 0f[lrx autocmd Filetype markdown nnoremap <localleader>x 0f[lrx
" nnoremap <localleader>x 0f[lrx " nnoremap <localleader>x 0f[lrx

3
dot_xinitrc.tmpl

@ -1,5 +1,6 @@
xrandr --setprovideroutputsource modesetting NVIDIA-0 xrandr --setprovideroutputsource modesetting NVIDIA-0
[[ -f ~/.Xresources ]] && xrdb -merge ~/.Xresources
# [[ -f ~/.Xresources ]] && xrdb -merge ~/.Xresources
[[ -f ~/.Xresources ]] && xrdb ~/.Xresources
# xrandr --auto # xrandr --auto
{{ if .ext_kb }} {{ if .ext_kb }}
xmodmap ~/.Xmodmap xmodmap ~/.Xmodmap

6
scripts/executable_backup

@ -23,9 +23,9 @@ case $2 in
sudo tar -czpvf "$backup_file" --exclude-from="$exclude_dirs_list" --exclude=/home / sudo tar -czpvf "$backup_file" --exclude-from="$exclude_dirs_list" --exclude=/home /
;; ;;
full )
sudo rsync -PraAX --exclude-from="$exclude_dirs_list_full" / "$backup_dest/full"
;;
# full )
# sudo rsync -PraAX --exclude-from="$exclude_dirs_list_full" / "$backup_dest/full"
# ;;
home ) home )
sudo rsync -PraAX --exclude-from="$exclude_dirs_list_full" /home "$backup_dest/full" sudo rsync -PraAX --exclude-from="$exclude_dirs_list_full" /home "$backup_dest/full"
esac esac
Loading…
Cancel
Save