Started work on sound driver configuration. Jack is working, now for the hard part, alsa.
This commit is contained in:
parent
1f32ef303a
commit
270fe50aa2
14
tojam
14
tojam
@ -116,6 +116,20 @@ configure_ninjam() {
|
|||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
case "${setting}" in
|
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")
|
||||||
userName="$(dialog --backtitle "Tojam" \
|
userName="$(dialog --backtitle "Tojam" \
|
||||||
--inputbox "Enter User Name (letters, numbers, dash, and underscore accepted):" -1 -1 "${userName#*anonymous:}" --stdout)"
|
--inputbox "Enter User Name (letters, numbers, dash, and underscore accepted):" -1 -1 "${userName#*anonymous:}" --stdout)"
|
||||||
|
Loading…
Reference in New Issue
Block a user