rxvt-unicode font size

categories: blog

It is simple to change the font size of rxvt-unicode via an entry in ~/.Xdefaults:

URxvt*font:             xft:DejaVu Sans Mono-8

But it is also possible to change the font on the fly via this escape sequence:

printf '\33]50;%s\007' "xft:DejaVu Sans Mono-8"

While playing around with that I also found out that it is very simple to change the font of any other terminal you know the PID of, by just doing something like:

printf '\33]50;%s\007' "xft:DejaVu Sans Mono-8" > /proc/$pid/fd/0

where $pid is the process id of the shell you are running.

View Comments
blog comments powered by Disqus