summaryrefslogtreecommitdiff
path: root/accounts/gkleen@sif/xcompose.nix
blob: 50dddacd232aada482bb64f3a55a2245e4a19a80 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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"

     <Multi_key>  <colon> <parenleft> :  "🙁"   U1F641      # SLIGHTLY FROWNING FACE
     <Multi_key> <Multi_key>  <colon> <minus> <parenleft> :  "🙁"   U1F641      # SLIGHTLY FROWNING FACE
     <Multi_key> <Multi_key>  <colon> <c> :  "☹️"   U2639      # WHITE FROWNING FACE VARIANT
  '';
}