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.

108 lines
2.8 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 scan_reddit.py"
  21. alias ptb="python scan_reddit.py"
  22. alias rtb="$cd_coding_dir/trapbot && python scan_reddit.py"
  23. # }}} coding projs #
  24. bl() { xbacklight -set $1 ; }
  25. cld() { colordiff -y --suppress-common-lines $1 $2 ; }
  26. fi
  27. # Both PC/Laptop }}}
  28. # NZXT {{{
  29. if [ "$(hostname)" == "NZXT" ]; then
  30. # rotate monitor {{{ #
  31. rt() {
  32. output="HDMI-0"
  33. if [ "$1" = "s" ]
  34. # if [ "${1:0:1}" = "s" ]
  35. then
  36. output="DVI-I-1"
  37. fi
  38. dir="normal"
  39. if [ "$2" = "r" ]
  40. # if [ "${1:1:2}" = "r" ]
  41. then
  42. dir="right"
  43. fi
  44. if [ "$2" = "l" ]
  45. then
  46. dir="left"
  47. fi
  48. # echo "xrandr --output \"$output\" --rotate \"$dir\""
  49. xrandr --output "$output" --rotate "$dir"
  50. }
  51. # }}} rotate monitor #
  52. # audio {{{ #
  53. alias alsi="pactl list short sink-inputs"
  54. alias als="pactl list short sinks"
  55. amsih() { pactl move-sink-input $1 0 ; }
  56. amsis() { pactl move-sink-input $1 1 ; }
  57. # }}} audio #
  58. # apps {{{ #
  59. chr() { google-chrome $1 ; }
  60. alias nem="nemo ."
  61. alias spt="speedtest"
  62. alias pg="ping -c 5 google.ca"
  63. alias w7="VBoxManage startvm W7 --type headless"
  64. # }}} apps #
  65. # various coding projs {{{ #
  66. alias cv="d ~/Documents/resume/examples"
  67. alias cvf="d ~/Documents/resume/examples/cv"
  68. alias vcv="vi ~/Documents/resume/examples/cv.tex"
  69. alias okcv="ok ~/Documents/resume/examples/cv.pdf"
  70. alias sfa="d ~/Documents/self-authoring"
  71. alias rcg="$cd_coding_dir/random-color-generator"
  72. alias dcr="$cd_coding_dir/dcr-logger"
  73. alias pf="$cd_coding_dir/ParsaFood"
  74. alias sb="$cd_coding_dir/swbot"
  75. # alias psb="p3 create_skills_dict.py"
  76. # alias psbo="p3 create_skills_dict.py > output.py"
  77. alias psb="p3 create_monster_dict.py"
  78. alias psbo="p3 create_monster_dict.py > output.py"
  79. # }}} various coding projs #
  80. fi
  81. # NZXT }}}
  82. # Laptop {{{
  83. if [ "$(hostname)" == "X1-Carbon" ]; then
  84. # key swaps {{{ #
  85. xmodmap -e "keycode 9 = Escape"
  86. xmodmap -e "keycode 22 = Home"
  87. xmodmap -e "keycode 119 = End"
  88. xmodmap -e "keycode 110 = Delete"
  89. xmodmap -e "keycode 115 = BackSpace"
  90. # }}} key swaps #
  91. alias thn="thunar ."
  92. alias plz="d ~/platterz2018/ocr-reader/app/src/main/java/com/google/android/gms/samples/vision/ocrreader"
  93. alias ans="d /usr/local/android-studio/bin/"
  94. fi
  95. # Laptop }}}