urxvt-man2pdf Code
Brought to you by:
su8
File | Date | Author | Commit |
---|---|---|---|
LICENSE | 2017-06-12 |
![]() |
[61f361] . |
README.md | 2017-06-12 |
![]() |
[61f361] . |
img.png | 2017-06-12 |
![]() |
[61f361] . |
man | 2018-05-06 |
![]() |
[345f8d] . |
Convert man page while reading it to pdf in urxvt.
No need to quit reading or open another terminal instance/tab.
Bind the desired keyboard shortcut and this extension will do all the heavy lifting for you.
Simply place the script in /usr/lib/urxvt/perl/ for
system-wide availability or in ~/.urxvt/ext/ for user-only availability.
You can also put it in a folder of your choice, but then you have to add this
line to your .Xdefaults/.Xresources:
URxvt.perl-lib: /home/user/your/folder/
# extension to activate
URxvt.perl-ext-common : man
# keyboard shortcut to trigger the extension
URxvt.keysym.Control-Shift-X : perl:man:topdf
You can convert man pages with your mouse, by default this functionallity is disabled so not to confuse any other extensions, such as url-select.
To enable this functionallity add the following to your .Xdefaults/.Xresources:
URxvt.perl-ext-common : selection-to-clipboard,man
# 3 is the "right" mouse click button
URxvt.man2pdf.button: 3
# Mark the man page name with
# your left mouse button and right click
# to start the conversion process