Nomadys-PDF

Configuration

Settings live in one plain text file, ~/.config/nomadys-pdf/config. It does not need to exist, since every setting has a default. config.example in the source lists them all with comments, and you can copy it to start.

mkdir -p ~/.config/nomadys-pdf
cp config.example ~/.config/nomadys-pdf/config

Reading#

SettingDefaultMeaning
themelightstart in light or dark mode (i switches while reading)
zoomfit-widthzoom for a file opened the first time, fit-width or a percentage such as 125
restore_positiontruereopen each file at the page where you stopped
remember_viewtrueand with its own zoom, dark mode, two-page layout and rotation
dark_imagessmartin dark mode, smart keeps photos and the pictures you placed, and recolours figures on white; keep leaves every image; invert recolours all
dark_text_weight2.5in dark mode, how firm light letters and lines are drawn; 1 is a plain inversion, higher is bolder
subpixel_textfalsesharper text on LCD monitors (subpixel rendering)
page_shadowtruethe soft shadow around pages
show_tabsfalsekeep the tab bar visible (t toggles it)
mode_indicatortruethe small badge showing the mode (NORMAL, CURSOR, …)

Keys#

SettingDefaultMeaning
leader\the key that starts \c, \l, \g and more, which can be \, ,, ; or space

Highlights and notes#

SettingDefaultMeaning
highlight_colors#FFEE93, #FF9E9E, #A8E6A3, #FFB3DE, #A7C7F2the five colours of C V B N M (yellow, red, green, pink, blue)
area_stylehighlightfor figures and areas, highlight (transparent colour) or frame (a coloured rectangle around)
cite_format“%t” (p. %p)what Y copies, with %t for the text and %p for the page(s)
copy_dpi300resolution of a region copied as an image (y / Y in the free cursor), 72–1200

Files and saving#

SettingDefaultMeaning
autosavetruesave highlights, comments and form entries automatically; false saves only with Ctrl-s / :w (closing then asks)
autosave_delay_ms1000how long after a change to save
backuptruebefore the first save of a session, keep the file as it was, next to it, as name.pdf.bak (a hard link, so it is instant whatever the size); the next session replaces it
pdf_dirs~where \f, \/ and \n look for PDFs, as a comma separated list such as ~/Papers, ~/Books, ~/Nextcloud

LaTeX#

SettingDefaultMeaning
synctex_editornvim --headless -c "VimtexInverseSearch %l '%f'"the command for inverse search, where %l is the line, %c the column and %f the file

Look#

SettingDefaultMeaning
include(none)a colour theme, as in include = gruvbox (\T writes this line for you)
fontmonospacethe font of the interface (tabs, help, panel, command line, comments, messages), any installed family such as JetBrains Mono, CaskaydiaCove NF or DejaVu Sans; fc-list : family lists them
font_size10.5its size in points

A font name that is not installed is reported, and a default is used.

Colours#

After the settings, [light] and [dark] sections set single colours of the light and dark mode, on top of the theme.

include = nord

[dark]
background = #101010
page_bg = #1C1C1C          # dark mode: the paper of the pages
page_fg = #E4E4E4          # dark mode: their ink

Every colour name, with what it paints, is listed in Themes and dark mode.

An example#

include = gruvbox
theme = dark
zoom = 125
pdf_dirs = ~/Papers, ~/Nextcloud/Library
highlight_colors = #FFE066, #FF8A80, #B9F6CA, #F8BBD0, #90CAF9
area_style = frame
cite_format = "%t" (p. %p)
font = JetBrains Mono
font_size = 11
leader = space

Older names#

Settings from earlier versions are still understood, such as highlight_color (the first colour only), background_light, background_dark, dark_contrast_low / page_low (the dark paper, as a grey level) and dark_contrast_high / page_high (the dark ink).