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

  1. # Both PC/Laptop {{{
  2. if [ "$(whoami)" == "kevin" ]; then
  3. apti() { sudo apt install $1 ; }
  4. aptr() { sudo apt remove $1 ; }
  5. alias vbn="cvlc --loop --alsa-gain 1 ~/Downloads/brown-noise.mp3"
  6. # school {{{ #
  7. alias mt="ok ~/Documents/School/calc-textbook.pdf"
  8. alias clc="gcalccmd"
  9. alias 6t="ok ~/Documents/School/236-textbook.pdf"
  10. alias doc="d ~/Documents"
  11. # }}} school #
  12. # i3 {{{ #
  13. alias v3="vi ~/.config/i3/config"
  14. alias v3b="vi ~/.config/i3blocks/i3blocks.conf"
  15. alias i3b="d /usr/share/i3blocks"
  16. alias pipes="pipes.sh -t 2"
  17. alias bgs="nemo ~/Pictures/Backgrounds"
  18. gvx() { urxvt --help 2>&1 | grep $1 ; }
  19. alias rur="xrdb ~/.Xresources"
  20. # }}} i3 #
  21. # coding projs {{{ #
  22. cd_coding_dir="d ~/Documents/coding"
  23. alias ans="d /usr/local/android-studio/bin && ./studio.sh"
  24. alias cdn="$cd_coding_dir"
  25. alias tb="$cd_coding_dir/trapbot"
  26. alias vtb="$cd_coding_dir/trapbot && vi scan_reddit.py"
  27. alias ptb="python scan_reddit.py"
  28. alias rtb="$cd_coding_dir/trapbot && python scan_reddit.py"
  29. # }}} coding projs #
  30. chr() { google-chrome $1 ; }
  31. cld() { colordiff -y --suppress-common-lines $1 $2 ; }
  32. fi
  33. # Both PC/Laptop }}}
  34. # NZXT {{{
  35. if [ "$(hostname)" == "NZXT" ]; then
  36. # rotate monitor {{{ #
  37. rt() {
  38. output="HDMI-0"
  39. if [ "$1" = "s" ]
  40. # if [ "${1:0:1}" = "s" ]
  41. then
  42. output="DVI-I-1"
  43. fi
  44. dir="normal"
  45. if [ "$2" = "r" ]
  46. # if [ "${1:1:2}" = "r" ]
  47. then
  48. dir="right"
  49. fi
  50. if [ "$2" = "l" ]
  51. then
  52. dir="left"
  53. fi
  54. # echo "xrandr --output \"$output\" --rotate \"$dir\""
  55. xrandr --output "$output" --rotate "$dir"
  56. }
  57. # }}} rotate monitor #
  58. # audio {{{ #
  59. alias alsi="pactl list short sink-inputs"
  60. alias als="pactl list short sinks"
  61. amsih() { pactl move-sink-input $1 0 ; }
  62. amsis() { pactl move-sink-input $1 1 ; }
  63. # }}} audio #
  64. # apps {{{ #
  65. alias nem="nemo ."
  66. alias spt="speedtest"
  67. alias pg="ping -c 5 google.ca"
  68. alias w7="VBoxManage startvm W7 --type headless"
  69. # }}} apps #
  70. # various coding projs {{{ #
  71. alias cv="d ~/Documents/resume/examples"
  72. alias cvf="d ~/Documents/resume/examples/cv"
  73. alias vcv="vi ~/Documents/resume/examples/cv.tex"
  74. alias okcv="ok ~/Documents/resume/examples/cv.pdf"
  75. alias sfa="d ~/Documents/self-authoring"
  76. alias rcg="$cd_coding_dir/random-color-generator"
  77. alias dcr="$cd_coding_dir/dcr-logger"
  78. alias pf="$cd_coding_dir/ParsaFood"
  79. alias sb="$cd_coding_dir/swbot"
  80. # alias psb="p3 create_skills_dict.py"
  81. # alias psbo="p3 create_skills_dict.py > output.py"
  82. alias psb="p3 create_monster_dict.py"
  83. alias psbo="p3 create_monster_dict.py > output.py"
  84. # }}} various coding projs #
  85. fi
  86. # NZXT }}}
  87. # Laptop {{{
  88. if [ "$(hostname)" == "X1-Carbon" ]; then
  89. # key swaps {{{ #
  90. xmodmap -e "keycode 9 = Escape"
  91. xmodmap -e "keycode 22 = Home"
  92. xmodmap -e "keycode 119 = End"
  93. xmodmap -e "keycode 110 = Delete"
  94. xmodmap -e "keycode 115 = BackSpace"
  95. # }}} key swaps #
  96. alias gbl="xbacklight -get"
  97. sbl() { xbacklight -set $(echo "scale=2;$1*10" | bc) ; }
  98. alias thn="thunar ."
  99. alias plz="d ~/platterz2018/ocr-reader/app/src/main/java/com/google/android/gms/samples/vision/ocrreader"
  100. alias ans="d /usr/local/android-studio/bin/"
  101. fi
  102. # Laptop }}}