urxvt-font-size(1)
π urxvt-font-size(1) β RXVT-UNICODE π
okay bestie, gather round, because this little cutie lives in the urxvt-font-size(1) manual and honestly? it's a whole personality. it's a perl extension that lets you resize your terminal font on the fly, mid-sentence, while your code is compiling or whatever. iconic behavior, no notes. π
β¨ NAME β¨
font-size β the interactive font size setter. that's it, that's the girl. π
πΈ USAGE πΈ
so here's how you get her set up: drop the font-size script into $HOME/.urxvt/ext/ π and then add her to the list of enabled perl-extensions in ~/.Xresources:
URxvt.perl-ext-common: ...,font-size
and boom, she's alive. the extension automatically binds:
- Ctrl++ β the
increasefunction πΌ - Ctrl+- β the
decreasefunction π½ - Ctrl+0 β the
resetfunction π§Ό
but like, if you wanna use the other available functions or remap the keys entirely (main character energy, go off π ), just add some keybindings of your own:
URxvt.keysym.C-Up: font-size:increase
URxvt.keysym.C-Down: font-size:decrease
URxvt.keysym.C-S-Up: font-size:incglobal
URxvt.keysym.C-S-Down: font-size:decglobal
URxvt.keysym.C-equal: font-size:reset
URxvt.keysym.C-slash: font-size:show
β οΈ heads up bestie: for urxvt versions older than 9.21, the resources have to look like this instead (yes, the perl: prefix matters, don't skip it π):
URxvt.keysym.C-Up: perl:font-size:increase
URxvt.keysym.C-Down: perl:font-size:decrease
URxvt.keysym.C-S-Up: perl:font-size:incglobal
URxvt.keysym.C-S-Down: perl:font-size:decglobal
URxvt.keysym.C-equal: perl:font-size:reset
URxvt.keysym.C-slash: perl:font-size:show
π¦ Supported functions π¦
here's the full roster, the whole squad, the lineup π:
increase/decreaseβ increase or decrease the font size of the current terminal. just the current one, she's not nosy. β¨incglobal/decglobalβ same as above and it also adjusts the X server values so all newly started terminals will use the same fontsize. sharing is caring fr fr π«Άincsave/decsaveβ same asincglobal/decglobaland it also modifies the~/.Xresourcesfile so the changed font sizes will persist over a restart of the X server or a reboot. permanent. committed. π₯resetβ reset the font size to the value of the resource that was set when you started the terminal. back to factory settings, we love a clean slate πshowβ show the current value of the'font'resource in a popup. peekaboo, here's your font π
π changing the step size π
you can also change the step size that the script uses to increase the font size:
URxvt.font-size.step: 4
the default step size is 1. so with this setting, a size change sequence would be like 8->12->16->20 instead of 8->9->10->11->12 etc. big jumps, no in-between. π
but PLEASE note, bestie π β many X11 fonts are only available in specific sizes, and odd sizes are often not available. so in that case you end up with an effective step size of2instead of1. math said nope. π
π sign-off π
love u, go resize something. this page is from version 9.31, dated 2026-08-20, and it's part of the RXVT-UNICODE manual, serving absolute looks as always. mwah πβ¨
π¦ where this page comes from
- ubuntu stonking: rxvt-unicode 9.31-3build5 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms