summaryrefslogtreecommitdiff
path: root/lib/urxvt.nix
blob: a25bc68b7d2524cbeb42b81cb35467e794200702 (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
25
26
27
28
29
30
{ ... }:
let
  inherit (import ./const.nix) fontSize;
  #fontSize = 10;
  #font = name: size: "xft:${name}:size=${toString size}:ant";

  # why doesn't font size work right? It is always either too large or too
  # small... what if I just don't set font size?
  # ->
  font = name: size: "xft:${name}:ant";
in {
  programs.urxvt = {
    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;
  };
}