yep, more dotfiles

feat(xcompose): update module to accept unmanaged sequences directives

Changed files
+15 -1
home-manager
fragments
modules
home-manager
+2
home-manager/fragments/vm.nix
···
"type:keyboard" = {
xkb_layout = "us,fr";
# xkb_variant = "ergol";
+
+
# List of all options: https://www.mankier.com/7/xkeyboard-config#Options
xkb_options = "grp:menu_toggle,compose:caps";
repeat_delay = toString 300;
+13 -1
modules/home-manager/xcompose.nix
···
description = ''
Shapeless tree of macros
- Keys name can be easily found with wev (or xev)
-
- https://www.compart.com — Lists all Unicode characters
+
- https://www.compart.com/en/unicode — Lists all Unicode characters
'';
default = { };
example = {
···
};
};
type = types.anything;
+
};
+
+
extraConfig = mkOption {
+
description = ''
+
Unmanaged xcompose sequences and directives
+
'';
+
default = "";
+
example = ''
+
<Multi_key> <Multi_key> <a> <5> : "٥"
+
'';
+
type = types.lines;
};
};
···
composeFile = pkgs.writeText "XCompose" ''
${optionalString cfg.includeLocaleCompose "include \"%L\""}
${processComposeSet cfg.sequences}
+
${cfg.extraConfig}
'';
in
mkIf cfg.enable {