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.

114 lines
2.6 KiB

5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
  1. # vim: fdm=marker ft=fish.go-template
  2. # login to X [[[ #
  3. {{ if eq .chezmoi.username "kevin" }}
  4. if status is-login
  5. if test -z "$DISPLAY" -a $XDG_VTNR = 1
  6. exec startx -- -keeptty
  7. end
  8. end
  9. set -x GPG_TTY (tty)
  10. {{ end }}
  11. # ]]] login to X #
  12. # universal var's [[[ #
  13. # spv
  14. {{ if eq .chezmoi.fullHostname "nzxt" }}
  15. set -U spv_dir "/home/kevin/coding/spotify-lib-vis"
  16. set -U mfs_dir "/home/kevin/coding/mf-site"
  17. {{ end }}
  18. set -x PATH $PATH ~/scripts ~/scripts/colors ~/go/bin
  19. set -x CLASSPATH $CLASSPATH /home/kevin/java/*.jar
  20. set -x LD_LIBRARY_PATH $LD_LIBRARY_PATH /usr/local/lib /usr/local/lib64
  21. set -x PKG_CONFIG_PATH $PKG_CONFIG_PATH /usr/lib/pkgconfig
  22. set -x PASSWORD_STORE_CLIP_TIME 120
  23. set -xU XSET_RATE 90
  24. set -xU XSET_DELAY 200
  25. # causes xmodmap to have issues when opening terminal sometimes
  26. # xmodmap ~/.Xmodmap && xset r rate $XSET_DELAY $XSET_RATE
  27. {{ if and (eq .chezmoi.fullHostname "x1-carbon") (not (eq .chezmoi.username "root")) }}
  28. xset r rate $XSET_DELAY $XSET_RATE
  29. {{ end }}
  30. # set -U BROWSER "chromium"
  31. set -U BROWSER "firefox"
  32. # ]]] universal var's #
  33. # fish-specific [[[ #
  34. fish_vi_key_bindings
  35. set -x EDITOR nvim
  36. set -x VISUAL nvim
  37. set -U fish_help_browser firefox
  38. builtin cd $last_dir
  39. bind \ce edit_command_buffer
  40. bind \cr forward-word
  41. chezmoi apply
  42. ~/scripts/sync-shortcuts
  43. # source ~/.config/fish/key_abbr.fish > /dev/null
  44. set -U fish_fxn_dir "{{ .chezmoi.homedir }}/linux-config/dot_config/fish/functions"
  45. # set -U fish_fxn_dir "~/.config/fish/functions"
  46. abbr ff "cd $fish_fxn_dir"
  47. for fxn in (find $fish_fxn_dir -name '*.fish')
  48. source $fxn
  49. end
  50. abbr ab "abbr"
  51. abbr abe "abbr -e"
  52. abbr rf "chezmoi apply && sync-shortcuts && source ~/.config/fish/key_abbr.fish > /dev/null"
  53. abbr rfc "chezmoi apply && source ~/.config/fish/config.fish"
  54. abbr xf "fish_config"
  55. abbr f. "cd .."
  56. abbr f.. "cd ../.."
  57. # ]]] fish-specific #
  58. # fxn abbr's [[[ #
  59. abbr ag "grep-aliases"
  60. abbr bq "benq-brightness"
  61. abbr cpc "copy cat"
  62. abbr cpe "copy echo"
  63. abbr cpp "copy echo (pwd)"
  64. abbr cff "create-fish-function"
  65. abbr ev "evince-silent"
  66. # git [[[ #
  67. abbr gcamp "git-amend-push"
  68. abbr gdf "git-diff-files"
  69. abbr gpsmt "git-push-multiple"
  70. abbr gremotes "git-mult-remotes"
  71. abbr grmb "git-delete-branch"
  72. # ]]] git #
  73. abbr hs "scan-history"
  74. abbr hst "$EDITOR ~/.local/share/fish/fish_history"
  75. abbr mt "math"
  76. abbr pgr "grep-pdf"
  77. abbr pgrf "grep-pdf-file"
  78. abbr rs "redshift-set"
  79. abbr ut "unix-timestamp"
  80. abbr uzr "unzip-rm"
  81. # ]]] fxn abbr's #
  82. abbr hm "cd $mfs_dir && hugo serve -D --disableFastRender"
  83. # school [[[ #
  84. # 369
  85. abbr grc "grep-c"
  86. abbr grh "grep-headers"
  87. abbr rgh "rg-headers"
  88. abbr jcp "java-compile-run Percolation"
  89. # ]]] school #