mirror of
https://github.com/JaKooLit/Debian-Hyprland.git
synced 2025-12-21 10:20:12 +01:00
Preparation for the new SDDM theme simple sddm updated version
This commit is contained in:
parent
b7eb23b768
commit
7a0260da91
@ -1,5 +1,9 @@
|
|||||||
## CHANGELOGS
|
## CHANGELOGS
|
||||||
|
|
||||||
|
## 22 July 2025
|
||||||
|
- Updated sddm theme and script to work with the updated simple_sddm_2 theme
|
||||||
|
- Manual building process
|
||||||
|
|
||||||
## 21 June 2025
|
## 21 June 2025
|
||||||
- Added a warning message that support is now very limited
|
- Added a warning message that support is now very limited
|
||||||
|
|
||||||
|
|||||||
@ -8,10 +8,13 @@ sddm1=(
|
|||||||
)
|
)
|
||||||
|
|
||||||
sddm2=(
|
sddm2=(
|
||||||
qt6-5compat-dev
|
libqt6svg6
|
||||||
qml6-module-qt5compat-graphicaleffects
|
|
||||||
qt6-declarative-dev
|
qt6-declarative-dev
|
||||||
qt6-svg-dev
|
qt6-svg-dev
|
||||||
|
qt6-virtualkeyboard-plugin
|
||||||
|
libqt6multimedia6
|
||||||
|
qml6-module-qtquick-controls
|
||||||
|
qml6-module-qtquick-effects
|
||||||
)
|
)
|
||||||
|
|
||||||
# login managers to attempt to disable
|
# login managers to attempt to disable
|
||||||
@ -48,7 +51,7 @@ done
|
|||||||
|
|
||||||
# Installation of additional sddm stuff
|
# Installation of additional sddm stuff
|
||||||
for PKG2 in "${sddm2[@]}"; do
|
for PKG2 in "${sddm2[@]}"; do
|
||||||
re_install_package "$PKG2" "$LOG"
|
install_package "$PKG2" "$LOG"
|
||||||
done
|
done
|
||||||
|
|
||||||
# Check if other login managers are installed and disable their service before enabling SDDM
|
# 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
|
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"; }
|
[ ! -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}
|
printf "\n%.0s" {1..2}
|
||||||
@ -52,7 +52,6 @@ if git clone --depth=1 "$source_theme" "$theme_name"; then
|
|||||||
# Move cloned theme to the themes directory
|
# Move cloned theme to the themes directory
|
||||||
sudo mv "$theme_name" "/usr/share/sddm/themes/$theme_name" 2>&1 | tee -a "$LOG"
|
sudo mv "$theme_name" "/usr/share/sddm/themes/$theme_name" 2>&1 | tee -a "$LOG"
|
||||||
|
|
||||||
|
|
||||||
# setting up SDDM theme
|
# setting up SDDM theme
|
||||||
sddm_conf="/etc/sddm.conf"
|
sddm_conf="/etc/sddm.conf"
|
||||||
BACKUP_SUFFIX=".bak"
|
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"
|
echo "Added [Theme] section with Current=$theme_name in $sddm_conf" | tee -a "$LOG"
|
||||||
fi
|
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
|
# 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 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"
|
sudo sed -i 's|^wallpaper=".*"|wallpaper="Backgrounds/default"|' "/usr/share/sddm/themes/$theme_name/theme.conf" 2>&1 | tee -a "$LOG"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user