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.

258 lines
6.4 KiB

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