Menu

Tree [345f8d] master /
 History

HTTPS access


File Date Author Commit
 LICENSE 2017-06-12 a a [61f361] .
 README.md 2017-06-12 a a [61f361] .
 img.png 2017-06-12 a a [61f361] .
 man 2018-05-06 su8 su8 [345f8d] .

Read Me

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.

Installation

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

Requirements

  • ghostscript
  • urxvt (rxvt-unicode) compiled with support for perl
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.