~kennylevinsen/greetd

ref: 0.8.0 greetd/man/greetd-5.scd -rw-r--r-- 3.4 KiB
d2477a8fKenny Levinsen Bump version to 0.8.0 8 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
greetd(5)

# NAME

greetd - configuration file

# DESCRIPTION

greetd uses a simple TOML configuration file to define its behavior.

# 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

This section contains terminal configuration.

*vt* = num|"next"|"current"
	The VT to run on. Can be the number of a specific VT, "next" to select the
	next available VT, or "current" to stay wherever greetd was started. The
	specific VT is evaluated at startup, and does not change during the execution
	of greetd.

	If using the current or a specific VT, you must ensure that there are no
	other users of that VT. If using systemd with autovt and getty, conflict
	avoidance can be handled in the service unit with
	"Conflicts=getty@ttyN.service", where N is the VT number.

	Use of a specific VT with appropriate conflict avoidance is recommended.

*switch* = true|false
	Whether or not to switch to *vt*.

	If set to false and *vt* is not currently active VT, greetd will wait for
	*vt* to become active, before doing anything including starting greeter.

	If set to true, greetd will switch current VT to *vt*,

	Default is true.

## general

This section contains general configuration that does not fit in other sections
nor deserved its own section.

*source_profile* = true|false
	Whether or not to source ~/.profile and /etc/profile if present when running
	commands. Defaults to true.

*runfile* = path-to-runfile
	Location of greetd's runfile that is created during the first run to prevent
	the initial session from being run again on session termination or on greetd
	restart.

	This file should be in a location that is cleared during a reboot.

## default_session

This section describes the default session, also referred to as the *greeter*.

*command* = command-line
	The command-line to run to start the default session, e.g. "agreety -c sway".
	The default session is automatically started when no other session is
	running, such as when user session terminate, and when greetd is initially
	started with no initial session configured.

	See *greetd-ipc*(7) for information 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 referred to as
"auto-login".

The initial session will only be executed during the first run of greetd since
boot in order to ensure signing out works properly and to prevent security
issues whenever greetd or the greeter exit. This is checked through the
presence of the runfile.

*command* = command-line
	The command-line to run to start the initial session, e.g. "sway". The
	initial session will be run when exactly once when greetd is initially
	launched.

*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 information about
greetd development, see https://git.sr.ht/~kennylevinsen/greetd.

# SEE ALSO
*greetd*(1) *greetd-ipc*(7)