Started work on sound driver configuration. Jack is working, now for the hard part, alsa.

This commit is contained in:
Storm Dragon 2023-12-15 21:06:28 -05:00
parent 1f32ef303a
commit 270fe50aa2

14
tojam
View File

@ -116,6 +116,20 @@ configure_ninjam() {
exit 0
fi
case "${setting}" in
"sound driver")
soundDriver="$(dialog --yes-label "alsa" \
--no-label "jack" \
--yesno "Select a sound driver" -1 -1 --stdout)"
soundDriver=$?
[[ $? -eq 255 ]] && continue
soundDriver="${soundDriver/0/alsa}"
soundDriver="${soundDriver/1/jack}"
if [[ "${soundDriver}" == "jack" ]]; then
sed -i 's/^soundDriver=.*/soundDriver="jack"/' "${config}/config" &&
dialog --msgbox "Sound driver set to jack." -1 -1
continue
fi
;;
"username")
userName="$(dialog --backtitle "Tojam" \
--inputbox "Enter User Name (letters, numbers, dash, and underscore accepted):" -1 -1 "${userName#*anonymous:}" --stdout)"