Set SDDM login screen to the same theme as boot unlock

This commit is contained in:
David Heinemeier Hansson
2026-04-28 18:08:34 +02:00
parent eb3da87992
commit 93141bd578
2 changed files with 20 additions and 3 deletions
+5 -2
View File
@@ -1,7 +1,8 @@
#!/bin/bash
# Restore the Plymouth boot theme to the omarchy default — copies the shipped
# assets into /usr/share without recoloring, then rebuilds the initramfs.
# Restore the Plymouth boot theme and the SDDM login screen to the omarchy
# defaults — copies the shipped assets into /usr/share, rebuilds the initramfs,
# and refreshes the SDDM theme.
theme_dir="/usr/share/plymouth/themes/omarchy"
@@ -13,3 +14,5 @@ if omarchy-cmd-present limine-mkinitcpio; then
else
sudo mkinitcpio -P
fi
omarchy-refresh-sddm
+15 -1
View File
@@ -2,7 +2,8 @@
# Configure the Plymouth boot theme with a custom background color, text color, and logo.
# Stages the change in a temp dir, then commits the staged files to /usr/share and
# rebuilds the initramfs.
# rebuilds the initramfs. Also syncs the SDDM login screen (the post-logout
# screen) with the same colors and logo so boot/login stay visually unified.
if [[ $# -ne 3 ]]; then
echo "Usage: omarchy-plymouth-set <background-hex> <text-hex> <path-to-logo.png>" >&2
@@ -56,3 +57,16 @@ if omarchy-cmd-present limine-mkinitcpio; then
else
sudo mkinitcpio -P
fi
# Sync the SDDM login screen with the same colors and logo.
sddm_dir="/usr/share/sddm/themes/omarchy"
sddm_template="$HOME/.local/share/omarchy/default/sddm/omarchy/Main.qml"
sed \
-e "s/#000000/#$bg_hex/g" \
-e "s/#ffffff/#$text_hex/g" \
-e 's|source: "logo.svg"|source: "logo.png"|' \
"$sddm_template" | sudo tee "$sddm_dir/Main.qml" >/dev/null
sudo cp "$logo_path" "$sddm_dir/logo.png"
sudo rm -f "$sddm_dir/logo.svg"