Fix documentation wrt greeter
This commit is contained in:
parent
0efe90039a
commit
97029fb18c
1 changed files with 13 additions and 2 deletions
15
README.md
15
README.md
|
|
@ -7,7 +7,7 @@ Managed with [chezmoi](https://www.chezmoi.io)
|
||||||
I use greetd with gtkgreet as the greeter/login manager. Because this is
|
I use greetd with gtkgreet as the greeter/login manager. Because this is
|
||||||
installed and configured as a system level service, its configuration cannot
|
installed and configured as a system level service, its configuration cannot
|
||||||
be managed by chezmoi. Thankfully, when using cage, it's as straightforward
|
be managed by chezmoi. Thankfully, when using cage, it's as straightforward
|
||||||
as using the following configuration file:
|
as using the following configuration file (at `/etc/greetd/config.toml`):
|
||||||
|
|
||||||
```toml
|
```toml
|
||||||
[terminal]
|
[terminal]
|
||||||
|
|
@ -20,7 +20,7 @@ vt = 1
|
||||||
|
|
||||||
# `agreety` is the bundled agetty/login-lookalike. You can replace `/bin/sh`
|
# `agreety` is the bundled agetty/login-lookalike. You can replace `/bin/sh`
|
||||||
# with whatever you want started, such as `sway`.
|
# with whatever you want started, such as `sway`.
|
||||||
command = "GTK_THEME='Adwaita:dark' cage -s -- gtkgreet --background /usr/share/backgrounds/archlinux/wild.png --layer-shell"
|
command = "/etc/greetd/greeter"
|
||||||
|
|
||||||
# The user to run the command as. The privileges this user must have depends
|
# The user to run the command as. The privileges this user must have depends
|
||||||
# on the greeter. A graphical greeter may for example require the user to be
|
# on the greeter. A graphical greeter may for example require the user to be
|
||||||
|
|
@ -28,6 +28,17 @@ command = "GTK_THEME='Adwaita:dark' cage -s -- gtkgreet --background /usr/share/
|
||||||
user = "greeter"
|
user = "greeter"
|
||||||
```
|
```
|
||||||
|
|
||||||
|
And putting the greeter script at `/etc/greetd/greeter`:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
GTK_THEME="Adwaita:dark" exec cage -s -- \
|
||||||
|
gtkgreet \
|
||||||
|
--background /usr/share/backgrounds/archlinux/wild.png \
|
||||||
|
--layer-shell
|
||||||
|
```
|
||||||
|
|
||||||
This only requires installing greetd, gtkgreet, cage and the archlinux
|
This only requires installing greetd, gtkgreet, cage and the archlinux
|
||||||
backgrounds packages. Unlike the setup with sway, this doesn't require
|
backgrounds packages. Unlike the setup with sway, this doesn't require
|
||||||
a loose formation of configuration files.
|
a loose formation of configuration files.
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue