Skip to content

gnoblin.snapshot ​

Return a copy of the configuration assembled so far. Changing the copy does not change Gnoblin's config. Snapshot keys use the internal hyphenated names, and named shortcuts and autostart entries are lists.

lua
local settings = gnoblin.snapshot()
print(settings.shell["minimize-duration"])

Use this in files loaded after a shell's config to inspect earlier settings. For named entries you want to edit or loop over, use gnoblin.configure.shortcuts or gnoblin.configure.autostart. See file loading for evaluation order.

Type definition ​

lua
local settings = gnoblin.snapshot() -- returns a detached config table