From 20cff1353a52326aa6e2bc93696ddd3405a918e6 Mon Sep 17 00:00:00 2001 From: Ark74 Date: Tue, 24 Oct 2023 23:03:05 -0600 Subject: [PATCH 1/2] test reload shell --- simple-nerd-dictation-installer.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/simple-nerd-dictation-installer.sh b/simple-nerd-dictation-installer.sh index c3c8340..ad9786b 100644 --- a/simple-nerd-dictation-installer.sh +++ b/simple-nerd-dictation-installer.sh @@ -173,11 +173,12 @@ print_title "Setup local bin for nerd-dictation" ln -s "$HOME"/.local/nerd-dictation/nerd-dictation "$HOME"/.local/bin if [ $? = 0 ]; then - printwc "${Green}" "Completed script!\n" + printwc "${Green}" "Completed script!\n\n" printwc "${Blue}" "Usage:\n" - printwc "${Purple}" " nerd-dictation begin --vosk-model-dir=./model &\n" - printwc "${Cyan}" " # Start speaking.\n" + printwc "${Purple}" " nerd-dictation begin &\n" + printwc "${Cyan}" " # Start speaking. #\n" printwc "${Purple}" " nerd-dictation end\n" + printwc "${Purple}" "\nReload user shell\n" su - $USER else printwc "${Red}" "Something went wrong please check the previous output.\n" -- 2.34.1 From ae9e504a321636cd99ca58008441208ba7768b7e Mon Sep 17 00:00:00 2001 From: Ark74 Date: Wed, 25 Oct 2023 00:00:36 -0600 Subject: [PATCH 2/2] Fallback to restart user session. --- simple-nerd-dictation-installer.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/simple-nerd-dictation-installer.sh b/simple-nerd-dictation-installer.sh index ad9786b..0f8a06c 100644 --- a/simple-nerd-dictation-installer.sh +++ b/simple-nerd-dictation-installer.sh @@ -176,10 +176,10 @@ if [ $? = 0 ]; then printwc "${Green}" "Completed script!\n\n" printwc "${Blue}" "Usage:\n" printwc "${Purple}" " nerd-dictation begin &\n" - printwc "${Cyan}" " # Start speaking. #\n" + printwc "${Cyan}" " # Start speaking.\n" printwc "${Purple}" " nerd-dictation end\n" - printwc "${Purple}" "\nReload user shell\n" - su - $USER + printwc "${Yellow}" "\nPlease, logout your desktop session and log back in.\n" + printwc "${Yellow}" "For nerd-dictation to work properly.\n" else printwc "${Red}" "Something went wrong please check the previous output.\n" fi -- 2.34.1