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.

162 lines
4.1 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
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
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. set -U fish_greeting
  14. # spv
  15. {{ if eq .chezmoi.fullHostname "nzxt" }}
  16. set -U spv_dir "/home/kevin/coding/spotify-lib-vis"
  17. set -U mfs_dir "/home/kevin/coding/mf-site"
  18. source /home/kevin/coding/spotify-lib-vis/src/scripts/api-keys-fish.sh
  19. {{ end }}
  20. set -x PATH $PATH ~/.local/bin ~/scripts ~/scripts/colors ~/go/bin ~/.minetest/minetest/bin ~/.gem/ruby/2.6.0/bin
  21. set -x CLASSPATH $CLASSPATH /home/kevin/java/*.jar
  22. set -x LD_LIBRARY_PATH $LD_LIBRARY_PATH /usr/local/lib /usr/local/lib64
  23. set -x PKG_CONFIG_PATH $PKG_CONFIG_PATH /usr/lib/pkgconfig
  24. set -x HASTE_SERVER https://pste.gq
  25. set -x CALCURSE_CALDAV_PASSWORD (pass show technology/linux/baikal | head -n1)
  26. {{ if eq .linux_os "termux" }}
  27. # set SPACEFISH_PROMPT_ORDER time user dir host git package node docker ruby golang php rust haskell julia aws conda pyenv kubecontext exec_time line_sep battery jobs exit_code vi_mode char
  28. set SPACEFISH_DIR_PREFIX ''
  29. set SPACEFISH_PROMPT_ORDER vi_mode dir git pyenv exec_time jobs exit_code line_sep char
  30. set SPACEFISH_VI_MODE_INSERT ''
  31. set SPACEFISH_VI_MODE_NORMAL '[n] '
  32. set SPACEFISH_VI_MODE_SUFFIX ''
  33. {{ end }}
  34. set -x PASSWORD_STORE_CLIP_TIME 120
  35. set -xU XSET_RATE 90
  36. set -xU XSET_DELAY 200
  37. {{ if and (eq .chezmoi.fullHostname "x1-carbon") (not (eq .chezmoi.username "root")) }}
  38. xset r rate $XSET_DELAY $XSET_RATE
  39. {{ end }}
  40. # set -U BROWSER "chromium"
  41. set -U BROWSER "firefox"
  42. # ]]] universal var's #
  43. # fish-specific [[[ #
  44. fish_vi_key_bindings
  45. set -x EDITOR nvim
  46. set -x VISUAL nvim
  47. set -U fish_help_browser firefox
  48. builtin cd $last_dir && ls > /dev/null
  49. # builtin cd $last_dir
  50. bind \ce edit_command_buffer
  51. bind \cr forward-word
  52. chezmoi apply
  53. {{ if not (eq .linux_os "termux") }}
  54. ~/scripts/sync-shortcuts
  55. {{ end }}
  56. source ~/.config/fish/key_abbr.fish > /dev/null
  57. set -U fish_fxn_dir "{{ .chezmoi.homedir }}/linux-config/dot_config/fish/functions"
  58. # set -U fish_fxn_dir "~/.config/fish/functions"
  59. abbr ff "cd $fish_fxn_dir"
  60. for fxn in (find $fish_fxn_dir -name '*.fish')
  61. source $fxn
  62. end
  63. abbr ab "abbr"
  64. abbr abe "abbr -e"
  65. abbr hm "history merge"
  66. abbr hs "history search --show-time"
  67. # abbr rfc "chezmoi apply && source ~/.config/fish/config.fish"
  68. abbr f. "cd .."
  69. abbr f.. "cd ../.."
  70. abbr hsm "history merge"
  71. abbr xf "fish_config"
  72. # ]]] fish-specific #
  73. # fxn abbr's [[[ #
  74. abbr ! "sudo !!"
  75. abbr ae "task-edit"
  76. abbr ad "task-done"
  77. abbr ap "task-mod-pri"
  78. abbr ag "grep-aliases"
  79. abbr b "buku-fzf"
  80. abbr bf "buku-fzf fq"
  81. abbr bq "benq-brightness"
  82. abbr bupp "backup-phone-pics"
  83. abbr cpc "copy cat"
  84. abbr cpe "copy echo"
  85. abbr cpp "copy echo (pwd)"
  86. abbr cff "create-fish-function"
  87. abbr ctr "systemctl-restart"
  88. abbr def "define"
  89. abbr ens "enable-site"
  90. abbr ev "evince-silent"
  91. # abbr fbg "find-bg"
  92. abbr fvft "find-vim-filetype"
  93. abbr fzv "fzf-vim"
  94. # git [[[ #
  95. abbr gcamp "git-amend-push"
  96. abbr gclg "git-clone-gitea"
  97. abbr gdf "git-diff-files"
  98. abbr gpsmt "git-push-multiple"
  99. abbr gremotes "git-mult-remotes"
  100. abbr grmb "git-delete-branch"
  101. abbr gro "git-replace-origin"
  102. # ]]] git #
  103. abbr svs "scan-history"
  104. abbr m "man-vim"
  105. abbr mat "math"
  106. abbr pgr "grep-pdf"
  107. abbr pgrf "grep-pdf-file"
  108. abbr png "git-push-new-gitea"
  109. abbr pst "pastebin"
  110. abbr rf "refresh-config"
  111. abbr rs "redshift-set"
  112. abbr shrm "shred-rm"
  113. abbr tac "tmux-attach config"
  114. abbr taj "tmux-attach journal"
  115. abbr thes "thesaurus"
  116. abbr ut "unix-timestamp"
  117. abbr uzr "unzip-rm"
  118. abbr vsnp "vim-snippet"
  119. abbr xya "export-pkgs"
  120. # school [[[ #
  121. # 369
  122. abbr grc "grep-c"
  123. abbr grh "grep-headers"
  124. abbr rgh "rg-headers"
  125. abbr jcr "java-compile-run"
  126. abbr jct "java-compile-test"
  127. # ]]] school #
  128. # ]]] fxn abbr's #
  129. abbr hum "cd $mfs_dir && hugo serve -D --disableFastRender"
  130. # task sync > /dev/null 2>&1
  131. # causes xmodmap to have issues when opening terminal sometimes (with Alt key?)
  132. # sleep .2 && xmodmap ~/.Xmodmap && xset r rate $XSET_DELAY $XSET_RATE
  133. # xmodmap ~/.Xmodmap && xset r rate $XSET_DELAY $XSET_RATE
  134. ~/scripts/xmodmap-custom