greetd(5)
π greetd β the configuration file, bestie
okay so this is the greetd(5) man page β the File Formats Manual one β and it's literally just about the config file. Let's get into it π«Ά
β¨ NAME β¨
greetd β the configuration file. that's it. that's the name section π
πΈ DESCRIPTION πΈ
greetd keeps it simple, bestie β it uses a plain TOML configuration file to define how it behaves. no chaos, no drama, just TOML β¨
π CONFIGURATION π
The config is split up into sections, and sections are delimited like this:
[section_name]
config_key = value
Configuration keys can be integer literals, or quote-delimited strings. That's the whole rule. The sections themselves are described below π
π¦ terminal
This section is all about terminal configuration, iykyk.
vt = num|"next"|"current"β the VT to run on π₯οΈ. It can be the number of a specific VT,"next"to grab the next available VT, or"current"to just stay wherevergreetdwas started. Heads up though: the specific VT is evaluated at startup, and does not change during the execution ofgreetd.
If you're using the current VT or a specific VT, you must make sure there are no other users of that VT. no cap, that's on you π. If you're using systemd withautovtandgetty, you can handle conflict avoidance in the service unit with"Conflicts=getty@ttyN.service", where N is the VT number.
Using a specific VT with appropriate conflict avoidance is recommended π
switch = true|falseβ whether or not to switch to the VT. If you set it tofalseandvtisn't the currently active VT,greetdwill wait forvtto become active before doing literally anything β including starting the greeter π΄. If it's set totrue,greetdwill switch the current VT tovt. Default istrue.- ## π general
This section is for general configuration that doesn't fit in the other sections and honestly didn't deserve its own section. humble of it.
source_profile = true|falseβ whether or not to source~/.profileand/etc/profileif they're present when running commands. Defaults totrue.runfile = path-to-runfileβ the location ofgreetd's runfile, which gets created during the first run to prevent the initial session from being run again on session termination or ongreetdrestart π₯.
This file should be in a location that gets cleared during a reboot. fr fr, put it somewhere that resets.
π default_session
This section describes the default session β also known as the greeter π
command = command-lineβ the command-line thatgreetdwill run to start the default session, e.g."agreety -c sway". The default session starts automatically when no other session is running β like when a user session terminates, or whengreetdis initially started with no initial session configured. The command-line is run bysh(1), so it accepts standard POSIX shell syntax β Seegreetd-ipc(7)for info on how a greeter can create sessions.user = userβ the user to use for running the greeter. Defaults to"greeter".
β initial_session
This optional section describes the initial session, commonly called "auto-login" πͺβ¨
The initial session will only be executed during the first run of greetd since boot β this is to make sure signing out works properly, and to prevent security issues whenever greetd or the greeter exit. It checks this through the presence of the runfile π
command = command-lineβ the command-line thatgreetdwill run to start the initial session, e.g."sway". The initial session gets started exactly once, whengreetdis initially launched. The command-line is run bysh(1), so it accepts standard POSIX shell syntax βuser = userβ the user to use for running the initial session.
π₯ EXAMPLES π₯
π Regular setup with agreety and sway
[terminal]
vt = 1
[default_session]
command = "agreety -c sway"
π§ Auto-login
[terminal]
vt = 1
[default_session]
command = "agreety -c sway"
[initial_session]
command = "sway"
user = "john"
π AUTHORS π
Maintained by Kenny Levinsen <contact@kl.wtf> π. For more info about greetd development, see https://git.sr.ht/~kennylevinsen/greetd β go show some love, bestie πΈ
π SEE ALSO π
greetd(1) greetd-ipc(7) β go read those next, periodt π
and that's the whole page, babe ππ β this was the greetd(5) File Formats Manual page, dated 2025-02-06, and it was literally iconic. mwah π β¨
π¦ where this page comes from
- opensuse-leap 16.0: greetd 0.10.3-bp160.1.13 Β· GPL-3.0-only
- opensuse-leap 16.0: greetd 0.10.3-bp160.1.13 Β· GPL-3.0-only
- opensuse-leap 16.0: greetd 0.10.3-bp160.1.13 Β· GPL-3.0-only
- opensuse-leap 16.0: greetd 0.10.3-bp160.1.13 Β· GPL-3.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms