From 6250bba6bcf72e259d0277d1984d0aceed33aa8d Mon Sep 17 00:00:00 2001 From: Stephan Raabe Date: Mon, 24 Jun 2024 16:54:42 +0200 Subject: [PATCH] Updates --- .install/displaymanager.sh | 37 ------------------------------------- tpm | 38 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 38 insertions(+), 37 deletions(-) create mode 100644 tpm diff --git a/.install/displaymanager.sh b/.install/displaymanager.sh index 93d54fb..2b0b56f 100755 --- a/.install/displaymanager.sh +++ b/.install/displaymanager.sh @@ -74,43 +74,6 @@ if [ "$dmsel" == "Install sddm and theme" ] ;then fi sudo systemctl enable sddm.service - # Create sddm.conf.d folder - if [ ! -d /etc/sddm.conf.d/ ]; then - sudo mkdir /etc/sddm.conf.d - echo ":: Folder /etc/sddm.conf.d created." - fi - - # Copy sddm.conf - sudo cp sddm/sddm.conf /etc/sddm.conf.d/ - echo ":: File /etc/sddm.conf.d/sddm.conf updated." - - # 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 - rm ~/Downloads/sddm-sugar-candy-master.zip - fi - wget -P ~/Downloads/ https://framagit.org/MarianArlt/sddm-sugar-candy/-/archive/master/sddm-sugar-candy-master.zip - if [ -f ~/Downloads/sddm-sugar-candy-master.zip ] ;then - unzip -o -q ~/Downloads/sddm-sugar-candy-master.zip -d ~/Downloads/ - if [ ! -d /usr/share/sddm/themes/sugar-candy ] ;then - sudo mkdir -p /usr/share/sddm/themes/sugar-candy - fi - sudo cp -r ~/Downloads/sddm-sugar-candy-master/* /usr/share/sddm/themes/sugar-candy - echo ":: SDDM Sugar Candy Theme installed" - else - echo "ERROR: Sugar Candy Download not found" - fi - fi - - # Install background wallpaper for sddm - if [ -f /usr/share/sddm/themes/sugar-candy/theme.conf ]; then - 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/" - 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/" - fi - elif [ "$dmsel" == "Deactivate current display manager" ] ;then sudo rm /etc/systemd/system/display-manager.service diff --git a/tpm b/tpm new file mode 100644 index 0000000..7675d10 --- /dev/null +++ b/tpm @@ -0,0 +1,38 @@ +displaymanager.sh + + # Create sddm.conf.d folder + if [ ! -d /etc/sddm.conf.d/ ]; then + sudo mkdir /etc/sddm.conf.d + echo ":: Folder /etc/sddm.conf.d created." + fi + + # Copy sddm.conf + sudo cp sddm/sddm.conf /etc/sddm.conf.d/ + echo ":: File /etc/sddm.conf.d/sddm.conf updated." + + # 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 + rm ~/Downloads/sddm-sugar-candy-master.zip + fi + wget -P ~/Downloads/ https://framagit.org/MarianArlt/sddm-sugar-candy/-/archive/master/sddm-sugar-candy-master.zip + if [ -f ~/Downloads/sddm-sugar-candy-master.zip ] ;then + unzip -o -q ~/Downloads/sddm-sugar-candy-master.zip -d ~/Downloads/ + if [ ! -d /usr/share/sddm/themes/sugar-candy ] ;then + sudo mkdir -p /usr/share/sddm/themes/sugar-candy + fi + sudo cp -r ~/Downloads/sddm-sugar-candy-master/* /usr/share/sddm/themes/sugar-candy + echo ":: SDDM Sugar Candy Theme installed" + else + echo "ERROR: Sugar Candy Download not found" + fi + fi + + # Install background wallpaper for sddm + if [ -f /usr/share/sddm/themes/sugar-candy/theme.conf ]; then + 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/" + 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/" + fi \ No newline at end of file