From c9e147c93b8bd3c52b2e7658d928daec6bd824e1 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Thu, 3 Mar 2022 17:44:39 +0100 Subject: gkleen@sif: ... --- accounts/gkleen@sif/xcompose.nix | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 accounts/gkleen@sif/xcompose.nix (limited to 'accounts/gkleen@sif/xcompose.nix') diff --git a/accounts/gkleen@sif/xcompose.nix b/accounts/gkleen@sif/xcompose.nix new file mode 100644 index 00000000..50dddacd --- /dev/null +++ b/accounts/gkleen@sif/xcompose.nix @@ -0,0 +1,21 @@ +{ userName, pkgs, ... }: +let + runSed = path: sedScript: pkgs.runCommand (baseNameOf path) { buildInputs = [ pkgs.gnused ]; } "sed -r -f ${pkgs.writeText "script-file" sedScript} ${path} > $out"; +in { + config.home-manager.users.${userName}.home.file.".XCompose".text = '' + include "${pkgs.xorg.libX11}/share/X11/locale/en_US.UTF-8/Compose" + include "${runSed "${pkgs.xcompose}/dotXCompose" '' + /include "%L"/ s/^/# / + ''}" + include "${pkgs.xcompose}/frakturcompose" + include "${pkgs.xcompose}/emoji.compose" + include "${pkgs.xcompose}/modletters.compose" + include "${pkgs.xcompose}/tags.compose" + include "${pkgs.xcompose}/maths.compose" + include "${pkgs.xcompose}/parens.compose" + + : "🙁" U1F641 # SLIGHTLY FROWNING FACE + : "🙁" U1F641 # SLIGHTLY FROWNING FACE + : "☚ī¸" U2639 # WHITE FROWNING FACE VARIANT + ''; +} -- cgit v1.2.3