rharish101 / ReGreet

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

Background image not showing #68

Open hidraulicChicken opened 2 months ago

hidraulicChicken commented 2 months ago

Hey folks, I'm on NixOS 23.11 with sway and tried everything to get the background showing, but never ever shows up. Here are my configs: /etc/greetd/regreet.toml

[GTK]
application_prefer_dark_theme = true
cursor_theme_name = "Adwaita"
font_name = "JetBrainsMonoNerdFontMono-Regular"
icon_theme_name = "Adwaita"
theme_name = "Adwaita"

[background]
path = "/tmp/fallout_loading.jpg"

[commands]
poweroff = ["systemctl", "poweroff"]
reboot = ["systemctl", "reboot"] 
swayConfig = pkgs.writeText "greetd-sway-config" ''
    # `-l` activates layer-shell mode. Notice that `swaymsg exit` will run after gtkgreet.
    exec "${pkgs.greetd.regreet}/bin/regreet -l debug  &> /tmp/regreet.log; swaymsg exit"
    bindsym Mod4+shift+e exec swaynag \
    -t warning \
    -m 'What do you want to do?' \
    -b 'Poweroff' 'systemctl poweroff' \
    -b 'Reboot' 'systemctl reboot'
    include /home/gergoe/.config/sway/config
  '';

greetd command: dbus-run-session ${pkgs.sway}/bin/sway --config ${swayConfig}

regreet.log

background: -rwxrwxrwx 1 myuser users 275K 2024-04-30 14:02 /tmp/fallout_loading.jpg

Sadly the I couldn't decipher the error message: Gtk-WARNING **: 14:27:41.009: Theme parser warning: :6:17-18: Empty declaration

Please let me know what else I could check/set.

rtgiskard commented 3 weeks ago

the error message seems to be caused by the inline_css in the code, can be ignored at the time.

hidraulicChicken commented 6 hours ago

Ok, thanks for the input, but the problem still remains, no background. Additionally the keyboard layout is different from the one set in sway.