DOKK / manpages / debian 12 / pdf-presenter-console / pdfpcrc.5.en
PDFPCRC(5) File Formats Manual PDFPCRC(5)

pdfpcrc - pdfpc configuration file

pdfpc(1) first reads its system-wide configuration file, followed by the user-specific one if it exists.

The following commands are accepted:

Bind a key to an action, passing a specified argument for actions that require one
Unbind the given key
Clear all the key bindings
Bind a mouse button to an action
Unbind a mouse button
Clear all the mouse bindings

Key names can be obtained with the help of the xev(1) utility. Note that names are case sensitive. Key combinations with modifiers can be specified in the form <mod>+<key>, where <mod> is one of S (for shift), C (for control) and A/M (for Alt/Meta).

A shorthand for specifying key combinations constituting shift and an alphabetic character is to simply give the uppercase version of the alphabetic character. For example, S+r and R are equivalent.

A list of all possible actions can be obtained via the -L command line option of pdfpc(1). Use the -B command line option to list the action bindings defined.

Some permanent changes can be configured via the config file. The syntax is:

The following option_name's are recognized:

Add an additional black slide at the end of the presentation (bool, Default is false).
Period (in units of s) to check for expired cached content (int, Default is 60).
Time (in units of s) to keep (pre)rendered slides in the cache (int, Default is 600). Set to a negative value to keep cached slides permanently.
Maximal time (in units of ms) it takes to render a slide for its cache to be protected from expiration (int, Default is 1000).
Minimal time (in units of ms) it takes to render a slide for it to be cached (int, Default is 10).
Maximal size (in units of kB) of a slide image to store it uncompressed in the cache (int, Default is 256).
Percentage of the height of the presenter screen to be used for the current slide (int, Default is 80).
Percentage of the presenter screen to be used for the current slide (int, Default is 60).
Do not automatically detect type (pen or eraser) of tablet input devices (bool, Default is false).
Ignore pressure sensitivity of tablet input devices (pen or eraser) even when it is supported by the hardware (bool, Default is false).
Disable scrolling events on the presenter window (bool, Default is false).
Disable tooltips for the toolbox (bool, Default is false).
Try loading video subtitle files automatically. For each video media, pdfpc will append ".srt" to the media URI and attempt to load a subtitle file (in the SRT format) from that location (bool, Default is false).
Show the final slide of an overlay group instead of the next slide. If the user reaches the last slide of the overlay group the next slide will be shown again.
Dual-monitor full-screen window placement is a tricky business. Some window managers (e.g., FVWM) ignore the placement if made before the window is shown. This option enables a workaround (bool, Default is false).
Percentage of the height of the presenter screen to be used for the next slide (int, Default is 70).
If the next slide is an overlay group, show the first slide of that group in the next slide view instead of the last slide of that group (bool, Default is false).
Minimum width for the overview miniatures, in pixels (int, Default is 150).
Set the pointer color. Can be a literal color name or a #rrggbb representation (default is red).
Set the pointer opacity in percent (int, default is 50).
Set the initial pointer size, in pixels (int, default is 10).
Delay (in seconds) to launch the pre-rendering process after a slide change (int, default is 4).
Number of slides ahead of the current one to pre-render (int, default is 2). Set to 0 to disable the pre-rendering; set to a negative number to pre-render all at once.
Screen to be used for the presentation (output name, see e.g. "xrandr --listmonitors").
Screen to be used for the presenter (output name).
Run the REST server in the TLS mode (bool, Default is false).
Port of the REST server (int, Default is 8088).
Password to authenticate against the REST server (string, if not set, a randomly generated one is used).
Root path to serve static HTML content. If begins with "/", it is interpreted as the absolute path; otherwise, relative to /usr/share/pdfpc (string, Default is "www").
Set opacity of the area outside of the spotlight, in percent (int, default is 50).
Set the initial spotlight size, in pixels (int, default is 100).
Switch the presentation and the presenter screen (bool, Default is false).
Display the current time instead of the timer
Enable color hints of the timer, continuously indicating whether the presentation is progressing according to the expected pace (bool, Default is true). See the timer operation description in pdfpc(1).
Show the toolbox on startup (bool, Default is false).
Set the toolbox direction. LtoR, RtoL, TtoB, or BtoT for the left-to-right, right-to-left, top-to-bottom, or botton-to-top, respectively (Default is LtoR).
Set the initial toolbox state minimized (bool, Default is false).
Frames-per-second for slide transitions (int, Default is 25). Set to 0 to disable all transitions.
Set the initial windowed mode: none, presenter, presentation, or both (Default is presenter).

To change the drawing pen color using the numerical pad keys:

bind S+KP_1 setPenColor red
bind S+KP_2 setPenColor green
bind S+KP_3 setPenColor blue

To always activate the black-on-end option, one could add the following to the config file

option black-on-end true

/etc/pdfpcrc

System-wide configuration file

$XDG_CONFIG_HOME/pdfpc/pdfpcrc

User configuration file (if $XDG_CONFIG_HOME is not set, $HOME/.config will be used).

pdfpc(1)