diff --git a/config/vimium-options.json b/config/vimium-options.json index 5fe30d2..a77ba06 100644 --- a/config/vimium-options.json +++ b/config/vimium-options.json @@ -15,7 +15,7 @@ "scrollStepSize": 60, "smoothScroll": true, "grabBackFocus": false, - "searchEngines": "d: https://duckduckgo.com/?q=%s\ng: https://www.google.com/search?q=%s\ngh: https://github.com/search?q=%s\nmap: https://www.google.com/maps/search/%s\nnix: https://search.nixos.org/packages?channel=unstable&query=%s\nytb: https://www.youtube.com/results?search_query=%s\nscholar: https://scholar.google.com/scholar?q=%s\ndblp: https://dblp.org/search?q=%s\nimg: https://duckduckgo.com/?q=%s&iax=images&ia=images", + "searchEngines": "d: https://duckduckgo.com/?q=%s\ng: https://www.google.com/search?q=%s\ngh: https://github.com/search?q=%s\nmap: https://www.google.com/maps/search/%s\nnix: https://search.nixos.org/packages?channel=unstable&query=%s\nytb: https://www.youtube.com/results?search_query=%s\nscholar: https://scholar.google.com/scholar?q=%s\ndblp: https://dblp.org/search?q=%s\nimg: https://duckduckgo.com/?q=%s&iax=images&ia=images\nbili: https://search.bilibili.com/all?keyword=%s", "searchUrl": "https://duckduckgo.com/?q=", "userDefinedLinkHintCss": "div > .vimiumHintMarker {\n padding: 2px 3px;\n background-color: #fabd2f;\n color: #282828;\n font-weight: bold;\n font-size: 12px;\n font-family: monospace;\n border: 1px solid #282828;\n}\n\ndiv > .vimiumHintMarker span {\n color: #282828;\n}\n\ndiv > .vimiumHintMarker > .matchingCharacter {\n color: #fb4934;\n}" } diff --git a/hosts/darwin/system-default.nix b/hosts/darwin/system-default.nix index c0cdde7..607da59 100644 --- a/hosts/darwin/system-default.nix +++ b/hosts/darwin/system-default.nix @@ -122,6 +122,7 @@ find /Users/yanlin -name ".DS_Store" -delete 2>/dev/null || true sudo -u yanlin defaults -currentHost write -globalDomain NSStatusItemSpacing -int 10 sudo -u yanlin defaults write -globalDomain NSUserKeyEquivalents -dict-add Minimize '\0' + sudo -u yanlin defaults write com.apple.universalaccess closeViewScrollWheelToggle -bool false /System/Library/PrivateFrameworks/SystemAdministration.framework/Resources/activateSettings -u '';