Updates
This commit is contained in:
parent
afa4baf647
commit
4336be911c
@ -65,23 +65,27 @@ if [ "$dmsel" == "Install sddm and theme" ] ;then
|
|||||||
|
|
||||||
disman=0
|
disman=0
|
||||||
# Try to force the installation of sddm
|
# Try to force the installation of sddm
|
||||||
echo ":: Install sddm and Sugar Candy Thema"
|
echo ":: Install sddm"
|
||||||
yay -S --noconfirm sddm --ask 4
|
yay -S --noconfirm sddm --ask 4
|
||||||
|
|
||||||
|
# Enable sddm
|
||||||
if [ -f /etc/systemd/system/display-manager.service ]; then
|
if [ -f /etc/systemd/system/display-manager.service ]; then
|
||||||
sudo rm /etc/systemd/system/display-manager.service
|
sudo rm /etc/systemd/system/display-manager.service
|
||||||
fi
|
fi
|
||||||
sudo systemctl enable sddm.service
|
sudo systemctl enable sddm.service
|
||||||
|
|
||||||
|
# Create sddm.conf.d folder
|
||||||
if [ ! -d /etc/sddm.conf.d/ ]; then
|
if [ ! -d /etc/sddm.conf.d/ ]; then
|
||||||
sudo mkdir /etc/sddm.conf.d
|
sudo mkdir /etc/sddm.conf.d
|
||||||
echo ":: Folder /etc/sddm.conf.d created."
|
echo ":: Folder /etc/sddm.conf.d created."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Copy sddm.conf
|
||||||
sudo cp sddm/sddm.conf /etc/sddm.conf.d/
|
sudo cp sddm/sddm.conf /etc/sddm.conf.d/
|
||||||
echo ":: File /etc/sddm.conf.d/sddm.conf updated."
|
echo ":: File /etc/sddm.conf.d/sddm.conf updated."
|
||||||
|
|
||||||
if [ ! -f /usr/share/sddm/themes/sugar-candy/theme.conf ]; then
|
# Download and install sugar candy theme if not exists
|
||||||
|
if [ ! -d /usr/share/sddm/themes/sugar-candy ]; then
|
||||||
if [ -f ~/Downloads/sddm-sugar-candy-master.zip ] ;then
|
if [ -f ~/Downloads/sddm-sugar-candy-master.zip ] ;then
|
||||||
rm ~/Downloads/sddm-sugar-candy-master.zip
|
rm ~/Downloads/sddm-sugar-candy-master.zip
|
||||||
fi
|
fi
|
||||||
@ -94,16 +98,13 @@ if [ "$dmsel" == "Install sddm and theme" ] ;then
|
|||||||
echo ":: SDDM Sugar Candy Theme installed"
|
echo ":: SDDM Sugar Candy Theme installed"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Install background wallpaper for sddm
|
||||||
if [ -f /usr/share/sddm/themes/sugar-candy/theme.conf ]; then
|
if [ -f /usr/share/sddm/themes/sugar-candy/theme.conf ]; then
|
||||||
|
|
||||||
# Cache file for holding the current wallpaper
|
|
||||||
sudo cp wallpapers/default.jpg /usr/share/sddm/themes/sugar-candy/Backgrounds/current_wallpaper.jpg
|
sudo cp wallpapers/default.jpg /usr/share/sddm/themes/sugar-candy/Backgrounds/current_wallpaper.jpg
|
||||||
echo ":: Default wallpaper copied into /usr/share/sddm/themes/sugar-candy/Backgrounds/"
|
echo ":: Default wallpaper copied into /usr/share/sddm/themes/sugar-candy/Backgrounds/"
|
||||||
|
|
||||||
sudo cp sddm/theme.conf /usr/share/sddm/themes/sugar-candy/
|
sudo cp sddm/theme.conf /usr/share/sddm/themes/sugar-candy/
|
||||||
sudo sed -i 's/CURRENTWALLPAPER/'"current_wallpaper.jpg"'/' /usr/share/sddm/themes/sugar-candy/theme.conf
|
sudo sed -i 's/CURRENTWALLPAPER/'"current_wallpaper.jpg"'/' /usr/share/sddm/themes/sugar-candy/theme.conf
|
||||||
echo ":: File theme.conf updated in /usr/share/sddm/themes/sugar-candy/"
|
echo ":: File theme.conf updated in /usr/share/sddm/themes/sugar-candy/"
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
elif [ "$dmsel" == "Deactivate current display manager" ] ;then
|
elif [ "$dmsel" == "Deactivate current display manager" ] ;then
|
||||||
|
Loading…
Reference in New Issue
Block a user