From b78a6fa7c96895dfde29cf1c639bc64b3b5a63cc Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Thu, 30 May 2024 15:10:19 -0400 Subject: oops, lots of updates - got it working on beryl and my new framework laptop - refactored stuff in the process - added some catppuccin theme stuff --- lib/urxvt.nix | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 lib/urxvt.nix (limited to 'lib/urxvt.nix') diff --git a/lib/urxvt.nix b/lib/urxvt.nix new file mode 100644 index 0000000..7fe2351 --- /dev/null +++ b/lib/urxvt.nix @@ -0,0 +1,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; + }; +} -- cgit v1.2.3