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.

86 lines
2.1 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 tpb="$cd_coding_dir/trapbot"
  54. alias ptb="python trapbot.py"
  55. alias ptbo="python trapbot.py > output.py && vi output.py"
  56. alias tbof="python trapbot-local.py"
  57. # xset r rate 200 75
  58. # xmodmap -e "clear Lock"
  59. # xmodmap -e "keycode 22 = Caps_Lock"
  60. # xmodmap -e "keycode 66 = BackSpace"
  61. fi
  62. # NZXT }}}
  63. # Laptop {{{
  64. if [ "$(hostname)" == "X1-Carbon" ]; then
  65. # key swaps
  66. xmodmap -e "keycode 9 = Escape"
  67. xmodmap -e "keycode 22 = Home"
  68. xmodmap -e "keycode 119 = End"
  69. xmodmap -e "keycode 110 = Delete"
  70. xmodmap -e "keycode 115 = BackSpace"
  71. alias thn="thunar ."
  72. fi
  73. # Laptop }}}