gnoblin.snapshot
Return a copy of the configuration assembled so far. Changing the copy does not change Gnoblin's config. Snapshot section and field names use the internal hyphenated form, and named shortcuts and autostart entries are lists. For example, inspect the pointer-location setting:
On this page
Lua
local settings = gnoblin.snapshot()
print(settings.compositor["locate-pointer"])Use this only while a config loads, to inspect earlier settings. At run time
gnoblin.snapshot() raises an error. Read the committed settings from the
gnoblin.settings snapshot instead.
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; load time only