1
0
mirror of https://github.com/gryf/urxvt-font.git synced 2026-03-18 22:13:33 +01:00

split fonts config out of main xresources file

This commit is contained in:
noah
2012-04-10 23:46:00 -05:00
parent 33ad96e95a
commit a03093ba7c
2 changed files with 11 additions and 1 deletions

View File

@@ -8,3 +8,13 @@ urxvt.keysym.Control-Shift-Down: perl:font:decrement
urxvt.perl-ext-common: font
Now, @Ctrl+Shift+<Up>@ and @Ctrl+Shift+<Down>@ 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

2
font
View File

@@ -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
{