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.

230 lines
5.7 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
4 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
5 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.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 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
  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. # for shared libs
  33. set -x JAVA_HOME /usr/lib/jvm/java-11-openjdk
  34. # set -x JAVA_HOME /usr/lib/jvm/java-8-openjdk
  35. set -x PATH $JAVA_HOME/bin $PATH
  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.12"
  61. set -x PHONE_IP "192.168.0.12"
  62. set -x WORK_LAPTOP_IP "kmok@192.168.0.13"
  63. {{ if eq .chezmoi.fullHostname "nzxt" }}
  64. set -x CALCURSE_CALDAV_PASSWORD (pass show technology/linux/baikal | head -n1)
  65. set -x JENKINS_TOKEN 114a1b2e8693b57fa6f4bce88e2deee8cc
  66. status --is-interactive; and source (pyenv init -|psub)
  67. {{ end }}
  68. # ]]] universal var's #
  69. # fish-specific [[[ #
  70. fish_vi_key_bindings
  71. set -x EDITOR nvim
  72. set -x VISUAL nvim
  73. set -U fish_help_browser firefox
  74. builtin cd $last_dir && ls > /dev/null
  75. # builtin cd $last_dir
  76. bind \ce edit_command_buffer
  77. bind \cr forward-word
  78. chezmoi apply
  79. {{ if not (eq .linux_os "termux") }}
  80. ~/scripts/sync-shortcuts
  81. {{ end }}
  82. # source ~/.config/fish/key_abbr.fish > /dev/null
  83. set -U fish_fxn_dir "{{ .chezmoi.homedir }}/linux-config/dot_config/fish/functions"
  84. # set -U fish_fxn_dir "~/.config/fish/functions"
  85. abbr ff "cd $fish_fxn_dir"
  86. for fxn in (find $fish_fxn_dir -name '*.fish')
  87. source $fxn
  88. end
  89. abbr ab "abbr"
  90. abbr abe "abbr -e"
  91. abbr hm "history merge"
  92. abbr hs "history search --show-time"
  93. # abbr rfc "chezmoi apply && source ~/.config/fish/config.fish"
  94. abbr f. "cd .."
  95. abbr f.. "cd ../.."
  96. abbr hsm "history merge"
  97. abbr nxv "$EDITOR ~/.config/fish/fish_variables"
  98. abbr xf "fish_config"
  99. # ]]] fish-specific #
  100. # fxn abbr's [[[ #
  101. abbr ! "sudo !!"
  102. # task [[[ #
  103. abbr aan "task-anno ''"
  104. abbr ae "task-edit"
  105. abbr adl "task-delete"
  106. abbr adn "task-done"
  107. abbr adu "task-due"
  108. abbr adr "task-due-rm"
  109. abbr an "task-next"
  110. abbr anr "task-next-rm"
  111. abbr ant "task-notes"
  112. abbr apr "task-mod-pri"
  113. abbr aprl "task-mod-pri L"
  114. abbr aprm "task-mod-pri M"
  115. abbr aprn "task-mod-pri ''"
  116. abbr aprh "task-mod-pri H"
  117. abbr apj "task-mod-proj"
  118. abbr asr "task-start"
  119. abbr at "task-mod-tag"
  120. abbr atj "task-mod-tag jira"
  121. abbr aw "task-wait"
  122. abbr ax "task-context"
  123. # ]]] task #
  124. abbr ag "grep-aliases"
  125. abbr b "buku-fzf"
  126. abbr bf "buku-fzf fq"
  127. abbr bq "benq-brightness"
  128. abbr bun "backup nzxt"
  129. abbr bupp "backup-phone-pics"
  130. abbr cccs "sync-alt-cal class"
  131. abbr cl "clip"
  132. abbr cpc "copy cat"
  133. abbr cpe "copy echo"
  134. abbr cpp "copy echo (pwd)"
  135. abbr cff "create-fish-function"
  136. abbr ctr "systemctl-restart"
  137. abbr def "define"
  138. abbr ens "enable-site"
  139. abbr ev "evince-silent"
  140. # abbr fbg "find-bg"
  141. abbr fr "fzf-ranger"
  142. abbr fv "fzf-vim"
  143. abbr fvft "find-vim-filetype"
  144. # git [[[ #
  145. abbr gcamp "git-amend-push"
  146. abbr gclg "git-clone-gitea"
  147. abbr gdf "git-diff-files"
  148. abbr gpsi "git-push-initial"
  149. abbr gpsmt "git-push-multiple"
  150. abbr gpng "git-push-new-gitea"
  151. abbr gpngg "git-push-new-gitea gitea"
  152. abbr gremotes "git-mult-remotes"
  153. abbr grmb "git-delete-branch"
  154. abbr gro "git-replace-origin"
  155. abbr grog "git-replace-origin-gitea"
  156. abbr gsmb "git-submodule-branch"
  157. # ]]] git #
  158. abbr i "sxiv-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 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 tao "tmux-attach obs"
  181. abbr thes "thesaurus"
  182. abbr usc "us-to-cad"
  183. abbr ut "unix-timestamp"
  184. abbr uzr "unzip-rm"
  185. abbr vsnp "vim-snippet"
  186. abbr wag "watson-add-game"
  187. abbr waf "watson-add-game fortnite"
  188. abbr wap "watson-add-game pokemon-go"
  189. abbr xya "export-pkgs"
  190. # school [[[ #
  191. # ]]] school #
  192. # ]]] fxn abbr's #
  193. # task sync > /dev/null 2>&1
  194. # ~/scripts/xmodmap-custom