Dotfiles for my tiling window manager + terminal workflow.
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.
 
 
 

118 lines
3.1 KiB

# Both PC/Laptop {{{
if [ "$(whoami)" == "kevin" ]; then
apti() { sudo apt install $1 ; }
aptr() { sudo apt remove $1 ; }
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"
alias pipes="pipes.sh -t 2"
alias bgs="nemo ~/Pictures/Backgrounds"
gvx() { urxvt --help 2>&1 | grep $1 ; }
alias rur="xrdb ~/.Xresources"
# }}} 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 scan_reddit.py"
alias ptb="python scan_reddit.py"
alias rtb="$cd_coding_dir/trapbot && python scan_reddit.py"
# }}} coding projs #
chr() { google-chrome $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 {{{ #
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 cv="d ~/Documents/resume/examples"
alias cvf="d ~/Documents/resume/examples/cv"
alias vcv="vi ~/Documents/resume/examples/cv.tex"
alias okcv="ok ~/Documents/resume/examples/cv.pdf"
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 gbl="xbacklight -get"
sbl() { xbacklight -set $(echo "scale=2;$1*10" | bc) ; }
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 }}}