File greetd-gtkgreet-xfce-wayland.spec of Package greetd-gtkgreet-xfce-wayland

#
# spec file for package openSUSE-repos
#
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name:           greetd-gtkgreet-xfce-wayland
Version:        1.0
Release:        1%{?dist}
Summary:        Greetd config using gtkgreet and XFCE Wayland session
License:        MIT
Group:          System/X11/Displaymanagers
BuildRequires:  greetd
Requires:       cage
Requires:       greetd
Requires:       gtkgreet
BuildArch:      noarch

%description
This package configures greetd to use gtkgreet in the Cage Wayland compositor,
and provides a session environment that launches XFCE in Wayland mode.

%prep

%build

%install
# Create config directory
mkdir -p %{buildroot}%{_sysconfdir}/greetd

# Install /etc/greetd/environments
cat > %{buildroot}%{_sysconfdir}/greetd/environments << 'EOF'
startxfce4 --wayland
EOF

# Install /etc/greetd/config.toml
cat > %{buildroot}%{_sysconfdir}/greetd/config.toml << 'EOF'
[terminal]
vt = 1

[default_session]
command = "cage -s -- %{_bindir}/gtkgreet"
user = "greeter"
EOF

%files
%config %{_sysconfdir}/greetd/environments
%config %{_sysconfdir}/greetd/config.toml

%changelog
openSUSE Build Service is sponsored by