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.

213 lines
5.2 KiB

4 years ago
5 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
5 years ago
4 years ago
5 years ago
5 years ago
5 years ago
4 years ago
5 years ago
4 years ago
5 years ago
5 years ago
5 years ago
5 years ago
4 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
4 years ago
5 years ago
5 years ago
5 years ago
5 years ago
4 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. abbr hum "cd $mfs_dir && hugo serve -D --disableFastRender"
  20. {{ end }}#]]]
  21. # system [[[
  22. set -x HASTE_SERVER https://pste.gq
  23. set -x LD_LIBRARY_PATH $LD_LIBRARY_PATH /usr/local/lib /usr/local/lib64
  24. # set -x PATH $GRAALVM_BIN $PATH ~/.local/bin ~/scripts ~/scripts/colors ~/go/bin ~/.minetest/minetest/bin ~/.gem/ruby/2.6.0/bin
  25. set -x PATH $PATH ~/.local/bin ~/scripts ~/scripts/colors ~/go/bin ~/.minetest/minetest/bin ~/.gem/ruby/2.6.0/bin
  26. set -x PKG_CONFIG_PATH $PKG_CONFIG_PATH /usr/lib/pkgconfig
  27. {{ if eq .chezmoi.fullHostname "nzxt" }}
  28. set -x CALCURSE_CALDAV_PASSWORD (pass show technology/linux/baikal | head -n1)
  29. status --is-interactive; and source (pyenv init -|psub)
  30. {{ end }}
  31. # Java [[[ #
  32. # set -x GRAALVM_HOME /usr/lib/jvm/graalvm-ce-java11-20.1.0
  33. # set -x GRAALVM_BIN $GRAALVM_HOME/bin
  34. # set -x JAVA_HOME /usr/lib/jvm/java-11-openjdk
  35. # set -x JAVA_HOME $GRAALVM_HOME
  36. # ]]] Java #
  37. # system ]]]
  38. # space prompt[[[
  39. # 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
  40. set SPACEFISH_ADD_NEWLINE false
  41. set SPACEFISH_PROMPT_ORDER vi_mode dir git pyenv exec_time jobs exit_code line_sep char
  42. set SPACEFISH_DIR_PREFIX ''
  43. set SPACEFISH_DIR_TRUNC 0
  44. set SPACEFISH_DIR_TRUNC_REPO false
  45. set SPACEFISH_VI_MODE_INSERT ''
  46. set SPACEFISH_VI_MODE_NORMAL '[n] '
  47. set SPACEFISH_VI_MODE_SUFFIX ''
  48. #]]]
  49. # pass[[[
  50. set -x PASSWORD_STORE_CLIP_TIME 120
  51. set -xU XSET_RATE 90
  52. set -xU XSET_DELAY 200
  53. {{ if and (eq .chezmoi.fullHostname "x1-carbon") (not (eq .chezmoi.username "root")) }}
  54. xset r rate $XSET_DELAY $XSET_RATE
  55. {{ end }}#]]]
  56. # set -U BROWSER "chromium"
  57. set -xU BROWSER "firefox"
  58. set -xU FZF_DEFAULT_COMMAND "find ."
  59. set -xU PHONE_IP "192.168.0.10"
  60. set -xU WORK_LAPTOP_IP "kmok@192.168.0.15"
  61. # ]]] universal var's #
  62. # fish-specific [[[ #
  63. fish_vi_key_bindings
  64. set -x EDITOR nvim
  65. set -x VISUAL nvim
  66. set -U fish_help_browser firefox
  67. builtin cd $last_dir && ls > /dev/null
  68. # builtin cd $last_dir
  69. bind \ce edit_command_buffer
  70. bind \cr forward-word
  71. chezmoi apply
  72. {{ if not (eq .linux_os "termux") }}
  73. ~/scripts/sync-shortcuts
  74. {{ end }}
  75. # source ~/.config/fish/key_abbr.fish > /dev/null
  76. set -U fish_fxn_dir "{{ .chezmoi.homedir }}/linux-config/dot_config/fish/functions"
  77. # set -U fish_fxn_dir "~/.config/fish/functions"
  78. abbr ff "cd $fish_fxn_dir"
  79. for fxn in (find $fish_fxn_dir -name '*.fish')
  80. source $fxn
  81. end
  82. abbr ab "abbr"
  83. abbr abe "abbr -e"
  84. abbr hm "history merge"
  85. abbr hs "history search --show-time"
  86. # abbr rfc "chezmoi apply && source ~/.config/fish/config.fish"
  87. abbr f. "cd .."
  88. abbr f.. "cd ../.."
  89. abbr hsm "history merge"
  90. abbr nxv "$EDITOR ~/.config/fish/fish_variables"
  91. abbr xf "fish_config"
  92. # ]]] fish-specific #
  93. # fxn abbr's [[[ #
  94. abbr ! "sudo !!"
  95. # task [[[ #
  96. abbr aan "task-anno ''"
  97. abbr ae "task-edit"
  98. abbr adl "task-delete"
  99. abbr adn "task-done"
  100. abbr adu "task-due"
  101. abbr adr "task-due-rm"
  102. abbr an "task-next"
  103. abbr anr "task-next-rm"
  104. abbr ant "task-notes"
  105. abbr apr "task-mod-pri"
  106. abbr aprl "task-mod-pri L"
  107. abbr aprm "task-mod-pri M"
  108. abbr aprn "task-mod-pri ''"
  109. abbr aprh "task-mod-pri H"
  110. abbr apj "task-mod-proj"
  111. abbr asr "task-start"
  112. abbr at "task-mod-tag"
  113. abbr aw "task-wait"
  114. abbr ax "task-context"
  115. # ]]] task #
  116. abbr ag "grep-aliases"
  117. abbr b "buku-fzf"
  118. abbr bf "buku-fzf fq"
  119. abbr bq "benq-brightness"
  120. abbr bupp "backup-phone-pics"
  121. abbr cccs "sync-alt-cal class"
  122. abbr cl "clip"
  123. abbr cpc "copy cat"
  124. abbr cpe "copy echo"
  125. abbr cpp "copy echo (pwd)"
  126. abbr cff "create-fish-function"
  127. abbr ctr "systemctl-restart"
  128. abbr def "define"
  129. abbr ens "enable-site"
  130. abbr ev "evince-silent"
  131. # abbr fbg "find-bg"
  132. abbr fr "fzf-ranger"
  133. abbr fv "fzf-vim"
  134. abbr fvft "find-vim-filetype"
  135. # git [[[ #
  136. abbr gcamp "git-amend-push"
  137. abbr gclg "git-clone-gitea"
  138. abbr gdf "git-diff-files"
  139. abbr gpsi "git-push-initial"
  140. abbr gpsmt "git-push-multiple"
  141. abbr gpng "git-push-new-gitea"
  142. abbr gpngg "git-push-new-gitea gitea"
  143. abbr gremotes "git-mult-remotes"
  144. abbr grmb "git-delete-branch"
  145. abbr gro "git-replace-origin"
  146. abbr grog "git-replace-origin-gitea"
  147. abbr gsmb "git-submodule-branch"
  148. # ]]] git #
  149. abbr i "sxiv-silent"
  150. # abbr m "man-vim"
  151. abbr mn "man-vim"
  152. abbr ma "man-vim task"
  153. abbr mat "math"
  154. abbr mdf "mkdir-cd"
  155. abbr pgr "grep-pdf"
  156. abbr pgrf "grep-pdf-file"
  157. abbr pst "pastebin"
  158. abbr qh "qalc-history"
  159. abbr rf "refresh-config"
  160. abbr rl "readlink-cp"
  161. abbr rs "redshift-set"
  162. abbr sma "smol-add"
  163. abbr smd "smol-delete"
  164. abbr sml "smol-slist"
  165. abbr smr "smol-replace"
  166. abbr shrm "shred-rm"
  167. abbr shs "scan-history"
  168. abbr svp "server-pages"
  169. abbr thes "thesaurus"
  170. abbr usc "us-to-cad"
  171. abbr ut "unix-timestamp"
  172. abbr uzr "unzip-rm"
  173. abbr vsnp "vim-snippet"
  174. abbr waf "watson-add-fortnite"
  175. abbr xya "export-pkgs"
  176. # school [[[ #
  177. # ]]] school #
  178. # ]]] fxn abbr's #
  179. # task sync > /dev/null 2>&1
  180. # ~/scripts/xmodmap-custom