summaryrefslogtreecommitdiff
path: root/lib/urxvt.nix
blob: 7fe2351ca4e29ef289b96cebc063231bb4052b77 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{ ... }:
let
  #inherit (import ./const.nix) fontSize;
  fontSize = 10;
in {
  programs.urxvt = let font = name: size: "xft:${name}:size=${toString size}:ant"; in {
    enable = true;
    fonts = [
      (font "Fira Code" fontSize)
      (font "FiraCodeNerdfont" fontSize)
      "xft:Noto Emoji"
    ];
    #keybindings = {
    #  # why don't any of these work?
    #  "Shift-Control-C" = "eval:selection_to_clipboard";
    #  "Shift-Control-V" = "eval:paste_clipboard";
    #  "Shift-Control-+" = "command:\033]710;${font 12}\007\033]711;${font 12}\007";
    #  "Shift-Control--" = "command:\033]710;${font 8}\007\033]711;${font 8}\007";
    #};
    iso14755 = true; # unicode chars
    #transparent = true;
    #shading = 10;
  };
}