From 65f85717fd9fd003552d59feb0beac74b6aa24ff Mon Sep 17 00:00:00 2001
From: RP1 <bla@example.com>
Date: Thu, 23 Jan 2025 11:28:10 +0100
Subject: [PATCH] bg and discord swap screenshare now works with audio

---
 3progs.sh     | 30 +++++++++++++-----------------
 raveos-kde.sh |  7 +++----
 2 files changed, 16 insertions(+), 21 deletions(-)

diff --git a/3progs.sh b/3progs.sh
index 8174592..5d1250c 100755
--- a/3progs.sh
+++ b/3progs.sh
@@ -282,7 +282,7 @@ if [[ $user_choice = *"KVM QEMU - virtualizáció, virtuális gépek futtatása"
   echo ---------------------------------------------
   echo Installing ${bold}${yellow}KVM QEMU${normal}
 
-  sudo pacman -S qemu-full qemu-img libvirt virt-install virt-manager virt-viewer edk2-ovmf dnsmasq swtpm guestfs-tools libosinfo tuned dmidecode --noconfirm
+  sudo pacman -S qemu-full qemu-img libvirt virt-install virt-manager virt-viewer edk2-ovmf dnsmasq swtpm guestfs-tools libosinfo dmidecode --noconfirm
   sudo usermod -aG kvm $USER
   sudo usermod -aG input $USER
   sudo usermod -aG libvirt $USER
@@ -588,33 +588,29 @@ if [[ $user_choice = *"Discord - VoIP-, és csevegőalkalmazás"* ]]; then
   echo ---------------------------------------------
   echo Installing ${bold}${yellow}Discord${normal}
   
-  flatpak install flathub com.discordapp.Discord --user  -y
+  sudo pacman -S discord --noconfirm
   sudo pacman -S noto-fonts-emoji --noconfirm
+  # font csomagok meg hianyoznak, ki kell deriteni mi kell a DC-nek
 
   # Vencord script credit to Lordify
-
-  # Add USER repo to flathub, because Linux Mint doesn't have it
-  #flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
   # Download the latest release of Vencord Installer from Github
   wget https://github.com/Vencord/Installer/releases/latest/download/VencordInstallerCli-linux
   sleep 1
-  # Grant execution permission to vencord installer
-  sudo chmod +x VencordInstallerCli-linux
+  # Copy Vencord Installer to /bin
+  sudo cp -a VencordInstallerCli-linux /bin
   sleep 1
-  # Create Symlink of /home/$USER directory in /usr/share/Vencord, because the Kurva Vencord script doesn't handle variables like $USER
-  sudo ln -s ~/ /usr/share/Vencord
+  # Grant execution permission to vencord installer
+  sudo chmod +x /bin/VencordInstallerCli-linux
   sleep 1
   # Install vencord with openasar
-  ./VencordInstallerCli-linux -install -location /usr/share/Vencord/.local/share/flatpak/app/com.discordapp.Discord
+  sudo VencordInstallerCli-linux -install -location /opt/discord
   sleep 1
-  ./VencordInstallerCli-linux -install-openasar -location /usr/share/Vencord/.local/share/flatpak/app/com.discordapp.Discord/
+  sudo VencordInstallerCli-linux -install-openasar -location /opt/discord
   sleep 1
-  # Remove symlink from /usr/share/Vencord
-  sudo unlink /usr/share/Vencord
-  sleep 1
-  sudo mkdir -p /home/$USER/.var/app/com.discordapp.Discord/config/Vencord
-  sudo chown -R $USER:$GROUP /home/$USER/.var/app/com.discordapp.Discord/config/Vencord/
-  cp -a /home/$USER/.progs/themes/ /home/$USER/.var/app/com.discordapp.Discord/config/Vencord/themes
+  sudo rm /bin/VencordInstallerCli-linux
+  # Copy Vencord Theme by DanyHolder
+  mkdir -p /home/$USER/.config/Vencord
+  cp -a /home/$USER/.progs/themes/ /home/$USER/.config/Vencord/themes
 
   echo ${bold}${yellow}Discord / Vencord ${normal}installed.
   echo ---------------------------------------------
diff --git a/raveos-kde.sh b/raveos-kde.sh
index a9d5996..c39f2dc 100644
--- a/raveos-kde.sh
+++ b/raveos-kde.sh
@@ -172,10 +172,9 @@ Current=raveos-sddm' | sudo tee /etc/sddm.conf.d/theme.conf
     sudo sed -i 's/#hu_HU.UTF-8 UTF-8/hu_HU.UTF-8 UTF-8/' /etc/locale.gen
     sudo locale-gen
     konsave -a raveui-kde
-    # BG swap by Lordify
-    if [[ -f /usr/bin/startplasma-wayland ]]; then
-       plasma-apply-wallpaperimage /usr/share/backgrounds/raveos-bg.png
-    fi
+    sudo cp -a 1920x1080.png /usr/share/wallpapers/Next/content/images_dark/
+    sudo cp -a 2560x1440.png /usr/share/wallpapers/Next/content/images_dark/
+    sudo cp -a 3840x2160.png /usr/share/wallpapers/Next/content/images_dark/
 
     # Adding Custom rave command
   echo ---------------------------------------------