Add custom search in vimium
This commit is contained in:
parent
cf66ac82b5
commit
cc0077a5ae
3 changed files with 4 additions and 41 deletions
|
|
@ -3,45 +3,6 @@
|
||||||
default = "ddg";
|
default = "ddg";
|
||||||
|
|
||||||
engines = {
|
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
|
# Hide unwanted default search engines
|
||||||
"google".metaData.hidden = true;
|
"google".metaData.hidden = true;
|
||||||
"bing".metaData.hidden = true;
|
"bing".metaData.hidden = true;
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
"scrollStepSize": 60,
|
"scrollStepSize": 60,
|
||||||
"smoothScroll": true,
|
"smoothScroll": true,
|
||||||
"grabBackFocus": false,
|
"grabBackFocus": false,
|
||||||
"searchEngines": "",
|
"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://www.google.com/search?q=",
|
"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}"
|
"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}"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -50,12 +50,14 @@
|
||||||
persistent-apps = [
|
persistent-apps = [
|
||||||
"/Applications/Firefox.app"
|
"/Applications/Firefox.app"
|
||||||
"/Applications/Obsidian.app"
|
"/Applications/Obsidian.app"
|
||||||
|
"/System/Applications/Preview.app"
|
||||||
"/Applications/Ghostty.app"
|
"/Applications/Ghostty.app"
|
||||||
"/Applications/KeePassXC.app"
|
"/Applications/KeePassXC.app"
|
||||||
];
|
];
|
||||||
persistent-others = [
|
persistent-others = [
|
||||||
"/Users/yanlin/Desktop"
|
"/Users/yanlin/Desktop"
|
||||||
"/Users/yanlin/Downloads"
|
"/Users/yanlin/Downloads"
|
||||||
|
"/Users/yanlin/Documents"
|
||||||
]; # List of folders/files to keep in dock
|
]; # List of folders/files to keep in dock
|
||||||
|
|
||||||
# Hot Corners - Actions:
|
# Hot Corners - Actions:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue