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.

91 lines
2.3 KiB

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