Do not hardcode xclip
[llpp.git] / adoc / llpp.adoc
bloba85fb28f972661c0c3db87d9027e1cd9e1bfbe8f
1 llpp(1)
2 =======
4 == NAME
5 llpp - a graphical document pager which aims to superficially resemble
6 less
8 == SYNOPSIS
9 llpp [-c path] [-css path] [-dest named-dest] [-f path] [-gc]
10  [-help|--help] [-last] [-no-title] [-origin origin] [-p password]
11  [-page page-number] [-remote path] [-tcf path] [-layout-height height]
12  [-v] some.pdf
14 == DESCRIPTION
15 *llpp* is a graphical document pager utilizing MuPDF
16 (https://mupdf.com/) library. The default keybindings resemble those
17 of less(1)
19 == OPTIONS
20 -c path::
21 Set path to the configuration file
23 -css path::
24 Set path to the style sheet to use with EPUB/HTML
26 -dest named-dest::
27 Set named destination
29 -f path::
30 Set path to the user interface font
32 -gc::
33 Collect config garbage
35 -help, --help::
36 Display this list of options
38 -last::
39 Open last visited document
41 -no-title::
42 Ignore document title
44 -origin origin::
45 <undocumented>
47 -p password::
48 Set password
50 -page page-number::
51 Jump to page
53 -remote path::
54 Set path to the source of remote commands
56 -tcf path::
57 Set path to the trim cache file
59 -layout-height height::
60 Set page height for reflowable documents (-1 == default, 0 == unlimited)
62 -v::
63 Print version and exit
65 == FILES
67 === ~/.config/llpp.conf
68 This is the user specific configuration file. If $XDG_CONFIG_HOME is
69 set $XDG_CONFIG_HOME/llpp.conf is used instead. It has an XML
70 structure.
72 You can specify a custom path using the -c option.
74 .Configuration structure
75 -------------------------------------------------------------
76 <llppconfig>
77 <ui-font size='20'/>
78 <defaults
79   width='1200'
80   height='1000'
81   ...
82   use-document-css='true'/>
83   <doc path='/some/path/file1.pdf'
84     page='1'
85     ...
86     height='1000'/>
87   <doc path='/some/path/file2.pdf'
88     page='3'
89     ...
90     height='600'/>
91   ...
92 </llppconfig>
93 -------------------------------------------------------------
95 ==== Some configuration tips
96 - To change the user interface font:
97 -------------------------------------------------------------
98 <llppconfig>
99   <ui-font size='16'>
100     <![CDATA[/path/to/fonts/PTF55F.ttf]]>
101   </ui-font>
102   <defaults ... />
103 </llppconfig>
104 -------------------------------------------------------------
105 - To change keybindings, add keymaps to the defaults element, for
106 instance following example disables Escape key in the view mode:
108 -------------------------------------------------------------
109 <llppconfig>
110   <defaults ... >
111     <keymap mode='view'>
112       <map in='esc' out=/>
113     </keymap>
114   </defaults>
115 </llppconfig>
116 -------------------------------------------------------------
118 The different modes are _birdseye_, _global_, _help_, _info_,
119 _listview_, _outline_, and _view_.
121 == SEE ALSO
122 llppac(1), llpphtml(1)
124 == ENVIRONMENT
125 === LLPP_ASKPASS
126 Command to inquire user about the password (dmenu/rofi like)
128 == REPORTING BUGS
129 https://github.com/moosotc/llpp/issues or mailto://moosotc@gmail.com
131 == macOS
132 Nicolás Ojeda Bär contributed macOS port.