From 4cd89bc2e35d216eeb4ee562ce84b3fbca6c1e02 Mon Sep 17 00:00:00 2001
From: alexis <alexis@t60.home>
Date: Tue, 16 May 2023 23:25:05 +0200
Subject: [PATCH] added pipewire and pulsaudio script (pipewire need testing,
 and need to add arch)

---
 pipewire.sh   | 11 +++++++++++
 pulseaudio.sh |  8 ++++++++
 setup.sh      |  9 +++++++--
 3 files changed, 26 insertions(+), 2 deletions(-)
 create mode 100755 pipewire.sh
 create mode 100755 pulseaudio.sh

diff --git a/pipewire.sh b/pipewire.sh
new file mode 100755
index 0000000..c5bd266
--- /dev/null
+++ b/pipewire.sh
@@ -0,0 +1,11 @@
+#!/bin/bash
+
+sudo apt install pipewire pipewire-audio-client-librairies pipewire-media-session
+
+sudo systemctl enable --now pipewire pipewire-pulse
+
+echo "default-server = /run/user/$(id -u)/pipewire-O" > ~/.config/pulse/client.conf
+
+sudo systemctl restart pulseaudio
+
+sudo apt autoremove
diff --git a/pulseaudio.sh b/pulseaudio.sh
new file mode 100755
index 0000000..e75efbe
--- /dev/null
+++ b/pulseaudio.sh
@@ -0,0 +1,8 @@
+#Install pulseaudio
+sudo apt install pulseaudio
+
+#Check for new service files
+systemctl --user daemon-reload
+
+#Enable and stop the PulseAudio service with:
+systemctl --user --now enable pulseaudio.service pulseaudio.socket
diff --git a/setup.sh b/setup.sh
index b58b2f4..67173e1 100755
--- a/setup.sh
+++ b/setup.sh
@@ -38,8 +38,13 @@ if [ "$distro" == "Debian" ]; then
     read yn
     if [ "$yn" == 'y' ]; then
         # programs
-        sudo apt install network-manager chromium newsboat thunderbird libreoffice pandoc texlive-full neofetch htop
-        sudo apt purge gnome-games
+        sudo apt install network-manager newsboat neofetch htop mpv python3-pip && sudo python3 -m pip install -U yt-dlp
+        echo 'Even bloated ones ? y or n'
+	read yn
+	if [ "$yn"== 'y' ]; then
+		sudo apt install  chromium thunderbird libreoffice pandoc texlive-full
+	fi
+	sudo apt purge gnome-games
         sudo systemctl enable --now NetworkManager && echo 'Enabled Network Manager'
 
 	echo 'Install VS Code? (y or n)'
-- 
GitLab