www.nico.schottelius.org/blog/urxvt-change-font-dynamically.mdwn

15 lines
808 B
Text
Raw Normal View History

[[!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](http://git.schottelius.org/?p=nsbin;a=commit;h=c0e8fa882655867abf5f6359bdff9498c02bf717).
This resulted in a clean [[.Xresources|configs/dot-Xresources]] file, which allows me to change the font
using ***Control-Alt-{1-6,0}***.
[[!tag unix]]