diff --git a/aliases/zsh_aliases b/aliases/zsh_aliases index 15a6c69..73d6c29 100644 --- a/aliases/zsh_aliases +++ b/aliases/zsh_aliases @@ -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/10" +alias wo="f ~/Documents/workout-logs/11" alias cfg="f ~/.config" # }}} 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 auc5="xdotool click --repeat 1000000 --delay 500 1" # 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 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" # python related {{{ # @@ -283,9 +284,9 @@ 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/10.md" +alias jn="ni ~/Documents/journal/todo/11.md" alias jnt="ni ~/Documents/journal/todo/todo.md" -alias rs="f ~/Documents/runescape" +# alias rs="f ~/Documents/runescape" # ideas {{{ # @@ -311,9 +312,12 @@ alias sv="f $spv_dir/src" alias svl="f $spv_dir/src/login" alias sva="f $spv_dir/src/api" 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() { - source api-keys.sh source ../bin/activate python manage.py runserver } @@ -323,7 +327,7 @@ function mig() { python manage.py migrate --run-syncdb ssv } -alias cldb="python manage.py flush --no-input" +alias cldb="python manage.py flush --no-input && ssv" alias djs="python manage.py shell" # }}} spotify-lib-vis # @@ -347,10 +351,18 @@ alias sta="f ~/Documents/school/sta" # 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 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 # diff --git a/configs/i3/config b/configs/i3/config index b12d870..be3ff5f 100644 --- a/configs/i3/config +++ b/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+4 exec redshift -O 3000 bindsym $mod+Mod4+5 exec redshift -O 4000 +bindsym $mod+Mod4+6 exec redshift -O 5000 bindsym $mod+Mod4+0 exec redshift -x # }}} redshift # @@ -154,7 +155,6 @@ 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 @@ -177,6 +177,7 @@ bindsym $mod+F10 workspace $ws10; exec $def_term bindsym Mod4+s workspace $ws10; exec spotify set $ws11 "11 " +assign [class="Summoners War Exporter"] $ws11 workspace $ws11 output $benq 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 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 # Media player controls diff --git a/configs/ranger/bookmarks b/configs/ranger/bookmarks index 56db7b5..404b68b 100644 --- a/configs/ranger/bookmarks +++ b/configs/ranger/bookmarks @@ -1 +1 @@ -':/home/kevin/Pictures/Backgrounds/dim +':/home/kevin/coding/spotify-lib-vis/src diff --git a/dotfiles/vimrc b/dotfiles/vimrc index a504374..a9095b9 100644 --- a/dotfiles/vimrc +++ b/dotfiles/vimrc @@ -25,7 +25,7 @@ set hlsearch autocmd VimResized * wincmd = 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 Filetype markdown set textwidth=0 @@ -102,6 +102,7 @@ Plug 'easymotion/vim-easymotion' " status bar displaying various info about the current buffer Plug 'vim-airline/vim-airline' + let g:airline_section_c = '%F' Plug 'vim-airline/vim-airline-themes' " continue Markdown lists when started @@ -116,6 +117,10 @@ Plug 'tpope/vim-repeat' " better Django support Plug 'tweekmonster/django-plus.vim' +" auto-close brackets +Plug 'jiangmiao/auto-pairs' + let g:AutoPairsMapSpace = 0 + call plug#end() " colorscheme gotham256 @@ -230,7 +235,8 @@ 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 -autocmd Filetype tex inoremap T $T$ +" autocmd Filetype tex inoremap T $T$ +autocmd Filetype tex inoremap T \Theta " replace bars/underscores in URL autocmd Filetype tex inoremap url :.s/\([-_]\)/\\\1/g autocmd Filetype tex inoremap v \vee