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.

69 lines
1.5 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. cld() { colordiff -y --suppress-common-lines $1 $2 ; }
  8. fi
  9. # Both PC/Laptop }}}
  10. # NZXT {{{
  11. if [ "$(hostname)" == "NZXT" ]; then
  12. rt() {
  13. output="HDMI-0"
  14. if [ "$1" = "s" ]
  15. # if [ "${1:0:1}" = "s" ]
  16. then
  17. output="DVI-I-1"
  18. fi
  19. dir="normal"
  20. if [ "$2" = "r" ]
  21. # if [ "${1:1:2}" = "r" ]
  22. then
  23. dir="right"
  24. fi
  25. if [ "$2" = "l" ]
  26. then
  27. dir="left"
  28. fi
  29. # echo "xrandr --output \"$output\" --rotate \"$dir\""
  30. xrandr --output "$output" --rotate "$dir"
  31. }
  32. alias ow7="virtualbox startvm W7"
  33. # alias ow7="VBoxManage startvm W7 --type headless"
  34. chr() { google-chrome $1 ; }
  35. alias nem="nemo ."
  36. alias spt="speedtest"
  37. alias pg="ping -c 5 google.ca"
  38. alias res="vi ~/Documents/resume/README.md"
  39. alias sfa="d ~/Documents/self-authoring"
  40. alias rcg="d ~/Documents/coding/random-color-generator"
  41. alias dcr="d ~/Documents/coding/dcr-logger"
  42. # xset r rate 200 75
  43. # xmodmap -e "clear Lock"
  44. # xmodmap -e "keycode 22 = Caps_Lock"
  45. # xmodmap -e "keycode 66 = BackSpace"
  46. fi
  47. # NZXT }}}
  48. # Laptop {{{
  49. if [ "$(hostname)" == "X1-Carbon" ]; then
  50. # key swaps
  51. xmodmap -e "keycode 9 = Escape"
  52. xmodmap -e "keycode 22 = Home"
  53. xmodmap -e "keycode 119 = End"
  54. xmodmap -e "keycode 110 = Delete"
  55. xmodmap -e "keycode 115 = BackSpace"
  56. alias thn="thunar ."
  57. fi
  58. # Laptop }}}