diff options
Diffstat (limited to 'accounts/gkleen@sif/xcompose.nix')
-rw-r--r-- | accounts/gkleen@sif/xcompose.nix | 21 |
1 files changed, 21 insertions, 0 deletions
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 @@ | |||
1 | { userName, pkgs, ... }: | ||
2 | let | ||
3 | runSed = path: sedScript: pkgs.runCommand (baseNameOf path) { buildInputs = [ pkgs.gnused ]; } "sed -r -f ${pkgs.writeText "script-file" sedScript} ${path} > $out"; | ||
4 | in { | ||
5 | config.home-manager.users.${userName}.home.file.".XCompose".text = '' | ||
6 | include "${pkgs.xorg.libX11}/share/X11/locale/en_US.UTF-8/Compose" | ||
7 | include "${runSed "${pkgs.xcompose}/dotXCompose" '' | ||
8 | /include "%L"/ s/^/# / | ||
9 | ''}" | ||
10 | include "${pkgs.xcompose}/frakturcompose" | ||
11 | include "${pkgs.xcompose}/emoji.compose" | ||
12 | include "${pkgs.xcompose}/modletters.compose" | ||
13 | include "${pkgs.xcompose}/tags.compose" | ||
14 | include "${pkgs.xcompose}/maths.compose" | ||
15 | include "${pkgs.xcompose}/parens.compose" | ||
16 | |||
17 | <Multi_key> <colon> <parenleft> : "đ" U1F641 # SLIGHTLY FROWNING FACE | ||
18 | <Multi_key> <Multi_key> <colon> <minus> <parenleft> : "đ" U1F641 # SLIGHTLY FROWNING FACE | ||
19 | <Multi_key> <Multi_key> <colon> <c> : "âšī¸" U2639 # WHITE FROWNING FACE VARIANT | ||
20 | ''; | ||
21 | } | ||