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.

265 lines
6.6 KiB

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