diff --git a/modules/greetd/default.nix b/modules/greetd/default.nix index edfd176..2a594b5 100644 --- a/modules/greetd/default.nix +++ b/modules/greetd/default.nix @@ -5,6 +5,8 @@ }: with lib; let cfg = config.eboskma.greetd; + + style = builtins.replaceStrings [ "{WALLPAPER}" ] [ (builtins.toString ../../home-manager/modules/sway/wallpapers/river-2560.png) ] (builtins.readFile ./greetd.css); in { options.eboskma.greetd = { @@ -29,7 +31,7 @@ in "greetd/sway-config" = { text = '' # `-l` activates layer-shell mode. Notice that `swaymsg exit` will run after gtkgreet. - exec "${pkgs.greetd.gtkgreet}/bin/gtkgreet -l; swaymsg exit" + exec "${pkgs.greetd.gtkgreet}/bin/gtkgreet -l -s /etc/greetd/gtkgreet.css; swaymsg exit" bindsym Mod4+shift+e exec swaynag \ -t warning \ -m 'What do you want to do?' \ @@ -48,6 +50,11 @@ in user = "greeter"; group = "greeter"; }; + "greetd/gtkgreet.css" = { + text = style; + user = "greeter"; + group = "greeter"; + }; "sway/config.d/systemd-env.conf" = { text = '' exec_always --no-startup-id systemctl --user import-environment _JAVA_AWT_WM_NONREPARENTING MOZ_ENABLE_WAYLAND MOZ_DBUS_REMOTE QT_QPA_PLATFORM QT_WAYLAND_DISABLE_WINDOWDECORATION QT_QPA_PLATFORMTHEME SDL_VIDEODRIVER SSH_AUTH_SOCK diff --git a/modules/greetd/greetd.css b/modules/greetd/greetd.css new file mode 100644 index 0000000..691f903 --- /dev/null +++ b/modules/greetd/greetd.css @@ -0,0 +1,11 @@ +window { + background-image: url("file://{WALLPAPER}"); + background-size: cover; + background-position: center; +} + +box#body { + background-color: rgba(50, 50, 50, 0.5); + border-radius: 10px; + padding: 50px; +}