www.nico.schottelius.org/blog/urxvt-change-font-dynamically.mdwn
Nico Schottelius a3224fc553 update to github url
Signed-off-by: Nico Schottelius <nico@freiheit.schottelius.org>
2015-03-27 22:27:23 +09:00

14 lines
798 B
Markdown

[[!meta title="How to change the font in urxvt (rxvt-unicode) dynamically"]]
After [[I had a look at some fonts for terminal emulators|published-xorg-terminal-emulator-fonts]],
I chose some of the fonts to be used for my terminal.
[rxvt-unicode](http://software.schmorp.de/pkg/rxvt-unicode.html) has excellent support for
dynamic font changes, as described
in the [urxvt faq](http://pod.tst.eu/http://cvs.schmorp.de/rxvt-unicode/doc/rxvt.7.pod#Can_I_switch_the_fonts_at_runtime).
I decided to write a tiny script around the printf call
named [urxvt-font-change](https://github.com/telmich/nsbin/blob/master/urxvt-font-change).
This resulted in a clean [[.Xresources|configs/dot-Xresources]] file, which allows me to change the font
using ***Control-Alt-{1-6,0}***.
[[!tag terminal unix urxvt]]