From a03093ba7c4057317d38fa8fba74da295f2b1d50 Mon Sep 17 00:00:00 2001 From: noah Date: Tue, 10 Apr 2012 23:46:00 -0500 Subject: [PATCH] split fonts config out of main xresources file --- README.textile | 10 ++++++++++ font | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/README.textile b/README.textile index abc1969..6598d0c 100644 --- a/README.textile +++ b/README.textile @@ -8,3 +8,13 @@ urxvt.keysym.Control-Shift-Down: perl:font:decrement urxvt.perl-ext-common: font Now, @Ctrl+Shift+@ and @Ctrl+Shift+@ will, respectively, enlarge and decrease the text size in a running urxvt window, *and* save the new font size to @~/.Xresources@, so that it's there for the next time you open a terminal window. With the Monaco font, it's a poor man's iTerm. + +h2. + +I keep my fonts in a separate xresources file, which gets include by @~/.Xresources@. This way I can version @~/.Xdefaults@ without dirtying the repository every time I change the terminal font size. For this to work, the path defined by @X_RESOURCES@ in @font@ must contain something like this: + +bc. /* Fonts */ +urxvt*boldColors: on +urxvt*font: xft:Monaco:pixelsize=20:antialias=true:hinting=true:medium +urxvt*boldFont: xft:Monaco:pixelsize=20:antialias=true:hinting=true:bold +! vim:ft=xdefaults diff --git a/font b/font index 0d1bebf..2153019 100755 --- a/font +++ b/font @@ -25,7 +25,7 @@ use strict; # Debugging: urxvt --perl-lib ${HOME}/.urxvt -pe font -use constant X_RESOURCES => "~/.Xresources"; +use constant X_RESOURCES => "~/.config/xresources/fonts"; sub _resize_xft_string {