dotfiles
1

Configure Feed

Select the types of activity you want to include in your feed.

Add notes about switching to SDDM

Juan Nunez-Iglesias (Jun 28, 2026, 5:15 PM +0200) 1a554a37 9bbd23a3

+127
+127
notes/sddm-sugar-candy.md
··· 1 + # Switching the login greeter to SDDM + Sugar Candy 2 + 3 + Future-me notes. Current setup (2026-06): Pop!_OS 24.04 LTS, login handled by 4 + **cosmic-greeter** (greetd). Both `cosmic.desktop` and `sway.desktop` live in 5 + `/usr/share/wayland-sessions/`, so any greeter that reads that folder offers 6 + both desktops automatically. 7 + 8 + Repo SDDM is **0.20.0 (Qt5, X11 greeter)**. That's fine: Xorg is already 9 + installed, and an X11 *greeter* launching a Wayland *session* (COSMIC/Sway) has 10 + no effect on the session you log into. The Wayland greeter needs SDDM >= 0.21, 11 + which is NOT in the 24.04 repos — see "Wayland greeter" at the bottom. 12 + 13 + ## 1. Install SDDM + Sugar Candy's QML deps 14 + 15 + ```bash 16 + sudo apt install sddm \ 17 + qml-module-qtgraphicaleffects \ 18 + qml-module-qtquick-controls2 \ 19 + qml-module-qtquick2 20 + ``` 21 + 22 + Do NOT let this auto-switch the display manager yet — if apt/debconf asks which 23 + display manager to use, you can pick sddm, but the explicit switch is in step 5 24 + so it's reversible. 25 + 26 + ## 2. Get the Sugar Candy theme 27 + 28 + The original (Marian Arlt) was removed from its old host; use a current mirror/ 29 + fork. Verify the URL is alive before cloning. 30 + 31 + ```bash 32 + # maintained fork that tracks current SDDM: 33 + sudo git clone https://github.com/Kangie/sddm-sugar-candy.git \ 34 + /usr/share/sddm/themes/sugar-candy 35 + ``` 36 + 37 + (Alternatives if that 404s: search "sddm sugar candy" — there are several 38 + mirrors; any copy with a `Main.qml` + `theme.conf` dropped into 39 + `/usr/share/sddm/themes/sugar-candy/` works.) 40 + 41 + ## 3. Select the theme 42 + 43 + ```bash 44 + sudo install -d /etc/sddm.conf.d 45 + printf '[Theme]\nCurrent=sugar-candy\n' | sudo tee /etc/sddm.conf.d/theme.conf 46 + ``` 47 + 48 + ## 4. Configure Sugar Candy 49 + 50 + Don't edit the theme's `theme.conf` directly (a theme update clobbers it). 51 + Sugar Candy reads `theme.conf.user` as an override: 52 + 53 + ```bash 54 + sudo cp /usr/share/sddm/themes/sugar-candy/theme.conf \ 55 + /usr/share/sddm/themes/sugar-candy/theme.conf.user 56 + sudo $EDITOR /usr/share/sddm/themes/sugar-candy/theme.conf.user 57 + ``` 58 + 59 + Good starting values (keeps it consistent with the Sway desktop wallpaper): 60 + 61 + ```ini 62 + [General] 63 + Background="/usr/share/backgrounds/cosmic/orion_nebula_nasa_heic0601a.jpg" 64 + ScreenWidth="1920" # match your panel; only used for the blur preview 65 + ScreenHeight="1080" 66 + DimBackgroundImage="0.2" 67 + ScaleImageCropped="true" 68 + FullBlur="false" # true = blur whole screen; false = partial behind card 69 + PartialBlur="true" 70 + BlurRadius="40" 71 + HaveFormBackground="true" 72 + FormPosition="center" # left | center | right 73 + MainColor="white" 74 + AccentColor="#7c5cbf" # matches the swaylock ring purple 75 + BackgroundColor="#1e1e2e" 76 + Font="DejaVu Sans Mono" 77 + HourFormat="HH:mm" 78 + DateFormat="dddd, d MMMM" 79 + ``` 80 + 81 + ## 5. Switch from cosmic-greeter to SDDM (reversible) 82 + 83 + Only one `display-manager.service` is active at a time. 84 + 85 + ```bash 86 + sudo systemctl disable --now cosmic-greeter 87 + sudo systemctl enable sddm # don't --now from inside a graphical session 88 + ``` 89 + 90 + Then reboot (cleanest) or, from a TTY (Ctrl+Alt+F3), `sudo systemctl start sddm`. 91 + 92 + At the SDDM screen there's a **session selector** (dropdown, usually 93 + bottom-left) listing COSMIC and Sway. SDDM remembers the last choice per user. 94 + 95 + ### Rollback 96 + ```bash 97 + sudo systemctl disable --now sddm 98 + sudo systemctl enable --now cosmic-greeter 99 + ``` 100 + (Keep `cosmic-greeter` installed as the fallback.) 101 + 102 + ## Wayland greeter (SDDM >= 0.21) — and the dist-upgrade question 103 + 104 + The 0.20 greeter runs on X11. To get the native **Wayland** greeter you need 105 + SDDM >= 0.21, which Pop!_OS 24.04 does NOT ship. Getting it would mean building 106 + 0.21+ from source (Qt6) — i.e. self-maintaining a core login component on an 107 + LTS. Not worth it just so the *login screen* is Wayland; it changes nothing 108 + about your actual sessions. 109 + 110 + Do NOT dist-upgrade for this. This is **Pop!_OS**, not Ubuntu — it upgrades via 111 + System76's path (`pop-upgrade` / System76 repos), not by pointing apt at a newer 112 + Ubuntu (that would break COSMIC, drivers, and pins). 24.04 is the current 113 + COSMIC LTS; there's nowhere newer to go right now that hands you SDDM 0.21. 114 + 115 + If a future Pop!_OS release ships SDDM >= 0.21 through normal updates, revisit: 116 + ```ini 117 + # /etc/sddm.conf.d/wayland.conf (0.21+ only) 118 + [General] 119 + DisplayServer=wayland 120 + [Wayland] 121 + CompositorCommand=weston --shell=fullscreen-shell.so # weston is in the repos 122 + ``` 123 + and use a Qt6 build of Sugar Candy. Until then, stay on the 0.20 X11 greeter. 124 + 125 + If you specifically want a *pure-Wayland* greeter NOW without an OS upgrade, the 126 + proportionate move is to stay on greetd (already installed) and use ReGreet 127 + (GTK, wallpaper) or tuigreet — not to chase SDDM 0.21.