Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/simmel/urxvt-resize-font
URxvt Perl extension for resizing the font
https://github.com/simmel/urxvt-resize-font
Last synced: 3 months ago
JSON representation
URxvt Perl extension for resizing the font
- Host: GitHub
- URL: https://github.com/simmel/urxvt-resize-font
- Owner: simmel
- Created: 2012-11-06T21:10:31.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2020-07-27T12:12:13.000Z (over 4 years ago)
- Last Synced: 2024-04-10T08:35:21.958Z (7 months ago)
- Language: Perl
- Size: 20.5 KB
- Stars: 218
- Watchers: 10
- Forks: 37
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome - simmel/urxvt-resize-font - URxvt Perl extension for resizing the font (Perl)
README
## Installation
1. Copy `resize-font` to where URxvt looks for Perl extensions, e.g:
`$HOME/.urxvt/ext/`. For the exact path, see the urxvt(1) manual page on
perl-lib.2. In your `~/.Xresources` file, add `resize-font` to the
`urxvt.perl-ext-common` setting so URxvt loads the extension, e.g:urxvt.perl-ext-common: default,tabbed,matcher,resize-font,-tabbed
## Configuration
All configuration of `resize-font` is done in `~/.Xresources`.
_Note that this extension requires you to set your font size
through the `urxvt.font` property._### Fonts
Default font sizes can be specified in pixels, using the `pixelsize` attribute,
e.g.:urxvt.font: xft:Inconsolata:pixelsize=12
Or they can be given in points, using the `size` attribute, e.g.:
urxvt.font: xft:Inconsolata:size=12
Fixed fonts are also supported, for example:
urxvt.font: 7x14
And, finally, XLFD/X logical font description is supported as well, e.g.:
urxvt.font: -*-inconsolata-medium-*-normal-*-14-*-*-*-*-*-iso8859-*
### Keybindings
The default keybindings look like this:
URxvt.keysym.C-minus: resize-font:smaller
URxvt.keysym.C-plus: resize-font:bigger
URxvt.keysym.C-equal: resize-font:reset
URxvt.keysym.C-question: resize-font:showKeybindings can be modified using the above syntax. For more information on how
to specify keys, see the description of the `keysym` resource in the urxvt(1)
manual page.### Resize interval
You can also configure the number of steps to take when changing the font size:
URxvt.resize-font.step: 2
And even fractions like 0.2 are supported.