feat: refactored espanso config

This commit is contained in:
Nick 2025-06-01 14:55:05 -05:00
parent 3d6ee99ecb
commit 9eb6982341
9 changed files with 123 additions and 36 deletions

View file

@ -1,7 +0,0 @@
{ matchHelper, ... }:
[
(matchHelper ":up" "")
(matchHelper ":down" "")
(matchHelper ":left" "")
(matchHelper ":right" "")
]

View file

@ -3,4 +3,14 @@
(matchHelper ":delta" "Δ")
(matchHelper ":emdash" "")
(matchHelper ":degree" "°")
(matchHelper ":+-" "±")
(matchHelper ":<=" "")
(matchHelper ":>=" "")
(matchHelper ":copyright" "©")
(matchHelper ":restricted" "®")
(matchHelper ":trademark" "")
(matchHelper ":up" "")
(matchHelper ":down" "")
(matchHelper ":left" "")
(matchHelper ":right" "")
]

View file

@ -1,8 +1,35 @@
{ matchHelper, ... }:
[
(matchHelper ":ntt" ''
(matchHelper ":ntt1" ''
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?'')
(matchHelper ":ntt2" ''
P1) For all things, if a being has moral worth, then we should not exploit it to any greater degree than we would tolerate for trait-adjusted humans.
(x(Px¬Qx))
P2) If animals dont have moral worth, then there exists a trait that is absent in animals such that if it were absent in humans, humans wouldnt have moral worth.
(¬Pat(Rta(Rth¬Ph)))
P3) There doesnt exist a trait that is absent in animals such that if it were absent in humans, humans wouldnt have moral worth.
(¬t(Rta(Rth¬Ph)))
C) Therefore, we should not exploit animals to any greater degree than we would tolerate for trait-adjusted humans.
(¬Qa)'')
(matchHelper ":transid" ''
P1) Someone is a woman if, and only if, someone possesses a sufficiently greater sum of weighted traits that more closely associate with large gametes than weighted traits that associate with small gametes and someone is over 18 years of age.
(x(PxRxWx))
P2) Someone is a man if, and only if, someone possesses a sufficiently greater sum of weighted traits that more closely associate with small gametes than weighted traits that associate with large gametes and someone is over 18 years of age.
(x(QxSxWx))
P3) A trans person of the male sex possesses a sufficiently greater sum of weighted traits that more closely associate with large gametes than weighted traits that associate with small gametes and a trans person with small gametes is over 18 years of age.
(RaWa)
P4)A trans person of the female sex possesses a sufficiently greater sum of weighted traits that more closely associate with small gametes than weighted traits that associate with large gametes and a trans person with large gametes is over 18 years of age.
(SgWg)
C) Therefore, a trans person of the male sex is a woman and a trans person with female sex is a man.
(PaQg)'')
]

View file

@ -4,8 +4,27 @@
(matchHelper ":conj" "")
(matchHelper ":disj" "")
(matchHelper ":imp" "")
(matchHelper ":bicon" "")
(matchHelper ":iff" "")
(matchHelper ":forall" "")
(matchHelper ":exist" "")
(matchHelper ":therefore" "")
(matchHelper ":because" "")
(matchHelper ":nexist" "")
(matchHelper ":nand" "")
(matchHelper ":nor" "")
(matchHelper ":xor" "")
(matchHelper ":xnor" "")
(matchHelper ":notimp" "")
(matchHelper ":notiff" "")
(matchHelper ":models" "")
(matchHelper ":notmodels" "")
(matchHelper ":proves" "")
(matchHelper ":notproves" "")
(matchHelper ":forces" "")
(matchHelper ":notforces" "")
(matchHelper ":top" "")
(matchHelper ":bottom" "")
(matchHelper ":dashv" "")
(matchHelper ":necessary" "")
(matchHelper ":possible" "")
]

View file

@ -0,0 +1,41 @@
{ matchHelper, ... }:
[
(matchHelper ":super1" "¹")
(matchHelper ":super2" "²")
(matchHelper ":super3" "³")
(matchHelper ":super4" "")
(matchHelper ":super5" "")
(matchHelper ":super6" "")
(matchHelper ":super7" "")
(matchHelper ":super8" "")
(matchHelper ":super9" "")
(matchHelper ":super0" "")
(matchHelper ":sub1" "")
(matchHelper ":sub2" "")
(matchHelper ":sub3" "")
(matchHelper ":sub4" "")
(matchHelper ":sub5" "")
(matchHelper ":sub6" "")
(matchHelper ":sub7" "")
(matchHelper ":sub8" "")
(matchHelper ":sub9" "")
(matchHelper ":sub0" "")
(matchHelper ":1/2" "½")
(matchHelper ":1/3" "")
(matchHelper ":2/3" "")
(matchHelper ":1/4" "¼")
(matchHelper ":3/4" "¾")
(matchHelper ":1/5" "")
(matchHelper ":2/5" "")
(matchHelper ":3/5" "")
(matchHelper ":4/5" "")
(matchHelper ":1/6" "")
(matchHelper ":5/6" "")
(matchHelper ":1/7" "")
(matchHelper ":1/8" "")
(matchHelper ":3/8" "")
(matchHelper ":5/8" "")
(matchHelper ":7/8" "")
(matchHelper ":1/9" "")
(matchHelper ":1/10" "")
]

View file

@ -1,13 +0,0 @@
{ matchHelper, ... }:
[
(matchHelper ":ss1" "¹")
(matchHelper ":ss2" "²")
(matchHelper ":ss3" "³")
(matchHelper ":ss4" "")
(matchHelper ":ss5" "")
(matchHelper ":ss6" "")
(matchHelper ":ss7" "")
(matchHelper ":ss8" "")
(matchHelper ":ss9" "")
(matchHelper ":ss0" "")
]

View file

@ -1,28 +1,30 @@
{
flake,
lib,
pkgs,
...
}:
let
matchHelper = trigger: replace: {
trigger = trigger;
replace = replace;
};
configPath = ./config;
configs = {
url = { inherit flake matchHelper; };
logic = { inherit matchHelper; };
debate = { inherit matchHelper; };
characters = { inherit matchHelper; };
academic = { inherit matchHelper; };
numbers = { inherit matchHelper; };
email = { inherit flake matchHelper; };
};
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; });
matches = lib.concatMap (name: import (configPath + "/${name}.nix") configs.${name}) (
builtins.attrNames configs
);
};
in
{

View file

@ -1,6 +1,14 @@
{ flake, osConfig, ... }:
let
inherit (flake.config.machines) devices;
deimos = devices.deimos.name;
host = osConfig.networking.hostName;
deviceLogic = if host == deimos then "1" else "1";
monitorSettings = [
"eDP-1,highres@highrr,0x0,1"
"eDP-1,highres@highrr,0x0,${deviceLogic}"
];
in
monitorSettings

View file

@ -20,7 +20,7 @@ let
misc = import (configPath + /misc.nix);
windowrulev2 = import (configPath + /windowrulev2.nix);
xwayland = import (configPath + /xwayland.nix);
monitor = import (configPath + /monitor.nix);
monitor = import (configPath + /monitor.nix) { inherit flake osConfig; };
};
in
{