Started work on sound driver configuration. Jack is working, now for the hard part, alsa.
This commit is contained in:
		
							
								
								
									
										14
									
								
								tojam
									
									
									
									
									
								
							
							
						
						
									
										14
									
								
								tojam
									
									
									
									
									
								
							| @@ -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)" | ||||
|   | ||||
		Reference in New Issue
	
	Block a user