Updates
This commit is contained in:
parent
ca6bb890d1
commit
a9f2357752
|
@ -53,16 +53,15 @@ if gum confirm "Do you want to enable/update to sddm-git?" ;then
|
||||||
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
|
if [ -f /usr/share/sddm/themes/sugar-candy/theme.conf ]; then
|
||||||
if [ -f ~/.cache/current_wallpaper.jpg ]; then
|
|
||||||
sudo cp ~/.cache/current_wallpaper.jpg /usr/share/sddm/themes/sugar-candy/Backgrounds/current_wallpaper.jpg
|
# Cache file for holding the current wallpaper
|
||||||
echo "Current wallpaper copied into /usr/share/sddm/themes/sugar-candy/Backgrounds/"
|
sudo cp wallpapers/default.jpg /usr/share/sddm/themes/sugar-candy/Backgrounds/current_wallpaper.jpg
|
||||||
else
|
echo "Default wallpaper copied into /usr/share/sddm/themes/sugar-candy/Backgrounds/"
|
||||||
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/"
|
|
||||||
fi
|
|
||||||
|
|
||||||
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
|
||||||
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 [ $? -eq 130 ]; then
|
elif [ $? -eq 130 ]; then
|
||||||
exit 130
|
exit 130
|
||||||
|
|
Loading…
Reference in New Issue
Block a user