xcompose.enable

Whether to enable Enable user XCompose configuration.

type

boolean

example

{
  xcompose.enable = true;
}

default

{
  xcompose.enable = false;
}

xcompose.rules

User compose rules.

type

list of submodule or submodule or submodule

example

{
  xcompose.rules = {
    _type = "literalExpression";
    text = ''
      let
        ruleOn = rule: events: rule // { inherit events; };
        minusOn = ruleOn
          { result = { string = "−"; keysym = "U2212"; };
            comment = "MINUS SIGN"; };
      in [
        { include = "%L"; }
        { commentLines = ""; } # blank line
        (minusOn [ "<Multi_key>" "<underscore>" "<minus>" ])
        (minusOn [ "<Multi_key>" "<minus>" "<underscore>" ])
      ]
      
    '';
  };
}

default

{
  xcompose.rules = [];
}