Next: , Previous: , Up: API  


1.6 (heks-linux fastfetch)

Renders ~/.config/fastfetch/config.jsonc, the system summary printed by fastfetch when a shell starts.

The module owns two things: the ordered list of modules to display and the logo. Both are plain data, so fastfetch-conf is a pure renderer that can be called from a REPL and serialized with scm->json-string without touching the disk.

A commented-out image logo sits next to the active small-text logo. It works in terminals that implement the Kitty graphics protocol; enable it by moving the comment and pointing it at a PNG.

1.6.1 Parameters

Parameter: fastfetch-config-dir

Default value:

"/root/.config/fastfetch"
Parameter: fastfetch-config-filename

Default value:

"config.jsonc"

1.6.2 Procedures

Procedure: fastfetch-conf KEY: #:clone-dir

Return the FastFetch configuration as a Scheme association list.

Serializing the result with scm->json-string produces a valid config.jsonc. clone-dir is accepted for symmetry with the other modules and is only used by the commented-out image logo.

(scm->json-string (fastfetch-conf) #:pretty #t)
Procedure: install-fastfetch-config

Write the FastFetch configuration to fastfetch-config-dir.

Local overrides are read from $XDG_CONFIG_HOME/heks-linux/fastfetch-settings.scm before rendering.