From 93141bd578fe9bf75f23055ff5c8c78941fda23b Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Tue, 28 Apr 2026 18:08:34 +0200 Subject: [PATCH] Set SDDM login screen to the same theme as boot unlock --- bin/omarchy-plymouth-reset | 7 +++++-- bin/omarchy-plymouth-set | 16 +++++++++++++++- 2 files changed, 20 insertions(+), 3 deletions(-) diff --git a/bin/omarchy-plymouth-reset b/bin/omarchy-plymouth-reset index f765d5f1..8ecd0ea7 100755 --- a/bin/omarchy-plymouth-reset +++ b/bin/omarchy-plymouth-reset @@ -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 diff --git a/bin/omarchy-plymouth-set b/bin/omarchy-plymouth-set index a65648d1..94c4ff4a 100755 --- a/bin/omarchy-plymouth-set +++ b/bin/omarchy-plymouth-set @@ -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 " >&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"