Browse Source

Update

red-hat-laptop
Kevin Mok 6 years ago
parent
commit
f9c3fe52fe
  1. 14
      aliases/zsh_aliases
  2. 9
      configs/i3/config
  3. 4
      dotfiles/vimrc

14
aliases/zsh_aliases

@ -35,7 +35,7 @@ function ideb() { sudo dpkg -i $1 ; }
function cld() { colordiff -y --suppress-common-lines $1 $2 ; } function cld() { colordiff -y --suppress-common-lines $1 $2 ; }
alias grep='grep --color=auto' alias grep='grep --color=auto'
# for finding files by name # for finding files by name
function rfnd() { find . -name "$1" ; }
function rf() { find . -name "$1" ; }
# find text inside files # find text inside files
function rg() { grep -nr $1 * ; } function rg() { grep -nr $1 * ; }
function cpd() { cp -avr $1 $2 ; } function cpd() { cp -avr $1 $2 ; }
@ -67,7 +67,7 @@ alias fd="f ~/Downloads"
function mvd() { mv $1 ~/Downloads ; } function mvd() { mv $1 ~/Downloads ; }
alias fds="f ~/Downloads/sch" alias fds="f ~/Downloads/sch"
alias doc="f ~/Documents" alias doc="f ~/Documents"
alias wo="f ~/Documents/workout-logs/9"
alias wo="f ~/Documents/workout-logs/10"
alias cfg="f ~/.config" alias cfg="f ~/.config"
# }}} directory-related # # }}} directory-related #
@ -106,7 +106,7 @@ function rt() {
# sound # sound
alias vlm="alsamixer -c 0" alias vlm="alsamixer -c 0"
alias vlmh="alsamixer -c 3"
alias vlh="alsamixer -c 1"
# apt # apt
function apti() { sudo apt install $1 ; } 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 ans="f /usr/local/android-studio/bin && ./studio.sh"
alias gx="ni ~/Documents/csgo-config/autoexec.cfg" alias gx="ni ~/Documents/csgo-config/autoexec.cfg"
alias jnd="f ~/Documents/journal" 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 jnt="ni ~/Documents/journal/todo/todo.md"
alias rs="f ~/Documents/runescape" alias rs="f ~/Documents/runescape"
@ -347,6 +347,10 @@ alias sta="f ~/Documents/school/sta"
# 236 # 236
alias 236="f ~/Documents/school/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 # # }}} school #

9
configs/i3/config

@ -139,7 +139,7 @@ workspace $ws2 output $samsung
bindsym $mod+F2 workspace $ws2; exec $def_term bindsym $mod+F2 workspace $ws2; exec $def_term
set $ws3 "3 " set $ws3 "3 "
workspace $ws3 output $samsung
workspace $ws3 output $benq
bindsym $mod+F3 workspace $ws3; exec $browser bindsym $mod+F3 workspace $ws3; exec $browser
set $ws4 "4 " set $ws4 "4 "
@ -147,15 +147,16 @@ workspace $ws4 output $samsung
bindsym $mod+F4 workspace $ws4; exec $def_term bindsym $mod+F4 workspace $ws4; exec $def_term
set $ws5 "5 " set $ws5 "5 "
workspace $ws5 output $benq
workspace $ws5 output $samsung
bindsym $mod+F5 workspace $ws5; exec $browser bindsym $mod+F5 workspace $ws5; exec $browser
bindsym Mod4+g workspace $ws5; layout stacking; exec steam bindsym Mod4+g workspace $ws5; layout stacking; exec steam
set $ws6 "6 " set $ws6 "6 "
workspace $ws6 output $samsung workspace $ws6 output $samsung
assign [class="Slack"] $ws6
assign [class="discord"] $ws6
bindsym Mod4+d workspace $ws6; exec discord bindsym Mod4+d workspace $ws6; exec discord
bindsym Mod4+k workspace $ws6; exec slack bindsym Mod4+k workspace $ws6; exec slack
assign [class="Slack"] $ws6
set $ws7 "7 " set $ws7 "7 "
workspace $ws7 output $samsung workspace $ws7 output $samsung
@ -170,7 +171,7 @@ workspace $ws9 output $samsung
bindsym $mod+F9 workspace $ws9; exec $def_term bindsym $mod+F9 workspace $ws9; exec $def_term
set $ws10 "10 🎵" set $ws10 "10 🎵"
assign [class="VirtualBox"] $ws10
assign [class="spotify"] $ws10
workspace $ws10 output $samsung workspace $ws10 output $samsung
bindsym $mod+F10 workspace $ws10; exec $def_term bindsym $mod+F10 workspace $ws10; exec $def_term
bindsym Mod4+s workspace $ws10; exec spotify bindsym Mod4+s workspace $ws10; exec spotify

4
dotfiles/vimrc

@ -152,6 +152,8 @@ nnoremap <C-w> <C-W>|
let mapleader="\<Space>" let mapleader="\<Space>"
" replace vim-commentary Markdown comments with HTML " replace vim-commentary Markdown comments with HTML
nnoremap <leader>cmt :%s/>\(.*\)>/<!---\1-->/g<CR> nnoremap <leader>cmt :%s/>\(.*\)>/<!---\1-->/g<CR>
" delete entire buffer
nnoremap <leader>dg ggdG
" delete line into system clipboard " delete line into system clipboard
nnoremap <leader>D "+dd nnoremap <leader>D "+dd
" delete entire buffer into system clipboard " delete entire buffer into system clipboard
@ -213,6 +215,7 @@ let maplocalleader="-"
autocmd Filetype c inoremap <localleader>s struct pixel autocmd Filetype c inoremap <localleader>s struct pixel
" tex {{{ " " tex {{{ "
autocmd Filetype tex inoremap <localleader>bt \bowtie
autocmd Filetype tex inoremap <localleader>D \Delta autocmd Filetype tex inoremap <localleader>D \Delta
autocmd Filetype tex inoremap <localleader>e \exists autocmd Filetype tex inoremap <localleader>e \exists
autocmd Filetype tex inoremap <localleader>ep \epsilon autocmd Filetype tex inoremap <localleader>ep \epsilon
@ -223,6 +226,7 @@ autocmd Filetype tex inoremap <localleader>l \leq
autocmd Filetype tex inoremap <localleader>lr \Leftrightarrow autocmd Filetype tex inoremap <localleader>lr \Leftrightarrow
autocmd Filetype tex inoremap <localleader>n \neg autocmd Filetype tex inoremap <localleader>n \neg
autocmd Filetype tex inoremap <localleader>N \mathbb{N} autocmd Filetype tex inoremap <localleader>N \mathbb{N}
autocmd Filetype tex inoremap <localleader>q \qquad
autocmd Filetype tex inoremap <localleader>R \Rightarrow autocmd Filetype tex inoremap <localleader>R \Rightarrow
autocmd Filetype tex inoremap <localleader>st such that autocmd Filetype tex inoremap <localleader>st such that
autocmd Filetype tex inoremap <localleader>t \times autocmd Filetype tex inoremap <localleader>t \times

Loading…
Cancel
Save