From 47836c2fb93bca27ab37a693df733c21d90dfec5 Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Tue, 22 Jul 2025 13:07:12 +0900 Subject: [PATCH] Preparation for the new SDDM theme simple sddm updated version --- CHANGELOGS.md | 3 +++ install-scripts/sddm.sh | 5 +++-- install-scripts/sddm_theme.sh | 17 +++++++++++++++-- 3 files changed, 21 insertions(+), 4 deletions(-) diff --git a/CHANGELOGS.md b/CHANGELOGS.md index 9e34675..d227474 100644 --- a/CHANGELOGS.md +++ b/CHANGELOGS.md @@ -1,5 +1,8 @@ ## CHANGELOGS +## 22 July 2025 +- Updated sddm theme and script to work with the updated simple_sddm_2 theme + ## 17 July 2025 - added quickshell script to replace ags for desktop overview diff --git a/install-scripts/sddm.sh b/install-scripts/sddm.sh index 2439b72..0e709cd 100755 --- a/install-scripts/sddm.sh +++ b/install-scripts/sddm.sh @@ -2,10 +2,11 @@ # 💫 https://github.com/JaKooLit 💫 # # SDDM Log-in Manager # -sddm=( - qt6-5compat +sddm=( qt6-declarative qt6-svg + qt6-virtualkeyboard + qt6-multimedia-ffmpeg sddm ) diff --git a/install-scripts/sddm_theme.sh b/install-scripts/sddm_theme.sh index 1669d9e..9f106af 100755 --- a/install-scripts/sddm_theme.sh +++ b/install-scripts/sddm_theme.sh @@ -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" @@ -97,5 +111,4 @@ else echo "${ERROR} - Failed to clone the sddm theme repository. Please check your internet connection." | tee -a "$LOG" >&2 fi - printf "\n%.0s" {1..2} \ No newline at end of file