diff --git a/config/firefox/search.nix b/config/firefox/search.nix index 939e977..4c2823a 100644 --- a/config/firefox/search.nix +++ b/config/firefox/search.nix @@ -3,45 +3,6 @@ default = "ddg"; engines = { - "ddg" = { - urls = [{ - template = "https://duckduckgo.com/?q={searchTerms}"; - }]; - icon = "https://duckduckgo.com/favicon.ico"; - definedAliases = [ "@ddg" ]; - }; - - "Nix Packages" = { - urls = [{ - template = "https://search.nixos.org/packages"; - params = [ - { name = "channel"; value = "unstable"; } - { name = "query"; value = "{searchTerms}"; } - ]; - }]; - definedAliases = [ "@nixpkg" ]; - }; - - "Linkding" = { - urls = [{ - template = "https://link.nas.yanlincs.com/bookmarks"; - params = [ - { name = "q"; value = "{searchTerms}"; } - ]; - }]; - definedAliases = [ "@link" ]; - }; - - "google" = { - urls = [{ - template = "https://www.google.com/search"; - params = [ - { name = "q"; value = "{searchTerms}"; } - ]; - }]; - definedAliases = [ "@g" ]; - }; - # Hide unwanted default search engines "google".metaData.hidden = true; "bing".metaData.hidden = true; diff --git a/config/firefox/vimium-options.json b/config/firefox/vimium-options.json index 3846cbd..394626f 100644 --- a/config/firefox/vimium-options.json +++ b/config/firefox/vimium-options.json @@ -15,7 +15,7 @@ "scrollStepSize": 60, "smoothScroll": true, "grabBackFocus": false, - "searchEngines": "", - "searchUrl": "https://www.google.com/search?q=", + "searchEngines": "ddg: https://duckduckgo.com/?q=%s\nnix: https://search.nixos.org/packages?channel=unstable&query=%s\nlink: https://link.yanlincs.com/bookmarks?q=%s\ng: https://www.google.com/search?q=%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 3953c2d..e7b3032 100644 --- a/hosts/darwin/system-default.nix +++ b/hosts/darwin/system-default.nix @@ -50,12 +50,14 @@ persistent-apps = [ "/Applications/Firefox.app" "/Applications/Obsidian.app" + "/System/Applications/Preview.app" "/Applications/Ghostty.app" "/Applications/KeePassXC.app" ]; persistent-others = [ "/Users/yanlin/Desktop" "/Users/yanlin/Downloads" + "/Users/yanlin/Documents" ]; # List of folders/files to keep in dock # Hot Corners - Actions: