From 97029fb18c874945bade839a182d1b3b4da02fde Mon Sep 17 00:00:00 2001 From: Maximilian Friedersdorff Date: Thu, 22 May 2025 10:20:35 +0100 Subject: [PATCH] Fix documentation wrt greeter --- README.md | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 93a0d9b..9b0fb7d 100644 --- a/README.md +++ b/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 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.