Browse Source

Update

red-hat-laptop
Kevin Mok 6 years ago
parent
commit
46e4790a8c
  1. 34
      aliases/zsh_aliases
  2. 5
      configs/i3/config
  3. 2
      configs/ranger/bookmarks
  4. 10
      dotfiles/vimrc

34
aliases/zsh_aliases

@ -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/10"
alias wo="f ~/Documents/workout-logs/11"
alias cfg="f ~/.config" alias cfg="f ~/.config"
# }}} directory-related # # }}} directory-related #
@ -159,13 +159,14 @@ function auc() { xdotool click --repeat 1000000 --delay $1 1 ; }
# alias auc3="xdotool click --repeat 1000000 --delay 300 1" # alias auc3="xdotool click --repeat 1000000 --delay 300 1"
# alias auc5="xdotool click --repeat 1000000 --delay 500 1" # alias auc5="xdotool click --repeat 1000000 --delay 500 1"
# alias kauc="pkill -f xdotool" # alias kauc="pkill -f xdotool"
alias rsl="java -jar ~/Downloads/RuneLite.jar"
# alias rsl="java -jar ~/Downloads/RuneLite.jar"
alias swex="sudo nohup ~/Downloads/swex.appimage > /dev/null 2>&1&"
alias vbn="cvlc --loop --alsa-gain 1 ~/Music/brown-noise.mp3" alias vbn="cvlc --loop --alsa-gain 1 ~/Music/brown-noise.mp3"
alias rmsw="rm .sw*" alias rmsw="rm .sw*"
# function rs(){ redshift -O $(echo "scale=2;$1*1000" | bc) ; }
function rds(){ redshift -O $1 ; }
function rs(){ redshift -O $(echo "scale=2;$1*1000" | bc) ; }
# function rds(){ redshift -O $1 ; }
alias rx="redshift -x" alias rx="redshift -x"
# python related {{{ # # python related {{{ #
@ -283,9 +284,9 @@ 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/10.md"
alias jn="ni ~/Documents/journal/todo/11.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"
# ideas {{{ # # ideas {{{ #
@ -311,9 +312,12 @@ alias sv="f $spv_dir/src"
alias svl="f $spv_dir/src/login" alias svl="f $spv_dir/src/login"
alias sva="f $spv_dir/src/api" alias sva="f $spv_dir/src/api"
alias svg="f $spv_dir/src/graphs" alias svg="f $spv_dir/src/graphs"
alias ft="f templates"
alias slh="f ~/Music/spotify-history"
# removes all but newest file
alias rmol="ls -t | tail -n +2 | xargs rm -- &&"
source ~/coding/spotify-lib-vis/src/api-keys.sh
# source "$spv_dir""/src/api-keys.sh"
function ssv() { function ssv() {
source api-keys.sh
source ../bin/activate source ../bin/activate
python manage.py runserver python manage.py runserver
} }
@ -323,7 +327,7 @@ function mig() {
python manage.py migrate --run-syncdb python manage.py migrate --run-syncdb
ssv ssv
} }
alias cldb="python manage.py flush --no-input"
alias cldb="python manage.py flush --no-input && ssv"
alias djs="python manage.py shell" alias djs="python manage.py shell"
# }}} spotify-lib-vis # # }}} spotify-lib-vis #
@ -347,10 +351,18 @@ 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 a2="f ~/Documents/school/latex-notes/236/a2"
# 343 # 343
alias 343="f ~/Documents/school/343" alias 343="f ~/Documents/school/343"
alias a1="f ~/Documents/school/latex-notes/343/a1"
# alias a1="f ~/Documents/school/latex-notes/343/a1"
alias ij="sudo ~/Downloads/idea/bin/idea.sh"
alias a2="f ~/Documents/school/343/a2"
alias a2j="f ~/Documents/school/343/a2/java/src"
alias q2="psql -U postgres -d 343-a2 -f q2-test.sql"
alias q2a="psql -U postgres -d 343-a2 -f q2.sql"
alias q4="psql -U postgres -d 343-a2 -f q4-test.sql"
alias q4a="psql -U postgres -d 343-a2 -f q4.sql"
# }}} school # # }}} school #

5
configs/i3/config

