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.

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