From f9c3fe52fed6ef05401807e32c9f2b81b0316067 Mon Sep 17 00:00:00 2001 From: Kevin Mok Date: Sat, 20 Oct 2018 20:24:37 -0400 Subject: [PATCH] Update --- aliases/zsh_aliases | 14 +++++++++----- configs/i3/config | 9 +++++---- dotfiles/vimrc | 4 ++++ 3 files changed, 18 insertions(+), 9 deletions(-) diff --git a/aliases/zsh_aliases b/aliases/zsh_aliases index 197752e..15a6c69 100644 --- a/aliases/zsh_aliases +++ b/aliases/zsh_aliases @@ -35,7 +35,7 @@ function ideb() { sudo dpkg -i $1 ; } function cld() { colordiff -y --suppress-common-lines $1 $2 ; } alias grep='grep --color=auto' # for finding files by name -function rfnd() { find . -name "$1" ; } +function rf() { find . -name "$1" ; } # find text inside files function rg() { grep -nr $1 * ; } function cpd() { cp -avr $1 $2 ; } @@ -67,7 +67,7 @@ alias fd="f ~/Downloads" function mvd() { mv $1 ~/Downloads ; } alias fds="f ~/Downloads/sch" alias doc="f ~/Documents" -alias wo="f ~/Documents/workout-logs/9" +alias wo="f ~/Documents/workout-logs/10" alias cfg="f ~/.config" # }}} directory-related # @@ -106,7 +106,7 @@ function rt() { # sound alias vlm="alsamixer -c 0" -alias vlmh="alsamixer -c 3" +alias vlh="alsamixer -c 1" # apt function apti() { sudo apt install $1 ; } @@ -283,7 +283,7 @@ alias cdn="$cd_coding_dir" alias ans="f /usr/local/android-studio/bin && ./studio.sh" alias gx="ni ~/Documents/csgo-config/autoexec.cfg" alias jnd="f ~/Documents/journal" -alias jn="ni ~/Documents/journal/todo/9.md" +alias jn="ni ~/Documents/journal/todo/10.md" alias jnt="ni ~/Documents/journal/todo/todo.md" alias rs="f ~/Documents/runescape" @@ -347,6 +347,10 @@ alias sta="f ~/Documents/school/sta" # 236 alias 236="f ~/Documents/school/236" -alias a1="f ~/Documents/school/latex-notes/236/a1" +# alias a1="f ~/Documents/school/latex-notes/236/a1" + +# 343 +alias 343="f ~/Documents/school/343" +alias a1="f ~/Documents/school/latex-notes/343/a1" # }}} school # diff --git a/configs/i3/config b/configs/i3/config index 0def859..b12d870 100644 --- a/configs/i3/config +++ b/configs/i3/config @@ -139,7 +139,7 @@ workspace $ws2 output $samsung bindsym $mod+F2 workspace $ws2; exec $def_term set $ws3 "3 " -workspace $ws3 output $samsung +workspace $ws3 output $benq bindsym $mod+F3 workspace $ws3; exec $browser set $ws4 "4 " @@ -147,15 +147,16 @@ workspace $ws4 output $samsung bindsym $mod+F4 workspace $ws4; exec $def_term set $ws5 "5 " -workspace $ws5 output $benq +workspace $ws5 output $samsung bindsym $mod+F5 workspace $ws5; exec $browser bindsym Mod4+g workspace $ws5; layout stacking; exec steam set $ws6 "6 " workspace $ws6 output $samsung +assign [class="Slack"] $ws6 +assign [class="discord"] $ws6 bindsym Mod4+d workspace $ws6; exec discord bindsym Mod4+k workspace $ws6; exec slack -assign [class="Slack"] $ws6 set $ws7 "7 " workspace $ws7 output $samsung @@ -170,7 +171,7 @@ workspace $ws9 output $samsung bindsym $mod+F9 workspace $ws9; exec $def_term set $ws10 "10 🎵" -assign [class="VirtualBox"] $ws10 +assign [class="spotify"] $ws10 workspace $ws10 output $samsung bindsym $mod+F10 workspace $ws10; exec $def_term bindsym Mod4+s workspace $ws10; exec spotify diff --git a/dotfiles/vimrc b/dotfiles/vimrc index a8014d7..a504374 100644 --- a/dotfiles/vimrc +++ b/dotfiles/vimrc @@ -152,6 +152,8 @@ nnoremap | let mapleader="\" " replace vim-commentary Markdown comments with HTML nnoremap cmt :%s/>\(.*\)>//g +" delete entire buffer +nnoremap dg ggdG " delete line into system clipboard nnoremap D "+dd " delete entire buffer into system clipboard @@ -213,6 +215,7 @@ let maplocalleader="-" autocmd Filetype c inoremap s struct pixel " tex {{{ " +autocmd Filetype tex inoremap bt \bowtie autocmd Filetype tex inoremap D \Delta autocmd Filetype tex inoremap e \exists autocmd Filetype tex inoremap ep \epsilon @@ -223,6 +226,7 @@ autocmd Filetype tex inoremap l \leq autocmd Filetype tex inoremap lr \Leftrightarrow autocmd Filetype tex inoremap n \neg autocmd Filetype tex inoremap N \mathbb{N} +autocmd Filetype tex inoremap q \qquad autocmd Filetype tex inoremap R \Rightarrow autocmd Filetype tex inoremap st such that autocmd Filetype tex inoremap t \times