Add pipewire
This commit is contained in:
parent
e064149873
commit
9759ff811c
4 changed files with 80 additions and 0 deletions
20
install/system/sound/menu
Normal file
20
install/system/sound/menu
Normal file
|
@ -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
|
30
install/system/sound/pipewire-media-session
Normal file
30
install/system/sound/pipewire-media-session
Normal file
|
@ -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
|
30
install/system/sound/wireplumper
Normal file
30
install/system/sound/wireplumper
Normal file
|
@ -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
|
Loading…
Reference in a new issue