mirror of
https://github.com/arthur-pbty/arthur-os.git
synced 2026-08-01 20:28:16 +02:00
Set SDDM login screen to the same theme as boot unlock
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user