A while back I posted an instruction on how to change the font size in urxvt (terminal emulator) on the fly. In that post, I used a perl extension from https://github.com/simmel/urxvt-resize-font. Tonight, I tried to setup this extension on a brand new laptop running Fedora 28. For some reason, it doesn’t work at all. Luckily, I found another perl extension which works quite well.
Here’s how I got it working on this Fedora 28, with Sway tiling windows manager (instead of i3 because I run Wayland with this Fedora 28).
From the previous post I know that the location of perl-lib
is $HOME/.urxvt/ext/
. (Of course, if I can also read the man page of urxvt to find that.)
So, what I need to do is to the copy the font-resize extension to that location.
Then, add it to the list of enabled perl-extensions in $HOME/.Xresources
.
On my Sway config, I have this line:
<br /> exec --no-startup-id xrdb -merge ~/.Xresources<br />
So to activate this new plugin, I can either logout of sway, or reload it’s config with $mod + Shift + c
(the default key combination).