diff --git a/install/system/sound/menu b/install/system/sound/menu new file mode 100644 index 0000000..236ed81 --- /dev/null +++ b/install/system/sound/menu @@ -0,0 +1,20 @@ +#!/bin/bash +. ./lib + +options=() +options+=("wireplumper" "(modern)") +options+=("pulseaudio" "(legacy)") +options+=("pipewire-media-session" "") + +defaultitem="" +sel=$(whiptail --backtitle "$apptitle" --title "System Sound Menu :" --menu "" --default-item "$defaultitem" --cancel-button "Back" 0 0 0 \ + "${options[@]}" \ + 3>&1 1>&2 2>&3) +if [ ! "$?" = "0" ]; then + exit 1 +fi +sed -i "/^defaultitem=/c\defaultitem=\"$sel\"" $0 + +script install/system/sound/$sel + +exit 0 diff --git a/install/system/sound/pipewire-media-session b/install/system/sound/pipewire-media-session new file mode 100644 index 0000000..ad0efa0 --- /dev/null +++ b/install/system/sound/pipewire-media-session @@ -0,0 +1,30 @@ +#!/bin/bash +. ./lib + +options=() +options+=("pipewire-media-session" "" on) +options+=("pipewire-alsa" "" on) +options+=("pipewire-pulse" "" on) +options+=("pipewire-v4l2" "" on) +options+=("pipewire-zeroconf" "" on) +options+=("gst-plugin-pipewire" "" on) +options+=("easyeffects" "" off) +options+=("pipewire-jack" "" off) +options+=("pipewire-x11-bell" "" off) + +sel=$(whiptail --backtitle "$apptitle" --title "System PPMediaSession Install" --checklist "" --cancel-button "Back" 0 0 0 \ + "${options[@]}" \ + 3>&1 1>&2 2>&3) +if [ ! "$?" = "0" ]; then + exit 1 +fi + +for itm in $sel; do + case $itm in + *) pkg="$pkg $(echo $itm | sed 's/"//g')";; + esac +done + +instpkg "$pkg" "$aurpkg" + +exit 0 diff --git a/install/system/sound/sound b/install/system/sound/pulseaudio similarity index 100% rename from install/system/sound/sound rename to install/system/sound/pulseaudio diff --git a/install/system/sound/wireplumper b/install/system/sound/wireplumper new file mode 100644 index 0000000..bb4f46d --- /dev/null +++ b/install/system/sound/wireplumper @@ -0,0 +1,30 @@ +#!/bin/bash +. ./lib + +options=() +options+=("wireplumber" "" on) +options+=("pipewire-alsa" "" on) +options+=("pipewire-pulse" "" on) +options+=("pipewire-v4l2" "" on) +options+=("pipewire-zeroconf" "" on) +options+=("gst-plugin-pipewire" "" on) +options+=("easyeffects" "" off) +options+=("pipewire-jack" "" off) +options+=("pipewire-x11-bell" "" off) + +sel=$(whiptail --backtitle "$apptitle" --title "System Wireplumper Install" --checklist "" --cancel-button "Back" 0 0 0 \ + "${options[@]}" \ + 3>&1 1>&2 2>&3) +if [ ! "$?" = "0" ]; then + exit 1 +fi + +for itm in $sel; do + case $itm in + *) pkg="$pkg $(echo $itm | sed 's/"//g')";; + esac +done + +instpkg "$pkg" "$aurpkg" + +exit 0