NAME
font-size - interactive font size setter
USAGE
Put the font-size script into $HOME/.urxvt/ext/ and add it to the list of enabled perl-extensions in ~/.Xresources:
URxvt.perl-ext-common: ...,font-size
The extension automatically binds Ctrl++ to the 'increase' function, Ctrl+- to 'decrease', and Ctrl+0 to 'reset'. To use the other available functions or change the keys, add some keybindings of your own:
URxvt.keysym.C-Up: font-size:increaseURxvt.keysym.C-Down: font-size:decreaseURxvt.keysym.C-S-Up: font-size:incglobalURxvt.keysym.C-S-Down: font-size:decglobalURxvt.keysym.C-equal: font-size:resetURxvt.keysym.C-slash: font-size:show
Note that for urxvt versions older than 9.21 the resources have to look like this:
URxvt.keysym.C-Up: perl:font-size:increaseURxvt.keysym.C-Down: perl:font-size:decreaseURxvt.keysym.C-S-Up: perl:font-size:incglobalURxvt.keysym.C-S-Down: perl:font-size:decglobalURxvt.keysym.C-equal: perl:font-size:resetURxvt.keysym.C-slash: perl:font-size:show
Supported functions:
- •
-
increase/decrease:
increase or decrease the font size of the current terminal.
- •
-
incglobal/decglobal:
same as above and also adjust the X server values so all newlystarted terminals will use the same fontsize.
- •
-
incsave/decsave:
same as incglobal/decglobal and also modify the ~/.Xresourcesfile so the changed font sizes will persist over a restart ofthe X server or a reboot.
- •
-
reset:
reset the font size to the value of the resource when startingthe terminal.
- •
-
show
show the current value of the 'font' resource in a popup.
You can also change the step size that the script will use to increase the font size:
URxvt.font-size.step: 4
The default step size is 1. This means that with this setting a size change sequence would be for example 8->12->16->20 instead of 8->9->10->11->12 etc. Please note that many X11 fonts are only available in specific sizes, though, and odd sizes are often not available, resulting in an effective step size of 2 instead of 1 in that case.