mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-06-16 01:55:13 -05:00
feat: cleaned up espanso
This commit is contained in:
parent
0ddf9cd1ce
commit
3d6ee99ecb
9 changed files with 91 additions and 142 deletions
|
@ -4,8 +4,26 @@
|
|||
...
|
||||
}:
|
||||
let
|
||||
inherit (flake.config.people) user0;
|
||||
inherit (flake.config.people.users.${user0}) email;
|
||||
|
||||
matchHelper = trigger: replace: {
|
||||
trigger = trigger;
|
||||
replace = replace;
|
||||
};
|
||||
|
||||
configPath = ./config;
|
||||
|
||||
baseMatches = {
|
||||
matches =
|
||||
[ ]
|
||||
++ (import (configPath + /base.nix) { inherit matchHelper; })
|
||||
++ (import (configPath + /url.nix) { inherit flake matchHelper; })
|
||||
++ (import (configPath + /logic.nix) { inherit matchHelper; })
|
||||
++ (import (configPath + /debate.nix) { inherit matchHelper; })
|
||||
++ (import (configPath + /characters.nix) { inherit matchHelper; })
|
||||
++ (import (configPath + /academic.nix) { inherit matchHelper; })
|
||||
++ (import (configPath + /superscript.nix) { inherit matchHelper; })
|
||||
++ (import (configPath + /email.nix) { inherit flake matchHelper; });
|
||||
};
|
||||
in
|
||||
{
|
||||
services.espanso = {
|
||||
|
@ -18,146 +36,7 @@ in
|
|||
};
|
||||
package = pkgs.espanso-wayland;
|
||||
matches = {
|
||||
base = {
|
||||
matches = [
|
||||
{
|
||||
trigger = ":up";
|
||||
replace = "↑";
|
||||
}
|
||||
{
|
||||
trigger = ":down";
|
||||
replace = "↓";
|
||||
}
|
||||
{
|
||||
trigger = ":left";
|
||||
replace = "←";
|
||||
}
|
||||
{
|
||||
trigger = ":right";
|
||||
replace = "→";
|
||||
}
|
||||
{
|
||||
trigger = ":neg";
|
||||
replace = "¬";
|
||||
}
|
||||
{
|
||||
trigger = ":conj";
|
||||
replace = "∧";
|
||||
}
|
||||
{
|
||||
trigger = ":disj";
|
||||
replace = "∨";
|
||||
}
|
||||
{
|
||||
trigger = ":imp";
|
||||
replace = "→";
|
||||
}
|
||||
{
|
||||
trigger = ":bicon";
|
||||
replace = "↔";
|
||||
}
|
||||
{
|
||||
trigger = ":forall";
|
||||
replace = "∀";
|
||||
}
|
||||
{
|
||||
trigger = ":exist";
|
||||
replace = "∃";
|
||||
}
|
||||
{
|
||||
trigger = ":therefore";
|
||||
replace = "∴";
|
||||
}
|
||||
{
|
||||
trigger = ":delta";
|
||||
replace = "Δ";
|
||||
}
|
||||
{
|
||||
trigger = ":emdash";
|
||||
replace = "—";
|
||||
}
|
||||
{
|
||||
trigger = ":dag1";
|
||||
replace = "†";
|
||||
}
|
||||
{
|
||||
trigger = ":dag2";
|
||||
replace = "‡";
|
||||
}
|
||||
{
|
||||
trigger = ":glp";
|
||||
replace = "GLP-1RA";
|
||||
}
|
||||
{
|
||||
trigger = ":degree";
|
||||
replace = "°";
|
||||
}
|
||||
{
|
||||
trigger = ":ss1";
|
||||
replace = "¹";
|
||||
}
|
||||
{
|
||||
trigger = ":ss2";
|
||||
replace = "²";
|
||||
}
|
||||
{
|
||||
trigger = ":ss3";
|
||||
replace = "³";
|
||||
}
|
||||
{
|
||||
trigger = ":ss4";
|
||||
replace = "⁴";
|
||||
}
|
||||
{
|
||||
trigger = ":ss5";
|
||||
replace = "⁵";
|
||||
}
|
||||
{
|
||||
trigger = ":ss6";
|
||||
replace = "⁶";
|
||||
}
|
||||
{
|
||||
trigger = ":ss7";
|
||||
replace = "⁷";
|
||||
}
|
||||
{
|
||||
trigger = ":ss8";
|
||||
replace = "⁸";
|
||||
}
|
||||
{
|
||||
trigger = ":ss9";
|
||||
replace = "⁹";
|
||||
}
|
||||
{
|
||||
trigger = ":ss0";
|
||||
replace = "⁰";
|
||||
}
|
||||
{
|
||||
trigger = ":ntt";
|
||||
replace = ''
|
||||
World A) Animals farmed for food.
|
||||
World B) Humans farmed for food.
|
||||
|
||||
All else equal, what is true of world A that is untrue of world B, that if made true of world B, would make world B permissible?'';
|
||||
}
|
||||
{
|
||||
trigger = ":dotfiles";
|
||||
replace = "https://gitlab.com/upRootNutrition/dotfiles";
|
||||
}
|
||||
{
|
||||
trigger = ":website";
|
||||
replace = "https://uprootnutrition.com";
|
||||
}
|
||||
{
|
||||
trigger = ":mail0";
|
||||
replace = email.address0;
|
||||
}
|
||||
{
|
||||
trigger = ":mail1";
|
||||
replace = email.address2;
|
||||
}
|
||||
];
|
||||
};
|
||||
base = baseMatches;
|
||||
global_vars = {
|
||||
global_vars = [
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue