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.

234 lines
5.8 KiB

5 years ago
6 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
6 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
6 years ago
6 years ago
5 years ago
5 years ago
6 years ago
6 years ago
6 years ago
5 years ago
6 years ago
5 years ago
5 years ago
6 years ago
5 years ago
6 years ago
5 years ago
6 years ago
6 years ago
5 years ago
4 years ago
6 years ago
6 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/*/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-21.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.10"
  59. set -x WORK_LAPTOP_IP "kmok@192.168.12.10"
  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. set -xU LOCAL_KOGITO_SERVICE_URL "http://192.168.49.2:31213"
  66. # ]]] universal var's #
  67. # fish-specific [[[ #
  68. fish_vi_key_bindings
  69. set -x EDITOR nvim
  70. set -x VISUAL nvim
  71. set -U fish_help_browser firefox
  72. builtin cd $last_dir && ls > /dev/null
  73. # builtin cd $last_dir
  74. bind \ce edit_command_buffer
  75. bind \cr forward-word
  76. chezmoi apply
  77. {{ if not (eq .linux_os "termux") }}
  78. ~/scripts/sync-shortcuts
  79. {{ end }}
  80. # source ~/.config/fish/key_abbr.fish > /dev/null
  81. set -U fish_fxn_dir "{{ .chezmoi.homedir }}/linux-config/dot_config/fish/functions"
  82. # set -U fish_fxn_dir "~/.config/fish/functions"
  83. abbr ff "cd $fish_fxn_dir"
  84. for fxn in (find $fish_fxn_dir -name '*.fish')
  85. source $fxn
  86. end
  87. abbr ab "abbr"
  88. abbr abe "abbr -e"
  89. abbr hm "history merge"
  90. abbr hs "history search --show-time"
  91. # abbr rfc "chezmoi apply && source ~/.config/fish/config.fish"
  92. abbr f. "cd .."
  93. abbr f.. "cd ../.."
  94. abbr hsm "history merge"
  95. abbr nxv "$EDITOR ~/.config/fish/fish_variables"
  96. abbr xf "fish_config"
  97. # ]]] fish-specific #
  98. # fxn abbr's [[[ #
  99. abbr ! "sudo !!"
  100. # task [[[ #
  101. abbr aan "task-anno ''"
  102. abbr ae "task-edit"
  103. abbr adl "task-delete"
  104. abbr adn "task-done"
  105. abbr adu "task-due"
  106. abbr adr "task-due-rm"
  107. abbr an "task-next"
  108. abbr anr "task-next-rm"
  109. abbr ant "task-notes"
  110. abbr apr "task-mod-pri"
  111. abbr aprl "task-mod-pri L"
  112. abbr aprm "task-mod-pri M"
  113. abbr aprn "task-mod-pri ''"
  114. abbr aprh "task-mod-pri H"
  115. abbr apj "task-mod-proj"
  116. abbr asr "task-start"
  117. abbr at "task-mod-tag"
  118. abbr atj "task-mod-tag jira"
  119. abbr aw "task-wait"
  120. abbr ax "task-context"
  121. # ]]] task #
  122. abbr ag "grep-aliases"
  123. abbr bk "buku-fzf"
  124. abbr bkf "buku-fzf fq"
  125. abbr bq "benq-brightness"
  126. abbr bun "backup nzxt"
  127. abbr bupp "backup-phone-pics"
  128. abbr ca "cad-to-us"
  129. abbr cccs "sync-alt-cal class"
  130. abbr cl "clip"
  131. abbr cpc "copy cat"
  132. abbr cpe "copy echo"
  133. abbr cpp "copy echo (pwd)"
  134. abbr cff "create-fish-function"
  135. abbr ctr "systemctl-restart"
  136. abbr def "define"
  137. abbr ens "enable-site"
  138. abbr ev "evince-silent"
  139. # abbr fbg "find-bg"
  140. abbr fr "fzf-ranger"
  141. abbr fv "fzf-vim"
  142. abbr fvft "find-vim-filetype"
  143. # git [[[ #
  144. abbr gcamp "git-amend-push"
  145. abbr gclg "git-clone-gitea"
  146. abbr gdf "git-diff-files"
  147. abbr gpsi "git-push-initial"
  148. abbr gpsmt "git-push-multiple"
  149. abbr gpng "git-push-new-gitea"
  150. abbr gpngg "git-push-new-gitea gitea"
  151. abbr gremotes "git-mult-remotes"
  152. abbr grmb "git-delete-branch"
  153. abbr gro "git-replace-origin"
  154. abbr grog "git-replace-origin-gitea"
  155. abbr gsmb "git-submodule-branch"
  156. # ]]] git #
  157. abbr i "sxiv-silent"
  158. abbr lo "libreoffice-silent"
  159. # abbr m "man-vim"
  160. abbr mn "man-vim"
  161. abbr ma "man-vim task"
  162. abbr mat "math"
  163. abbr mdf "mkdir-cd"
  164. abbr mtm "maven-test-method"
  165. abbr pgr "grep-pdf"
  166. abbr pgrf "grep-pdf-file"
  167. abbr pst "pastebin"
  168. abbr qh "qalc-history"
  169. abbr re "reminder ''"
  170. abbr rf "refresh-config"
  171. abbr rl "readlink-cp"
  172. abbr rs "redshift-set"
  173. abbr sma "smol-add"
  174. abbr smd "smol-delete"
  175. abbr sml "smol-slist"
  176. abbr smr "smol-replace"
  177. abbr shrm "shred-rm"
  178. abbr shs "scan-history"
  179. abbr svp "server-pages"
  180. abbr ta "tmux-attach"
  181. abbr taf "tmux-attach fn"
  182. abbr tao "tmux-attach obs"
  183. abbr thes "thesaurus"
  184. # abbr usc "us-to-cad"
  185. abbr us "us-to-cad"
  186. abbr ut "unix-timestamp"
  187. abbr uzr "unzip-rm"
  188. abbr vsnp "vim-snippet"
  189. abbr wag "watson-add-game"
  190. abbr waf "watson-add-game fortnite"
  191. abbr wap "watson-add-game pokemon-go"
  192. abbr xya "export-pkgs"
  193. # school [[[ #
  194. # ]]] school #
  195. # ]]] fxn abbr's #
  196. # task sync > /dev/null 2>&1
  197. # ~/scripts/xmodmap-custom