Compare commits

..

5 commits

Author SHA1 Message Date
e1cb461f91
config (zed): use "minimal" agent profile by default 2025-10-18 08:41:27 -05:00
74689028c2
shell (desktop): add Zed config editing aliases
Zed has a lot of settings, but it is impossible to change them to
experiment with when managed by home-manager. So I often find myself
removing the link, changing a setting, then going to change it in
home-manager and switching to the new generation. Add shell aliases to
simplify that process entirely.
2025-10-18 08:40:09 -05:00
146ab7e9b2
config (firefox): Replace Perplexity link with One45 2025-10-18 08:33:51 -05:00
8dbc98339a
config (firefox): Remove all the default search engines 2025-10-18 08:33:21 -05:00
73e6cfa67d
config (firefox): Replace Mozilla built-in Perplexity with my own
Mozilla has added Perplexity as a default search engine in Firefox now,
with special promotions and flare. I take inspiration from their
configuration to make the Perplexity integration better, but remove all
the promotional garbage.
2025-10-18 08:32:43 -05:00
3 changed files with 56 additions and 8 deletions

View file

@ -32,7 +32,19 @@
(texlive.combine { inherit (texlive) scheme-basic latex-bin latexmk; })
custom-pkgs.ark
];
shellAliases = { code = "codium"; };
shellAliases = {
code = "codium";
zunlink = ''
readlink ~/.config/zed/settings.json > ~/.config/zed/hm-settings-location &&
rm ~/.config/zed/settings.json &&
cp $(< ~/.config/zed/hm-settings-location) ~/.config/zed/settings.json &&
chmod u+w ~/.config/zed/settings.json
'';
zrelink = ''
rm -f ~/.config/zed/settings.json &&
ln -s $(< ~/.config/zed/hm-settings-location) ~/.config/zed/settings.json
'';
};
};
services = { syncthing.enable = true; };
}

View file

@ -101,9 +101,31 @@
updateInterval = 24 * 60 * 60 * 1000; # every day
definedAliases = [ "@mxs" ];
};
"Perplexity" = {
urls =
[{ template = "https://www.perplexity.ai/?q={searchTerms}"; }];
# Since Firefox added their own Perplexity integration, I can no
# longer call this profile "Perplexity." To fix this, we'll pretend
# to use Perplexity Pro. This profile has a much handier alias, plus
# removes the "vendor code" from all queries.
"Perplexity Pro" = {
urls = [
{
rels = [ "results" ];
type = "text/html";
template = "https://www.perplexity.ai/search";
params = [{
name = "q";
value = "{searchTerms}";
}];
}
{
rels = [ "suggestions" ];
type = "application/x-suggestions+json";
template = "https://suggest.perplexity.ai/suggest";
params = [{
name = "q";
value = "{searchTerms}";
}];
}
];
icon = "https://www.perplexity.ai/favicon.ico";
updateInterval = 7 * 24 * 60 * 60 * 1000;
definedAliases = [ "@pxt" ];
@ -128,6 +150,16 @@
updateInterval = 24 * 60 * 60 * 1000; # every day
definedAliases = [ "@kg" ];
};
# Hide search engines that I don't use/only use via bangs
google.metaData.hidden = true;
bing.metaData.hidden = true;
amazondotcom-us.metaData.hidden = true;
ddg.metaData.hidden = true;
ebay.metaData.hidden = true;
wikipedia.metaData.hidden = true;
perplexity.metaData.hidden = true;
# Based on which bangs I use, I should also add (in no particular order):
# - Dockerhub
# - WineHQ
@ -188,13 +220,16 @@
label = "Vault";
baseDomain = "vault.millironx.com";
}
{
url = "https://www.perplexity.ai/";
label = "perplexity";
}
{
url =
"https://www.vet.k-state.edu/academics/student-faculty-handbook/";
label = "KSU CVM Student-Faculty Handbook";
baseDomain = "www.vet.k-state.edu";
}
{
url = "https://ksu.one45.com";
label = "One45";
baseDomain = "ksu.one45.com";
}
];
"browser.shopping.experience2023.active" = false;

View file

@ -24,6 +24,7 @@
provider = "zed.dev";
model = "claude-3-7-sonnet";
};
default_profile = "minimal";
};
buffer_font_family = "FiraCode Nerd Font";
buffer_font_size = 11;