diff --git a/bash/latex b/bash/latex new file mode 100644 index 0000000..d8c5636 --- /dev/null +++ b/bash/latex @@ -0,0 +1,3 @@ +#!/bin/bash + +alias tekclean='rm *.aux *.log *.pdf' diff --git a/bash/linux/dmenu_stuff b/bash/linux/dmenu_stuff new file mode 100644 index 0000000..e393676 --- /dev/null +++ b/bash/linux/dmenu_stuff @@ -0,0 +1,17 @@ +#!/bin/bash + +# Make a new dmenu shortcut +DMENU_CUSTOM_BIN="$HOME/.local/custom_dmenu"; + +[ ! -d $DMENU_CUSTOM_BIN ] && mkdir $DMENU_CUSTOM_BIN; + +function new_dmenu_command() { + local DMENU_BIN="$HOME/.local/custom_dmenu"; + + # fail withouut both arguments + [ ! $2 ] && exit 1; + + echo "${@:2}" + echo "${@:2}" > $DMENU_BIN/$1 2>/dev/null + chmod +x $DMENU_BIN/$1 +} diff --git a/bash/rentdynamics b/bash/rentdynamics index 6754f46..ad73be3 100644 --- a/bash/rentdynamics +++ b/bash/rentdynamics @@ -44,7 +44,7 @@ function rntbranchcleanup() { rnt $dir >/dev/null 2>/dev/null; if [ -d .git ]; then printf " - %s\e[1;34m %s\e[0m..." "clearing repository" "$dir"; - git branch -d $(git branch | sed -E "/master|\*/d") >/dev/null 2>/dev/null; + git branch -d $(git branch | sed -E "/master|\*|epic-*/d") >/dev/null 2>/dev/null; printf "\e[1;32m%s\e[0m\n" " DONE"; else printf " - \e[1;34m%s\e[1;31m %s\e[0m" "$dir" "is not a git repository"; diff --git a/bash/school b/bash/school index 1403de2..269842c 100644 --- a/bash/school +++ b/bash/school @@ -4,16 +4,16 @@ # ------------------------------------- alias school="cd $SCHOOL_DIR"; -alias classes="cat $SCHOOL_DIR/.classes"; +alias classes="echo; cat $SCHOOL_DIR/.classes | lolcat; echo"; -alias cs5680='school; cd cs5680__computer_vision'; -alias compvis='cs5680' +#alias cs5680='school; cd cs5680__computer_vision'; +#alias compvis='cs5680' alias cs5600='school; cd cs5600__intelligent_systems'; alias intsys='cs5600' -alias engr3080='school; cd engr3080__tech_writing'; -alias techwrit='engr3080' -alias phil1120='school; cd phil1120__social_ethics'; -alias socioet='phil1120' +#alias engr3080='school; cd engr3080__tech_writing'; +#alias techwrit='engr3080' +#alias phil1120='school; cd phil1120__social_ethics'; +#alias socioet='phil1120' HW_TEMPLATE="$DOTWRYN/latex/homework_template.tex" diff --git a/bash/utility b/bash/utility index c58881f..2855d07 100644 --- a/bash/utility +++ b/bash/utility @@ -2,8 +2,9 @@ # --- Shortcuts for quick ARANDR switch ----------------------- alias undock="$DOTWRYN/config/xserver/screenlayout/undock.sh"; -alias workdock="$DOTWRYN $HOME/.wryn/config/xserver/screenlayout/workdock.sh"; +alias workdock="$DOTWRYN/config/xserver/screenlayout/workdock.sh"; alias homedock="$DOTWRYN/config/xserver/screenlayout/homedock_hdmionly.sh"; +alias hdmidock="$DOTWRYN/config/xserver/screenlayout/hdmidock.sh"; # --- Note-taking facilitated --------------------------------- NOTE_PATH='/Users/w0ryn/Documents/notes'; diff --git a/config/xserver/screenlayout/undock.sh b/config/xserver/screenlayout/undock.sh index a3ab23c..3c1cefd 100755 --- a/config/xserver/screenlayout/undock.sh +++ b/config/xserver/screenlayout/undock.sh @@ -2,7 +2,8 @@ xrandr --output DP-0 --off\ --output DP-1 --off\ --output HDMI-0 --off\ - --output DP-3 --off --output DP-4 --off\ + --output DP-3 --off\ + --output DP-4 --off\ --output DP-2 --primary --mode 2880x1800 --scale 0.8x0.8 --pos 0x0 --rotate normal ROLL=$(($RANDOM%10)); diff --git a/config/xserver/screenlayout/workdock.sh b/config/xserver/screenlayout/workdock.sh index 485e846..f75d49d 100755 --- a/config/xserver/screenlayout/workdock.sh +++ b/config/xserver/screenlayout/workdock.sh @@ -1,10 +1,25 @@ #!/bin/sh -xrandr --output DP-0 --off\ - --output DP-4 --off\ - --output HDMI-0 --off\ - --output DP-1 --mode 1920x1080 --pos 0x0 --rotate normal\ - --output DP-2 --mode 2880x1800 --pos 3840x0 --rotate normal --scale 0.8x0.8\ - --output DP-3 --mode 1920x1080 --pos 1920x0 --rotate normal +if xrandr | grep -q "DP-0 connected"; then + xrandr \ + --output DP-0 --mode 1920x1080 --pos 0x0 --rotate normal --scale 1.5x1.5 --primary\ + --output DP-1 --off\ + --output DP-2 --mode 2880x1800 --pos 5760x0 --rotate normal --scale 0.8x0.8\ + --output DP-3 --off\ + --output DP-4 --mode 1920x1080 --pos 2880x0 --rotate normal --scale 1.5x1.5\ + --output HDMI-0 --off\ + ; +else + xrandr \ + --output DP-0 --off\ + --output HDMI-0 --off\ + --output DP-1 --mode 1920x1080 --pos 0x0 --rotate normal --scale 1.5x1.5 --primary\ + --output DP-2 --mode 2880x1800 --pos 5760x0 --rotate normal --scale 0.8x0.8\ + --output DP-3 --mode 1920x1080 --pos 2880x0 --rotate normal --scale 1.5x1.5\ + --output DP-4 --off\ + ; +fi + + ROLL=$(($RANDOM%4)); @@ -23,13 +38,13 @@ elif [ $ROLL -eq 1 ]; then >/dev/null 2>&1 elif [ $ROLL -eq 2 ]; then feh --bg-fill\ - $HOME/Pictures/bg/roy.jpg\ $HOME/Pictures/bg/fe8.jpg\ $HOME/Pictures/bg/micaiah.jpg\ + $HOME/Pictures/bg/roy.jpg\ >/dev/null 2>&1 elif [ $ROLL -eq 3 ]; then feh --bg-fill\ - $HOME/Pictures/bg/chrom.jpg\ + $HOME/Pictures/bg/chrom.png\ $HOME/Pictures/bg/byleth.jpg\ $HOME/Pictures/bg/link.jpg\ >/dev/null 2>&1 diff --git a/tmux/tmux.conf b/tmux/tmux.conf new file mode 100644 index 0000000..9d3a86e --- /dev/null +++ b/tmux/tmux.conf @@ -0,0 +1,38 @@ +# pane switch with vim-like controls +bind -n M-h select-pane -L +bind -n M-j select-pane -D +bind -n M-k select-pane -U +bind -n M-l select-pane -R + +set -s escape-time 0 + +bind -n M-H resize-pane -L 2 +bind -n M-J resize-pane -D 2 +bind -n M-K resize-pane -U 2 +bind -n M-L resize-pane -R 2 + +# alt tab for window shift +bind-key -n M-Tab next-window +bind-key -n M-BTab previous-window + +# alt number for switch +bind-key -n M-1 select-window -t 0 +bind-key -n M-2 select-window -t 1 +bind-key -n M-3 select-window -t 2 +bind-key -n M-4 select-window -t 3 +bind-key -n M-5 select-window -t 4 +bind-key -n M-6 select-window -t 5 +bind-key -n M-7 select-window -t 6 +bind-key -n M-8 select-window -t 7 +bind-key -n M-9 select-window -t 8 + + +# new window and split pane quickly +bind-key -n M-c new-window +bind-key -n M-v split-window -v +bind-key -n M-b split-window -h +bind-key -n M-q killp + + +# quick reload +bind-key r source-file ~/.tmux.conf\; display "TMUX CONFIG RELOADED" diff --git a/vim/abbreviations.vim b/vim/abbreviations.vim index d5c2d64..fc89812 100644 --- a/vim/abbreviations.vim +++ b/vim/abbreviations.vim @@ -2,5 +2,17 @@ iabbrev @@ wagner.wryn@gmail.com iabbrev ssig -----------------------Wryn Wagnerwagner.wryn@gmail.com(720)557-5443----------------------- +iabbrev asas // arrange // act // assert +iabbrev aaaa /* arrange */ /* act */ /* assert */ +iabbrev apap # arrange # act # assert +iabbrev acac % arrange % act % assert + + +" -- JAVA -------------------------------------------- {{{ iabbrev psvm public static void main(String[] args) {} " }}} + +" -- MARKDOWN ---------------------------------------- {{{ +iabbrev termdef ## Terms and DefinitionsTerm \| Definition--- \| --- +" }}} +" }}} diff --git a/vim/en.utf-8.add b/vim/en.utf-8.add index 438a048..ffa57ed 100644 --- a/vim/en.utf-8.add +++ b/vim/en.utf-8.add @@ -38,3 +38,4 @@ Mixpanel Analytica Analytica's backpropagation +literalized diff --git a/vim/en.utf-8.add.spl b/vim/en.utf-8.add.spl index 1d3e74b..870f282 100644 Binary files a/vim/en.utf-8.add.spl and b/vim/en.utf-8.add.spl differ diff --git a/vim/my_colors.vim b/vim/my_colors.vim index 4405dc1..2bde7d6 100644 --- a/vim/my_colors.vim +++ b/vim/my_colors.vim @@ -13,5 +13,6 @@ colorscheme moss " BG-Black , FONT-BlueishWhite , SYNTAX-Light " colorscheme default " colorscheme snow +set t_Co=256 " transparent background highlight Normal guibg=NONE ctermbg=NONE diff --git a/vim/rd_formatting.vim b/vim/rd_formatting.vim index 26514b0..d1dccff 100644 --- a/vim/rd_formatting.vim +++ b/vim/rd_formatting.vim @@ -5,6 +5,8 @@ augroup rent_dynamics autocmd BufRead,BufEnter,BufNewFile */RentDynamics/*.cs setlocal tabstop=2 softtabstop=2 shiftwidth=2 autocmd BufRead,BufEnter,BufNewFile */RentDynamics/*.ts* setlocal tabstop=2 softtabstop=2 shiftwidth=2 autocmd BufRead,BufEnter,BufNewFile */RentDynamics/*.scss setlocal tabstop=2 softtabstop=2 shiftwidth=2 + autocmd BufRead,BufEnter,BufNewFile */RentDynamics/*.less setlocal tabstop=2 softtabstop=2 shiftwidth=2 + autocmd BufRead,BufEnter,BufNewFile */RentDynamics/*.css setlocal tabstop=2 softtabstop=2 shiftwidth=2 autocmd BufRead,BufEnter,BufNewFile */lead-mgmt-api-v1/* setlocal expandtab autocmd BufRead,BufEnter,BufNewFile */lead-mgmt-api-v1/*.cs setlocal tabstop=2 softtabstop=2 shiftwidth=2 diff --git a/vim/vundle.vim b/vim/vundle.vim index 4994229..fc0bc8b 100644 --- a/vim/vundle.vim +++ b/vim/vundle.vim @@ -64,7 +64,8 @@ function! ToggleYCM() endif endfunction nnoremap :call ToggleYCM() -let g:ycm_auto_trigger=0 +" STARTS DEACTIVATED +" let g:ycm_auto_trigger=0 " --- ALE --- let g:ale_linters = {