man: Clarify initial/default sessions
This commit is contained in:
@@ -2,7 +2,7 @@ greetd(1)
|
|||||||
|
|
||||||
# NAME
|
# NAME
|
||||||
|
|
||||||
greetd - A greeter daemon / login manager daemon
|
greetd - A login manager daemon
|
||||||
|
|
||||||
# SYNOPSIS
|
# SYNOPSIS
|
||||||
|
|
||||||
@@ -29,9 +29,14 @@ greeter process like agreety(1) to handle that aspect.
|
|||||||
|
|
||||||
greetd operates on *sessions*. A greeter creates a session, attempts to
|
greetd operates on *sessions*. A greeter creates a session, attempts to
|
||||||
authenticate a user in it, and finally, uses it start an arbitrary
|
authenticate a user in it, and finally, uses it start an arbitrary
|
||||||
application. When greetd is launched, as no session is pending start yet,
|
application.
|
||||||
greetd starts the configured *greeter*, which is simply a pre-configured
|
|
||||||
auto-login session.
|
There are two types of preconfigured sessions: The default session, also known
|
||||||
|
as the *greeter*, and the optional initial session, serving the purpose of
|
||||||
|
"auto-login". The initial session, if configured, is started once when greetd
|
||||||
|
launches. The default session is started on launch if an initial session is
|
||||||
|
not configured, and started again whenever no session is running, such as when
|
||||||
|
the user logs out.
|
||||||
|
|
||||||
An IPC socket is exposed to this greeter, as reported by *GREETD_SOCK*. The
|
An IPC socket is exposed to this greeter, as reported by *GREETD_SOCK*. The
|
||||||
greeter can use this to create, authenticate and finally start a session. For
|
greeter can use this to create, authenticate and finally start a session. For
|
||||||
@@ -42,7 +47,7 @@ greetd will start the new session. Once this session terminates, the process
|
|||||||
starts over.
|
starts over.
|
||||||
|
|
||||||
greetd makes no assumptions about any sessions, including the greeter. They
|
greetd makes no assumptions about any sessions, including the greeter. They
|
||||||
can be text-based, running in the active console, or full on graphical
|
can be text-based, running in the active console, or full-on graphical
|
||||||
environments.
|
environments.
|
||||||
|
|
||||||
# CONFIGURATION
|
# CONFIGURATION
|
||||||
|
@@ -10,6 +10,16 @@ greetd uses a simple TOML configuration file to define its behavior.
|
|||||||
|
|
||||||
# CONFIGURATION
|
# CONFIGURATION
|
||||||
|
|
||||||
|
The configuration is divided into *sections*. Sections are delimited like so:
|
||||||
|
|
||||||
|
```
|
||||||
|
[section_name]
|
||||||
|
config_key = value
|
||||||
|
```
|
||||||
|
|
||||||
|
Configuration keys can be integer literals, or quote-delimited strings. The
|
||||||
|
configuration sections are described below.
|
||||||
|
|
||||||
## terminal
|
## terminal
|
||||||
|
|
||||||
This section contains terminal configuration.
|
This section contains terminal configuration.
|
||||||
@@ -29,7 +39,7 @@ This section contains terminal configuration.
|
|||||||
|
|
||||||
## default_session
|
## default_session
|
||||||
|
|
||||||
This section describes the default session, also referred to as the "greeter".
|
This section describes the default session, also referred to as the *greeter*.
|
||||||
|
|
||||||
*command* = command-line
|
*command* = command-line
|
||||||
The command-line to run to start the default session, e.g. "agreety -c sway".
|
The command-line to run to start the default session, e.g. "agreety -c sway".
|
||||||
@@ -55,9 +65,11 @@ This optional section describes the initial session, commonly referred to as
|
|||||||
*user* = user
|
*user* = user
|
||||||
The user to use for running the initial session.
|
The user to use for running the initial session.
|
||||||
|
|
||||||
# EXAMPLE
|
# EXAMPLES
|
||||||
|
|
||||||
```toml
|
## Regular setup with agreety and sway
|
||||||
|
|
||||||
|
```
|
||||||
[terminal]
|
[terminal]
|
||||||
vt = 1
|
vt = 1
|
||||||
|
|
||||||
@@ -65,6 +77,20 @@ vt = 1
|
|||||||
command = "agreety -c sway"
|
command = "agreety -c sway"
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Auto-login
|
||||||
|
|
||||||
|
```
|
||||||
|
[terminal]
|
||||||
|
vt = 1
|
||||||
|
|
||||||
|
[default_session]
|
||||||
|
command = "agreety -c sway"
|
||||||
|
|
||||||
|
[initial_session]
|
||||||
|
command = "sway"
|
||||||
|
user = "john"
|
||||||
|
```
|
||||||
|
|
||||||
# AUTHORS
|
# AUTHORS
|
||||||
|
|
||||||
Maintained by Kenny Levinsen <contact@kl.wtf>. For more information about
|
Maintained by Kenny Levinsen <contact@kl.wtf>. For more information about
|
||||||
|
Reference in New Issue
Block a user