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.

112 lines
2.9 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. alias pipes="pipes.sh -t 2"
  15. # }}} i3 #
  16. # coding projs {{{ #
  17. cd_coding_dir="d ~/Documents/coding"
  18. alias ans="d /usr/local/android-studio/bin && ./studio.sh"
  19. alias cdn="$cd_coding_dir"
  20. alias tb="$cd_coding_dir/trapbot"
  21. alias vtb="$cd_coding_dir/trapbot && vi scan_reddit.py"
  22. alias ptb="python scan_reddit.py"
  23. alias rtb="$cd_coding_dir/trapbot && python scan_reddit.py"
  24. # }}} coding projs #
  25. chr() { google-chrome $1 ; }
  26. cld() { colordiff -y --suppress-common-lines $1 $2 ; }
  27. fi
  28. # Both PC/Laptop }}}
  29. # NZXT {{{
  30. if [ "$(hostname)" == "NZXT" ]; then
  31. # rotate monitor {{{ #
  32. rt() {
  33. output="HDMI-0"
  34. if [ "$1" = "s" ]
  35. # if [ "${1:0:1}" = "s" ]
  36. then
  37. output="DVI-I-1"
  38. fi
  39. dir="normal"
  40. if [ "$2" = "r" ]
  41. # if [ "${1:1:2}" = "r" ]
  42. then
  43. dir="right"
  44. fi
  45. if [ "$2" = "l" ]
  46. then
  47. dir="left"
  48. fi
  49. # echo "xrandr --output \"$output\" --rotate \"$dir\""
  50. xrandr --output "$output" --rotate "$dir"
  51. }
  52. # }}} rotate monitor #
  53. # audio {{{ #
  54. alias alsi="pactl list short sink-inputs"
  55. alias als="pactl list short sinks"
  56. amsih() { pactl move-sink-input $1 0 ; }
  57. amsis() { pactl move-sink-input $1 1 ; }
  58. # }}} audio #
  59. # apps {{{ #
  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 gbl="xbacklight -get"
  92. sbl() { xbacklight -set $1 ; }
  93. alias thn="thunar ."
  94. alias plz="d ~/platterz2018/ocr-reader/app/src/main/java/com/google/android/gms/samples/vision/ocrreader"
  95. alias ans="d /usr/local/android-studio/bin/"
  96. fi
  97. # Laptop }}}