# Both PC/Laptop {{{ if [ "$(whoami)" == "kevin" ]; then alias vbn="cvlc --loop --alsa-gain 1 ~/Downloads/brown-noise.mp3" # school {{{ # alias mt="ok ~/Documents/School/calc-textbook.pdf" alias clc="gcalccmd" alias 6t="ok ~/Documents/School/236-textbook.pdf" alias doc="d ~/Documents" # }}} school # # i3 {{{ # alias v3="vi ~/.config/i3/config" alias v3b="vi ~/.config/i3blocks/i3blocks.conf" alias i3b="d /usr/share/i3blocks" # }}} i3 # # coding projs {{{ # cd_coding_dir="d ~/Documents/coding" alias ans="d /usr/local/android-studio/bin && ./studio.sh" alias cdn="$cd_coding_dir" alias tb="$cd_coding_dir/trapbot" alias vtb="$cd_coding_dir/trapbot && vi trapbot.py" alias ptb="python trapbot.py" # }}} coding projs # bl() { xbacklight -set $1 ; } cld() { colordiff -y --suppress-common-lines $1 $2 ; } fi # Both PC/Laptop }}} # NZXT {{{ if [ "$(hostname)" == "NZXT" ]; then # rotate monitor {{{ # rt() { output="HDMI-0" if [ "$1" = "s" ] # if [ "${1:0:1}" = "s" ] then output="DVI-I-1" fi dir="normal" if [ "$2" = "r" ] # if [ "${1:1:2}" = "r" ] then dir="right" fi if [ "$2" = "l" ] then dir="left" fi # echo "xrandr --output \"$output\" --rotate \"$dir\"" xrandr --output "$output" --rotate "$dir" } # }}} rotate monitor # # audio {{{ # alias alsi="pactl list short sink-inputs" alias als="pactl list short sinks" amsih() { pactl move-sink-input $1 0 ; } amsis() { pactl move-sink-input $1 1 ; } # }}} audio # # apps {{{ # chr() { google-chrome $1 ; } alias nem="nemo ." alias spt="speedtest" alias pg="ping -c 5 google.ca" alias w7="VBoxManage startvm W7 --type headless" # }}} apps # # various coding projs {{{ # alias res="vi ~/Documents/resume/README.md" alias sfa="d ~/Documents/self-authoring" alias rcg="$cd_coding_dir/random-color-generator" alias dcr="$cd_coding_dir/dcr-logger" alias pf="$cd_coding_dir/ParsaFood" alias sb="$cd_coding_dir/swbot" # alias psb="p3 create_skills_dict.py" # alias psbo="p3 create_skills_dict.py > output.py" alias psb="p3 create_monster_dict.py" alias psbo="p3 create_monster_dict.py > output.py" # }}} various coding projs # fi # NZXT }}} # Laptop {{{ if [ "$(hostname)" == "X1-Carbon" ]; then # key swaps {{{ # xmodmap -e "keycode 9 = Escape" xmodmap -e "keycode 22 = Home" xmodmap -e "keycode 119 = End" xmodmap -e "keycode 110 = Delete" xmodmap -e "keycode 115 = BackSpace" # }}} key swaps # alias thn="thunar ." alias plz="d ~/platterz2018/ocr-reader/app/src/main/java/com/google/android/gms/samples/vision/ocrreader" alias ans="d /usr/local/android-studio/bin/" fi # Laptop }}}