You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
91 lines
2.3 KiB
91 lines
2.3 KiB
# Both PC/Laptop {{{
|
|
if [ "$(whoami)" == "kevin" ]; then
|
|
alias vbn="cvlc --loop --alsa-gain 1 ~/Downloads/brown-noise.mp3"
|
|
|
|
alias mt="ok ~/Documents/School/calc-textbook.pdf"
|
|
alias clc="gcalccmd"
|
|
alias 6t="ok ~/Documents/School/236-textbook.pdf"
|
|
alias doc="d ~/Documents"
|
|
|
|
alias v3="vi ~/.config/i3/config"
|
|
alias v3b="vi ~/.config/i3blocks/i3blocks.conf"
|
|
alias i3b="d /usr/share/i3blocks"
|
|
alias ans="d /usr/local/android-studio/bin && ./studio.sh"
|
|
|
|
cld() { colordiff -y --suppress-common-lines $1 $2 ; }
|
|
fi
|
|
# Both PC/Laptop }}}
|
|
|
|
# NZXT {{{
|
|
if [ "$(hostname)" == "NZXT" ]; then
|
|
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"
|
|
}
|
|
|
|
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 ; }
|
|
|
|
alias w7="VBoxManage startvm W7 --type headless"
|
|
|
|
chr() { google-chrome $1 ; }
|
|
alias nem="nemo ."
|
|
alias spt="speedtest"
|
|
alias pg="ping -c 5 google.ca"
|
|
|
|
cd_coding_dir="d ~/Documents/coding"
|
|
alias cdn="$cd_coding_dir"
|
|
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 tb="$cd_coding_dir/trapbot"
|
|
alias vtb="$cd_coding_dir/trapbot && vi trapbot.py"
|
|
alias ptb="python trapbot.py"
|
|
alias ptbo="python trapbot.py > output.py"
|
|
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"
|
|
|
|
# xset r rate 200 75
|
|
# xmodmap -e "clear Lock"
|
|
# xmodmap -e "keycode 22 = Caps_Lock"
|
|
# xmodmap -e "keycode 66 = BackSpace"
|
|
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"
|
|
|
|
alias thn="thunar ."
|
|
fi
|
|
# Laptop }}}
|