From 15e055456a91a98e236930c36824fef45d2e5fcb Mon Sep 17 00:00:00 2001 From: Markus Fleschutz Date: Sun, 21 Nov 2021 11:51:43 +0100 Subject: [PATCH] Renamed to open/close-*-browser.ps1 --- Docs/VoiceControl.md | 14 ++++++++++++-- ...-google-chrome.ps1 => close-chrome-browser.ps1} | 4 ++-- ...e-microsoft-edge.ps1 => close-edge-browser.ps1} | 4 ++-- ...zilla-firefox.ps1 => close-firefox-browser.ps1} | 6 +++--- ...oogle-chrome.ps1 => install-chrome-browser.ps1} | 4 ++-- ...n-google-chrome.ps1 => open-chrome-browser.ps1} | 4 ++-- ...en-microsoft-edge.ps1 => open-edge-browser.ps1} | 4 ++-- ...ozilla-firefox.ps1 => open-firefox-browser.ps1} | 4 ++-- 8 files changed, 27 insertions(+), 17 deletions(-) rename Scripts/{close-google-chrome.ps1 => close-chrome-browser.ps1} (81%) rename Scripts/{close-microsoft-edge.ps1 => close-edge-browser.ps1} (87%) rename Scripts/{close-mozilla-firefox.ps1 => close-firefox-browser.ps1} (63%) rename Scripts/{install-google-chrome.ps1 => install-chrome-browser.ps1} (91%) rename Scripts/{open-google-chrome.ps1 => open-chrome-browser.ps1} (88%) rename Scripts/{open-microsoft-edge.ps1 => open-edge-browser.ps1} (82%) rename Scripts/{open-mozilla-firefox.ps1 => open-firefox-browser.ps1} (87%) diff --git a/Docs/VoiceControl.md b/Docs/VoiceControl.md index 08712a1f..0d24de8f 100644 --- a/Docs/VoiceControl.md +++ b/Docs/VoiceControl.md @@ -1,11 +1,13 @@ Executing PowerShell Scripts by Voice ===================================== + Installation ------------ 1. Download and install *Serenade* from https://serenade.ai/. 2. Download and install the *PowerShell Scripts*, then set the search path to it. -3. Execute the PowerShell script: `./export-to-serenade.ps1 computer` - this creates a custom JavaScript file at `$HOME/.serenade/scripts/PowerShell.js` using the wake word 'computer'. +3. Execute the PowerShell script: `./export-to-serenade.ps1 computer` - this creates a custom JavaScript file at `$HOME/.serenade/scripts/PowerShell.js` using the wake word 'computer'. Recommended wake words with a high detection rate are: "Alexa", "Computer", "Siri" and "Windows". + Usage ----- @@ -15,10 +17,18 @@ Usage More supported voice commands are: + +[wake word], open NAME browser +------------------------------ +* this launches the given Web browser. +* replace NAME by: "Chrome", "Edge", or "Firefox". +* use: *[wake word], close NAME browser* to stop the Web browser afterward. + + [wake word], open NAME ---------------------- * this launches the given application. -* replace NAME by: "calculator", "Google Chrome", "Microsoft Edge", "Mozilla Firefox", "Netflix". +* replace NAME by: "calculator", "Netflix". * to close the application, use: *[wake word], close NAME* diff --git a/Scripts/close-google-chrome.ps1 b/Scripts/close-chrome-browser.ps1 similarity index 81% rename from Scripts/close-google-chrome.ps1 rename to Scripts/close-chrome-browser.ps1 index 2db18a8c..f0c3e820 100755 --- a/Scripts/close-google-chrome.ps1 +++ b/Scripts/close-chrome-browser.ps1 @@ -1,10 +1,10 @@ <# .SYNOPSIS - Closes the Google Chrome Web browser + Closes the Chrome browser .DESCRIPTION This script closes the Google Chrome Web browser gracefully. .EXAMPLE - PS> ./close-google-chrome + PS> ./close-chrome-browser .NOTES Author: Markus Fleschutz · License: CC0 .LINK diff --git a/Scripts/close-microsoft-edge.ps1 b/Scripts/close-edge-browser.ps1 similarity index 87% rename from Scripts/close-microsoft-edge.ps1 rename to Scripts/close-edge-browser.ps1 index 5153f4ec..90392dda 100755 --- a/Scripts/close-microsoft-edge.ps1 +++ b/Scripts/close-edge-browser.ps1 @@ -1,10 +1,10 @@ <# .SYNOPSIS - Closes Microsoft Edge + Closes the Edge browser .DESCRIPTION This script closes the Microsoft Edge Web browser gracefully. .EXAMPLE - PS> ./close-microsoft-edge + PS> ./close-edge-browser .NOTES Author: Markus Fleschutz · License: CC0 .LINK diff --git a/Scripts/close-mozilla-firefox.ps1 b/Scripts/close-firefox-browser.ps1 similarity index 63% rename from Scripts/close-mozilla-firefox.ps1 rename to Scripts/close-firefox-browser.ps1 index c784b65e..8a6c84df 100755 --- a/Scripts/close-mozilla-firefox.ps1 +++ b/Scripts/close-firefox-browser.ps1 @@ -1,10 +1,10 @@ <# .SYNOPSIS - Closes Mozilla's Firefox Web browser + Closes the Firefox browser .DESCRIPTION - This script closes Mozilla's Firefox Web browser gracefully. + This script closes the Mozilla Firefox Web browser gracefully. .EXAMPLE - PS> ./close-mozilla-firefox + PS> ./close-firefox-browser .NOTES Author: Markus Fleschutz · License: CC0 .LINK diff --git a/Scripts/install-google-chrome.ps1 b/Scripts/install-chrome-browser.ps1 similarity index 91% rename from Scripts/install-google-chrome.ps1 rename to Scripts/install-chrome-browser.ps1 index dbc51bc5..350244f5 100755 --- a/Scripts/install-google-chrome.ps1 +++ b/Scripts/install-chrome-browser.ps1 @@ -1,10 +1,10 @@ <# .SYNOPSIS - Installs the latest Google Chrome browser + Installs the Chrome browser .DESCRIPTION This script installs the latest Google Chrome Web browser. .EXAMPLE - PS> ./install-google-chrome + PS> ./install-chrome-browser .NOTES Author: Markus Fleschutz · License: CC0 .LINK diff --git a/Scripts/open-google-chrome.ps1 b/Scripts/open-chrome-browser.ps1 similarity index 88% rename from Scripts/open-google-chrome.ps1 rename to Scripts/open-chrome-browser.ps1 index 6d394553..56f6650d 100755 --- a/Scripts/open-google-chrome.ps1 +++ b/Scripts/open-chrome-browser.ps1 @@ -1,10 +1,10 @@ <# .SYNOPSIS - Launches the Google Chrome Web browser + Launches the Chrome browser .DESCRIPTION This script launches the Google Chrome Web browser. .EXAMPLE - PS> ./open-google-chrome + PS> ./open-chrome-browser .PARAMETER URL Specifies an optional URL .NOTES diff --git a/Scripts/open-microsoft-edge.ps1 b/Scripts/open-edge-browser.ps1 similarity index 82% rename from Scripts/open-microsoft-edge.ps1 rename to Scripts/open-edge-browser.ps1 index 50f86aa0..28987c7e 100755 --- a/Scripts/open-microsoft-edge.ps1 +++ b/Scripts/open-edge-browser.ps1 @@ -1,10 +1,10 @@ <# .SYNOPSIS - Launches Microsoft Edge + Launches the Edge browser .DESCRIPTION This script launches the Microsoft Edge Web browser. .EXAMPLE - PS> ./open-microsoft-edge + PS> ./open-edge-browser .NOTES Author: Markus Fleschutz · License: CC0 .LINK diff --git a/Scripts/open-mozilla-firefox.ps1 b/Scripts/open-firefox-browser.ps1 similarity index 87% rename from Scripts/open-mozilla-firefox.ps1 rename to Scripts/open-firefox-browser.ps1 index 22ad5ecd..ca5b2a8b 100755 --- a/Scripts/open-mozilla-firefox.ps1 +++ b/Scripts/open-firefox-browser.ps1 @@ -1,10 +1,10 @@ <# .SYNOPSIS - Launches the Mozilla Firefox Web browser + Launches the Firefox browser .DESCRIPTION This script launches the Mozilla Firefox Web browser. .EXAMPLE - PS> ./open-mozilla-firefox + PS> ./open-firefox-browser .PARAMETER URL Specifies an optional URL .NOTES