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.

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