···11+# Switching the login greeter to SDDM + Sugar Candy
22+33+Future-me notes. Current setup (2026-06): Pop!_OS 24.04 LTS, login handled by
44+**cosmic-greeter** (greetd). Both `cosmic.desktop` and `sway.desktop` live in
55+`/usr/share/wayland-sessions/`, so any greeter that reads that folder offers
66+both desktops automatically.
77+88+Repo SDDM is **0.20.0 (Qt5, X11 greeter)**. That's fine: Xorg is already
99+installed, and an X11 *greeter* launching a Wayland *session* (COSMIC/Sway) has
1010+no effect on the session you log into. The Wayland greeter needs SDDM >= 0.21,
1111+which is NOT in the 24.04 repos — see "Wayland greeter" at the bottom.
1212+1313+## 1. Install SDDM + Sugar Candy's QML deps
1414+1515+```bash
1616+sudo apt install sddm \
1717+ qml-module-qtgraphicaleffects \
1818+ qml-module-qtquick-controls2 \
1919+ qml-module-qtquick2
2020+```
2121+2222+Do NOT let this auto-switch the display manager yet — if apt/debconf asks which
2323+display manager to use, you can pick sddm, but the explicit switch is in step 5
2424+so it's reversible.
2525+2626+## 2. Get the Sugar Candy theme
2727+2828+The original (Marian Arlt) was removed from its old host; use a current mirror/
2929+fork. Verify the URL is alive before cloning.
3030+3131+```bash
3232+# maintained fork that tracks current SDDM:
3333+sudo git clone https://github.com/Kangie/sddm-sugar-candy.git \
3434+ /usr/share/sddm/themes/sugar-candy
3535+```
3636+3737+(Alternatives if that 404s: search "sddm sugar candy" — there are several
3838+mirrors; any copy with a `Main.qml` + `theme.conf` dropped into
3939+`/usr/share/sddm/themes/sugar-candy/` works.)
4040+4141+## 3. Select the theme
4242+4343+```bash
4444+sudo install -d /etc/sddm.conf.d
4545+printf '[Theme]\nCurrent=sugar-candy\n' | sudo tee /etc/sddm.conf.d/theme.conf
4646+```
4747+4848+## 4. Configure Sugar Candy
4949+5050+Don't edit the theme's `theme.conf` directly (a theme update clobbers it).
5151+Sugar Candy reads `theme.conf.user` as an override:
5252+5353+```bash
5454+sudo cp /usr/share/sddm/themes/sugar-candy/theme.conf \
5555+ /usr/share/sddm/themes/sugar-candy/theme.conf.user
5656+sudo $EDITOR /usr/share/sddm/themes/sugar-candy/theme.conf.user
5757+```
5858+5959+Good starting values (keeps it consistent with the Sway desktop wallpaper):
6060+6161+```ini
6262+[General]
6363+Background="/usr/share/backgrounds/cosmic/orion_nebula_nasa_heic0601a.jpg"
6464+ScreenWidth="1920" # match your panel; only used for the blur preview
6565+ScreenHeight="1080"
6666+DimBackgroundImage="0.2"
6767+ScaleImageCropped="true"
6868+FullBlur="false" # true = blur whole screen; false = partial behind card
6969+PartialBlur="true"
7070+BlurRadius="40"
7171+HaveFormBackground="true"
7272+FormPosition="center" # left | center | right
7373+MainColor="white"
7474+AccentColor="#7c5cbf" # matches the swaylock ring purple
7575+BackgroundColor="#1e1e2e"
7676+Font="DejaVu Sans Mono"
7777+HourFormat="HH:mm"
7878+DateFormat="dddd, d MMMM"
7979+```
8080+8181+## 5. Switch from cosmic-greeter to SDDM (reversible)
8282+8383+Only one `display-manager.service` is active at a time.
8484+8585+```bash
8686+sudo systemctl disable --now cosmic-greeter
8787+sudo systemctl enable sddm # don't --now from inside a graphical session
8888+```
8989+9090+Then reboot (cleanest) or, from a TTY (Ctrl+Alt+F3), `sudo systemctl start sddm`.
9191+9292+At the SDDM screen there's a **session selector** (dropdown, usually
9393+bottom-left) listing COSMIC and Sway. SDDM remembers the last choice per user.
9494+9595+### Rollback
9696+```bash
9797+sudo systemctl disable --now sddm
9898+sudo systemctl enable --now cosmic-greeter
9999+```
100100+(Keep `cosmic-greeter` installed as the fallback.)
101101+102102+## Wayland greeter (SDDM >= 0.21) — and the dist-upgrade question
103103+104104+The 0.20 greeter runs on X11. To get the native **Wayland** greeter you need
105105+SDDM >= 0.21, which Pop!_OS 24.04 does NOT ship. Getting it would mean building
106106+0.21+ from source (Qt6) — i.e. self-maintaining a core login component on an
107107+LTS. Not worth it just so the *login screen* is Wayland; it changes nothing
108108+about your actual sessions.
109109+110110+Do NOT dist-upgrade for this. This is **Pop!_OS**, not Ubuntu — it upgrades via
111111+System76's path (`pop-upgrade` / System76 repos), not by pointing apt at a newer
112112+Ubuntu (that would break COSMIC, drivers, and pins). 24.04 is the current
113113+COSMIC LTS; there's nowhere newer to go right now that hands you SDDM 0.21.
114114+115115+If a future Pop!_OS release ships SDDM >= 0.21 through normal updates, revisit:
116116+```ini
117117+# /etc/sddm.conf.d/wayland.conf (0.21+ only)
118118+[General]
119119+DisplayServer=wayland
120120+[Wayland]
121121+CompositorCommand=weston --shell=fullscreen-shell.so # weston is in the repos
122122+```
123123+and use a Qt6 build of Sugar Candy. Until then, stay on the 0.20 X11 greeter.
124124+125125+If you specifically want a *pure-Wayland* greeter NOW without an OS upgrade, the
126126+proportionate move is to stay on greetd (already installed) and use ReGreet
127127+(GTK, wallpaper) or tuigreet — not to chase SDDM 0.21.