DSH HUB
首页插件商店插件包社区排行榜资源发布指南
插件源码
返回插件目录

qw457812 /

dotfiles

仅 Topic 仓库

My dotfiles on macOS and Termux, managed with Chezmoi.

★ 5 Stars1 Forks0 IssuesN/A 社区评分0 已确认安装
查看 GitHub
README来源: main@9b5aeb0f

dotfiles-typing-svg

Goku

Hack my keyboard via Karabiner and maintain its config with Goku.

Head over to nikitavoloboev's personal wiki to learn more about karabiner and goku.

Here are some settings (outdated, click to see)
Type From To Comment Favorite Todo
layer space+any shift+any use the most strongest finger yes!
layer v/m+any control+any use the second strongest finger yes!
layer s+h/j/k/l arrow keys yes!
layer s+d/f copy/paste
layer d+j/k cmd+shift+]/cmd+shift+[ in chrome; ctrl+tab/ctrl+shift+tab in wps switch tabs in most apps yes
layer d+m maximize window remap Rectangle
layer d+f/s clicking(like vimium-f)/scrolling remap Homerow
layer f+j/k delete/return so easy to delete yes!
layer w+any launch application w+j -> open chrome when not in chrome; w+j -> cmd+` when already in chrome yes!
layer o+any open website o+f -> create new tab of chrome
layer a+h/j/k/l/v/b/n mouse navigation/click during navigation: hold f to slow down, hold s to scroll avoid pinky problem
layer a+i/o zoom in/out
layer t+any toggle setting/information t+d -> toggle dark mode
layer g+h/j/k/l home/page_down/page_up/end
layer x+h/j/k/l shift+arrow vi visual mode
layer r+h/j/k/l scrolling
simultaneous keys j+k esc yes
simultaneous keys m+k translate remap Easydict left hand mode with mouse
modifier alone left cmd cmd+tab so easy to switch previous app yes!
modifier alone right cmd mouse center click to active app, then maximize window use it a lot when vimium/ideavim lose focus in chrome/IntelliJ yes
modifier alone left option tmux prefix yes
modifier alone right option translate in chrome/IntelliJ/Others remap immersive-translate/Translation/Easydict yes
modifier alone left shift switch english/chinese input by Rime (nothing to do with goku) avoid pinky problem
modifier alone right shift caps_lock turn on caps_lock to enter vi mode (in process) more vi binding
modifier alone fn copy
modifier alone left control paste
other caps_lock esc(pressed alone)/control(as modifier) use j+k and v/m+any instead
mouse right click copy word(double right click)/selected(hold right click)
mouse option/command + left click copy word/selected
mouse middle click paste(hold middle click to overwrite)
trackpad s/d + finger on trackpad copy word/selected easy to accidentally trigger
trackpad f + finger on trackpad paste(hold f to overwrite) easy to accidentally trigger
trackpad h/j/k/l + finger on trackpad arrow keys(one finger), home/page_down/page_up/end(two fingers) easy to accidentally trigger

Using Glove80 keyboard.

Using WhatPulse to track keyboard input.

TODO:

  • Try kanata.
  • Try Glove80 Layout Editor.
  • Try ZMK or QMK.
    • qmk.nvim
    • keymap-editor

Neovim

My neovim config powered by LazyVim.

TODO:

  1. Try NvChad, LazyVim, Kickstart, AstroNvim by Lazyman.
  2. Find a set of keybindings that can be used everywhere, equivalent mapping configurations for other VIM integrations:
    • IDE
      • IdeaVim
      • VSCode Neovim
      • Doom Emacs
    • File manager
      • Terminal: Yazi
      • Neovim: neo-tree.nvim
      • VSCode: Built-in Explorer view
      • IdeaVim: NERDTree
    • Others
      • fish_vi_key_bindings
      • tmux-copy-mode or wezterm-copy-mode
      • less

Tips:

  1. Remap esc.
    • For all keyboard (mainly for Apple Internal Keyboard): remap jk to esc by karabiner.
    • For Glove80 specifically: remap one of the thumb keys to esc by karabiner.
    • In vim(s): inoremap jj <esc> or inoremap jk <esc>.
  2. Turn up Key repeat rate and turn down Delay until repeat in System Settings -> Keyboard. See .macos.
  3. When leaving insert mode, auto switch IME to English (if necessary).
    • By Rime's vim_mode app option, see squirrel.custom.yaml.
    • Use vim.g.neovide_input_ime with autocmd in Neovide.
  4. Remap shift (optional).
    • For all keyboard: remap space to shift by karabiner.

      The original tap and hold (repeat) functions of space are still available.

IdeaVim

.ideavimrc

VSCode Neovim

settings.json

keybindings.json

Doom Emacs

DOOMDIR

Using Emacs Plus.

Fish

fish config

TODO:

  • Try nushell.

Oh my tmux!

.tmux.conf.local

TODO:

  • Try zellij.

Yazi

yazi config

RIME

My rime config for Chinese input based on rime-ice and TigerCode.

Using InputSourcePro to keep Squirrel as the only input source on macOS, instead of ABC.

And using ShowyEdge to notice when input source automatically changes to ABC.

Using emacs-rime in Doom Emacs and rime-ls in Neovim.

SketchyBar

sketchybarrc

yabai

.yabairc

TODO:

  • Try AeroSpace.
  • Try acsandmann/rift.
  • Try karinushka/paneru.

zathura

zathurarc

Using zathura-pdf-poppler plugin.

Fix zathura auto focus on open problem by using yabai.

TODO

  • Termux packages
    • https://www.chezmoi.io/user-guide/advanced/install-packages-declaratively/
    • https://www.chezmoi.io/user-guide/use-scripts-to-perform-actions/#install-packages-with-scripts

Linux on Apple Silicon

  • Asahi Linux
  • nix-community/nixos-apple-silicon

Nix

Install

  • Determinate Nix Installer
  • nix-darwin
  • home-manager

Docs

  • Zero to Nix from Determinate Systems
  • nix.dev

Awesome Nix Config

  • Misterio77/nix-starter-configs

    • Misterio77/nix-config
  • ryan4yin/nix-config: with Fcitx5 + rime + 小鹤音形 flypy

    • ryan4yin/nix-darwin-kickstarter
    • NixOS & Flakes Book
  • dustinlyons/nixos-config

  • mitchellh/nixos-config

  • srid/nixos-config

    • juspay/nixos-unified-template
    • srid/nixos-unified
  • nix-community/awesome-nix

  • nix-community/stylix

  • nix-community/nh

  • denix

  • johnstegeman: with chezmoi

  • bgub/nix-macos-starter

—/ 5

暂无评分

需要先验证清单

Commit 9b5aeb0f588d

社区评论

还没有评论,来写第一条。

DSH HUB

社区维护的 DSH 插件索引。不是 GitHub 或 DeepSeek AI 的官方产品。

社区资源API关于