A trashy GTK4 image viewer for the spiteful.
README.md

livid (Laurelite Image Viewer, Dearly) #

A trashy GTK4 image viewer for the spiteful.

Caution

The code contained in this repository is predominantly LLM-generated, created for the express use of the Laurel system, with the probability that there may be kerfuffles in both the source files and executable functionality, and is thus considered wholly experimental. This is not intended to replace feh and similar image viewers for daily use.

Usage #

livid [OPTION...] [FILE|DIR]...

Pass image files, directories, or a mix of both. When no arguments are given, livid opens the current directory. Directories are expanded non-recursively unless --recursive is given.

Controls #

Keyboard #

Key Action
q, Escape Quit
n, Space, Right Next image
p, BackSpace, Left Previous image
Home First image
End Last image
Page Up Jump forward 5% of the filelist
Page Down Jump backward 5% of the filelist
Up, +, KP_Add Zoom in
Down, -, KP_Subtract Zoom out
*, KP_Multiply Reset zoom to 100%
/, KP_Divide Fit image to window
! Fill window (cover, may crop)
Ctrl + e Set zoom percentage
f Toggle fullscreen
w Resize window to image size (also exits fullscreen)
r Reload current image
d Toggle filename overlay
e Toggle persistent zoom overlay
a Toggle bilinear vs nearest-neighbour filtering
z Jump to a random image
Ctrl + Arrow keys Pan the image
Alt + Delete Delete the current image from disk (asks for confirmation)

Mouse #

Input Action
Scroll Zoom in or out around the cursor position
Shift + Scroll (or Alt + Scroll) Navigate previous/next image
Left click + drag Pan the image
Middle click + drag up/down Zoom in or out

Options #

Option Description
-F, --fullscreen Start in fullscreen
-g, --geometry=GEOM Window geometry: WxH
-x, --borderless Create a borderless window
-B, --image-bg=STYLE Background for transparency: checks, default, or #RRGGBB
-d, --draw-filename Show the filename overlay
-e, --draw-zoom Keep the zoom overlay visible
--title=FORMAT Window title format string (see below)
-Z, --auto-zoom Always zoom images to fit the window
--zoom=VAL Initial zoom: a positive percent, max, or fill
--zoom-step=N Zoom step in percent (default: 25)
-q, --quiet Do not report non-fatal load errors
-V, --verbose Report useful information
-v, --version Output version information and exit
-r, --recursive Recursively expand directories
-S, --sort=MODE Sort mode: none, name, or mtime
-n, --reverse Reverse the sort order
-z, --randomize Randomize the filelist
--version-sort Natural (version) sort when sorting by name
-|, --start-at=FILE Start at FILE in the filelist. Without file arguments, browses FILE's directory
--auto-reload Reload the current image when its file changes on disk

Title Format Specifiers #

The --title option accepts a format string with the following specifiers:

Specifier Replaced with
%% A literal %
%f Full path to the image
%n Image basename
%w Image width in pixels
%h Image height in pixels
%p Total pixel count
%P Pixel count in human-readable form (e.g. 1.5M)
%s File size in bytes
%S File size in human-readable form
%t Detected image format
%u Current index (1-based)
%l Total number of images
%v livid version
%T livid version tagline
%V Process ID
%g Window size (width,height)
%z Current zoom factor (2 decimals)
%Z Current zoom factor (4 decimals)

The default title format is livid - [%u/%l] %n.