Fix documentation wrt greeter

This commit is contained in:
Maximilian Friedersdorff 2025-05-22 10:20:35 +01:00
parent 0efe90039a
commit 97029fb18c

View file

@ -7,7 +7,7 @@ Managed with [chezmoi](https://www.chezmoi.io)
I use greetd with gtkgreet as the greeter/login manager. Because this is
installed and configured as a system level service, its configuration cannot
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
[terminal]
@ -20,7 +20,7 @@ vt = 1
# `agreety` is the bundled agetty/login-lookalike. You can replace `/bin/sh`
# 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
# 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"
```
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
backgrounds packages. Unlike the setup with sway, this doesn't require
a loose formation of configuration files.