GSETTINGS(1)

โœจ gsettings โœจ

okay bestie, welcome to the gsettings(1) page โ€” yes it's the gsettings manual, she's iconic, she's giving configuration tool energy ๐Ÿ‘‘


๐Ÿ’– NAME ๐Ÿ’–

gsettings โ€” the GSettings configuration tool. that's her. that's the whole name. short, sweet, slays ๐Ÿ’…


๐ŸŽ€ SYNOPSIS ๐ŸŽ€

like, here's every single way you can call her, no cap:

gsettings get SCHEMA[:PATH] KEY
gsettings monitor SCHEMA[:PATH] KEY
gsettings writable SCHEMA[:PATH] KEY
gsettings range SCHEMA[:PATH] KEY
gsettings describe SCHEMA[:PATH] KEY
gsettings set SCHEMA[:PATH] KEY VALUE
gsettings reset SCHEMA[:PATH] KEY
gsettings reset-recursively SCHEMA[:PATH]
gsettings list-schemas [--print-paths]
gsettings list-relocatable-schemas
gsettings list-keys SCHEMA[:PATH]
gsettings list-children SCHEMA[:PATH]
gsettings list-recursively [SCHEMA[:PATH]]
gsettings help [COMMAND]

๐Ÿฆ‹ DESCRIPTION ๐Ÿฆ‹

so basically, gsettings is your little command-line bestie for GSettings. she lets you get, set, or monitor one single key for changes. that's the vibe ๐ŸŒธ

the SCHEMA and KEY arguments? yeah, most commands literally require them, because they gotta know the schema ID and the name of the key you're messing with. the schema ID can optionally have a :PATH suffix โ€” and you only need to specify that path if the schema doesn't have a fixed path. if it has a fixed path she already knows where she's going, she's not lost, she's arriving โœจ

when you're setting a key, you also have to specify a VALUE. and the format for that value is the format of a serialized GVariant โ€” so like, a string has to include explicit quotes: 'foo'. yes bestie, the quotes are mandatory, don't fight it. this same format is also what gets used when printing out values. consistency, queen ๐Ÿ’…

โš ๏ธ important tea: gsettings needs a D-Bus session bus connection to write changes to the dconf database. no session bus, no writing. periodt.

๐ŸŒˆ COMMANDS ๐ŸŒˆ

๐Ÿ“ get

Gets the value of KEY. the value gets printed out as a serialized GVariant. she's just reading, not judging ๐Ÿซถ

๐Ÿ‘‘ monitor

Monitors KEY for changes and prints the changed values. and if no KEY is specified? she monitors all keys in the schema. monitoring continues until the process is terminated โ€” she's not leaving, you're leaving ๐Ÿ˜ญ

๐Ÿงš writable

Finds out whether KEY is writable. yes or no. vibe check on your permissions ๐Ÿ”ฅ

๐Ÿ’œ range

Queries the range of valid values for KEY. she'll tell you what's allowed. stay in your lane, but like, lovingly โœจ

๐ŸŒธ describe

Queries the description of valid values for KEY. the lore behind the values, iykyk ๐Ÿ“–

๐Ÿ’– set

Sets the value of KEY to VALUE. the value is specified as a serialized GVariant. remember your quotes bestie, 'foo' not foo ๐Ÿ™ˆ

๐ŸŽ€ reset

Resets KEY to its default value. back to factory settings, we love a fresh start ๐ŸŒฑ

โญ reset-recursively

Reset all keys under the given SCHEMA. all of them. every single one. it's giving spring cleaning ๐Ÿงน

๐Ÿฆ‹ list-schemas

Lists the installed, non-relocatable schemas. and if you're interested in relocatable schemas, go see list-relocatable-schemas. also โ€” if --print-paths is given, the path where each schema is mapped is also printed. so many paths, so much main character energy ๐Ÿ›ฃ๏ธ

๐Ÿ’€ list-relocatable-schemas

Lists the installed, relocatable schemas. and if you're interested in non-relocatable schemas, go see list-schemas. they're sisters, they complete each other ๐Ÿซถ

๐ŸŒบ list-keys

Lists the keys in SCHEMA. all the keys. the whole keyring ๐Ÿ”‘

๐Ÿš list-children

Lists the children of SCHEMA. yes she has children. she's a mother ๐Ÿ’…

๐ŸŽ‰ list-recursively

Lists keys and values, recursively. and if no SCHEMA is given, she lists keys in all schemas. go big or go home, no cap ๐Ÿ”ฅ

๐Ÿฉท help

Prints help and exits. she's helpful AND she knows when to leave. the healthiest communication โœจ


๐Ÿ’Œ a little note from me to you: every single flag, every path, every format rule up there is real and matters, so don't skip the :PATH and don't skip the quotes. slay responsibly ๐Ÿ‘‘

and that's the page, bestie! this was the gsettings manual โ€” gsettings() in section 1 of the manual, brought to you by the fine folks behind GSettings. thanks for reading, you ate that ๐Ÿ’…โœจ๐Ÿ’–

๐Ÿ“ฆ where this page comes from