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.

104 lines
2.6 KiB

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