@ -44,6 +44,7 @@ bindsym $mod+Mod4+2 exec redshift -O 2000
bindsym $mod+Mod4+3 exec redshift -O 2500 bindsym $mod+Mod4+3 exec redshift -O 2500
bindsym $mod+Mod4+4 exec redshift -O 3000 bindsym $mod+Mod4+4 exec redshift -O 3000
bindsym $mod+Mod4+5 exec redshift -O 4000 bindsym $mod+Mod4+5 exec redshift -O 4000
bindsym $mod+Mod4+6 exec redshift -O 5000
bindsym $mod+Mod4+0 exec redshift -x bindsym $mod+Mod4+0 exec redshift -x
# }}} redshift # # }}} redshift #
@ -154,7 +155,6 @@ 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="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
@ -177,6 +177,7 @@ bindsym $mod+F10 workspace $ws10; exec $def_term
bindsym Mod4+s workspace $ws10; exec spotify bindsym Mod4+s workspace $ws10; exec spotify
set $ws11 "11 " set $ws11 "11 "
assign [class="Summoners War Exporter"] $ws11
workspace $ws11 output $benq workspace $ws11 output $benq
bindsym $mod+F11 workspace $ws11; exec $def_term bindsym $mod+F11 workspace $ws11; exec $def_term
@ -311,6 +312,8 @@ bindsym $mod+o exec ~/linux-config/change-sink.sh line-out
bindsym XF86AudioRaiseVolume exec --no-startup-id amixer -c 0 sset Master 3+ bindsym XF86AudioRaiseVolume exec --no-startup-id amixer -c 0 sset Master 3+
bindsym XF86AudioLowerVolume exec --no-startup-id amixer -c 0 sset Master 3- bindsym XF86AudioLowerVolume exec --no-startup-id amixer -c 0 sset Master 3-
bindsym control+$mod+plus exec --no-startup-id amixer -c 1 sset PCM 3+
bindsym control+$mod+minus exec --no-startup-id amixer -c 1 sset PCM 3-
bindsym XF86AudioMute exec --no-startup-id amixer -D pulse set Master 0+ toggle bindsym XF86AudioMute exec --no-startup-id amixer -D pulse set Master 0+ toggle
# Media player controls # Media player controls

2
configs/ranger/bookmarks

@ -1 +1 @@
':/home/kevin/Pictures/Backgrounds/dim
':/home/kevin/coding/spotify-lib-vis/src

10
dotfiles/vimrc

@ -25,7 +25,7 @@ set hlsearch
autocmd VimResized * wincmd = autocmd VimResized * wincmd =
autocmd BufNewFile,BufRead .* set syntax=sh autocmd BufNewFile,BufRead .* set syntax=sh
autocmd Filetype css,html,tex,txt set tabstop=2 shiftwidth=2 expandtab
autocmd Filetype css,html,tex,txt,markdown set tabstop=2 shiftwidth=2 expandtab
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
@ -102,6 +102,7 @@ Plug 'easymotion/vim-easymotion'
" status bar displaying various info about the current buffer " status bar displaying various info about the current buffer
Plug 'vim-airline/vim-airline' Plug 'vim-airline/vim-airline'
let g:airline_section_c = '%F'
Plug 'vim-airline/vim-airline-themes' Plug 'vim-airline/vim-airline-themes'
" continue Markdown lists when started " continue Markdown lists when started
@ -116,6 +117,10 @@ Plug 'tpope/vim-repeat'
" better Django support " better Django support
Plug 'tweekmonster/django-plus.vim' Plug 'tweekmonster/django-plus.vim'
" auto-close brackets
Plug 'jiangmiao/auto-pairs'
let g:AutoPairsMapSpace = 0
call plug#end() call plug#end()
" colorscheme gotham256 " colorscheme gotham256
@ -230,7 +235,8 @@ 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
autocmd Filetype tex inoremap <localleader>T $T$
" autocmd Filetype tex inoremap <localleader>T $T$
autocmd Filetype tex inoremap <localleader>T \Theta
" replace bars/underscores in URL " replace bars/underscores in URL
autocmd Filetype tex inoremap <localleader>url :.s/\([-_]\)/\\\1/g<CR> autocmd Filetype tex inoremap <localleader>url :.s/\([-_]\)/\\\1/g<CR>
autocmd Filetype tex inoremap <localleader>v \vee autocmd Filetype tex inoremap <localleader>v \vee

Loading…
Cancel
Save