rharish101 / ReGreet

Clean and customizable greeter for greetd
GNU General Public License v3.0
390 stars 16 forks source link

Not loading theme or background image #24

Closed TheSunCat closed 1 year ago

TheSunCat commented 1 year ago

Hi! I recently updated my system, including ReGreet, and it is no longer recognizing my theme or background image. Here is my config:

cat /etc/greetd/regreet.toml                                                    
# SPDX-FileCopyrightText: 2022 Harish Rajagopal <harish.rajagopals@gmail.com>
#
# SPDX-License-Identifier: GPL-3.0-or-later

# Path to the background image
background = "/usr/share/backgrounds/greeter.jpg"

# How the background image covers the screen if the aspect ratio doesn't match
# Available values: "Fill", "Contain", "Cover", "ScaleDown"
# Refer to: https://docs.gtk.org/gtk4/enum.ContentFit.html
# NOTE: This is ignored if ReGreet isn't compiled with GTK v4.8 support.
background_fit = "Fill"

# The entries defined in this section will be passed to the session as environment variables when it is started
[env]
ENV_VARIABLE = "value"

[GTK]
# Whether to use the dark theme
application_prefer_dark_theme = true

# Cursor theme name
cursor_theme_name = "Catppuccin-Mocha-Dark"

# Font name and size
font_name = "Lexend Deca Regular 12"

# Icon theme name
icon_theme_name = "Adwaita"

# GTK theme name
theme_name = "Catppuccin-Mocha-Standard-Lavender-Dark"

There is a valid .jpg file at the path set as the background, which I will attach: greeter.jpg ReGreet renders a fully white background, with what I assume is the default GTK theme (looks like light theme Adwaita), and the default Adwaita cursor.

Did I make a mistake in my configuration file?

rharish101 commented 1 year ago

There was a breaking change in the configuration format. You'll have you change the background path and fit definition according to this one: https://github.com/rharish101/ReGreet/blob/4b6597004d1c8857c0d6c1dfb0e6a026006a99ba/regreet.sample.toml.

Sorry for this! I wanted to make this change for a while, and I figured that the first fixed release would be a good time for it. Going forward, all changes will follow semver versioning.

TheSunCat commented 1 year ago

Ah, that explains it! It's working now.

The cursor was still the Adwaita one, despite me using the name shown in nwg-look (GTK settings app): image

I fixed this by setting it to Catppuccin-Mocha-Dark-Cursors, which fixed it. Thank you!