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.

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