Preparation for the new SDDM theme simple sddm updated version

This commit is contained in:
JaKooLit 2025-07-22 13:07:18 +09:00
parent b7eb23b768
commit 7a0260da91
3 changed files with 28 additions and 6 deletions

View File

@ -1,5 +1,9 @@
## CHANGELOGS
## 22 July 2025
- Updated sddm theme and script to work with the updated simple_sddm_2 theme
- Manual building process
## 21 June 2025
- Added a warning message that support is now very limited

View File

@ -8,10 +8,13 @@ sddm1=(
)
sddm2=(
qt6-5compat-dev
qml6-module-qt5compat-graphicaleffects
libqt6svg6
qt6-declarative-dev
qt6-svg-dev
qt6-virtualkeyboard-plugin
libqt6multimedia6
qml6-module-qtquick-controls
qml6-module-qtquick-effects
)
# login managers to attempt to disable
@ -48,7 +51,7 @@ done
# Installation of additional sddm stuff
for PKG2 in "${sddm2[@]}"; do
re_install_package "$PKG2" "$LOG"
install_package "$PKG2" "$LOG"
done
# Check if other login managers are installed and disable their service before enabling SDDM
@ -77,5 +80,6 @@ sudo systemctl enable sddm.service 2>&1 | tee -a "$LOG"
wayland_sessions_dir=/usr/share/wayland-sessions
[ ! -d "$wayland_sessions_dir" ] && { printf "$CAT - $wayland_sessions_dir not found, creating...\n"; sudo mkdir -p "$wayland_sessions_dir" 2>&1 | tee -a "$LOG"; }
sudo cp assets/hyprland.desktop "$wayland_sessions_dir/" 2>&1 | tee -a "$LOG"
printf "\n%.0s" {1..2}

View File

@ -52,7 +52,6 @@ if git clone --depth=1 "$source_theme" "$theme_name"; then
# Move cloned theme to the themes directory
sudo mv "$theme_name" "/usr/share/sddm/themes/$theme_name" 2>&1 | tee -a "$LOG"
# setting up SDDM theme
sddm_conf="/etc/sddm.conf"
BACKUP_SUFFIX=".bak"
@ -86,6 +85,21 @@ if git clone --depth=1 "$source_theme" "$theme_name"; then
echo "Added [Theme] section with Current=$theme_name in $sddm_conf" | tee -a "$LOG"
fi
# Add [General] section with InputMethod=qtvirtualkeyboard if it doesn't exist
if ! grep -q '^\[General\]' "$sddm_conf"; then
echo -e "\n[General]\nInputMethod=qtvirtualkeyboard" | sudo tee -a "$sddm_conf" > /dev/null
echo "Added [General] section with InputMethod=qtvirtualkeyboard in $sddm_conf" | tee -a "$LOG"
else
# Update InputMethod line if section exists
if grep -q '^\s*InputMethod=' "$sddm_conf"; then
sudo sed -i '/^\[General\]/,/^\[/{s/^\s*InputMethod=.*/InputMethod=qtvirtualkeyboard/}' "$sddm_conf" 2>&1 | tee -a "$LOG"
echo "Updated InputMethod to qtvirtualkeyboard in $sddm_conf" | tee -a "$LOG"
else
sudo sed -i '/^\[General\]/a InputMethod=qtvirtualkeyboard' "$sddm_conf" 2>&1 | tee -a "$LOG"
echo "Appended InputMethod=qtvirtualkeyboard under [General] in $sddm_conf" | tee -a "$LOG"
fi
fi
# Replace current background from assets
sudo cp -r assets/sddm.png "/usr/share/sddm/themes/$theme_name/Backgrounds/default" 2>&1 | tee -a "$LOG"
sudo sed -i 's|^wallpaper=".*"|wallpaper="Backgrounds/default"|' "/usr/share/sddm/themes/$theme_name/theme.conf" 2>&1 | tee -a "$LOG"