diff --git a/Docs/VoiceControl.md b/Docs/VoiceControl.md index cf7e6b46..4f23ed88 100644 --- a/Docs/VoiceControl.md +++ b/Docs/VoiceControl.md @@ -32,7 +32,7 @@ When finished say: *"Computer, close [app]"* to close the application. *"Computer, check [item]."* -------------------------- -Lets the computer check something, replace [item] by: `Bitcoin rate`, `Christmas`, `CPU`, `date`, `dawn`, `day`, `DNS`, `drives`, `dusk`, `Easter Sunday`, `Earth` (fun), `Ether rate`, `headlines`, `Independence Day`, `ISS position`, `midnight`, `moon phase`, `New Year`, `noon`, `operating system`, `ping`, `Santa`, `sunrise`, `sunset`, `swap space`, `tea time`, `Tether rate`, `time`, `time zone`, `up-time`, `VPN`, `weather`, `week`, `year`, or `zenith`. +Lets the computer check something, replace [item] by: `Bitcoin rate`, `Christmas`, `CPU`, `date`, `dawn`, `day`, `DNS`, `drives`, `dusk`, `Easter Sunday`, `Earth` (fun), `Ether rate`, `headlines`, `Independence Day`, `ISS position`, `midnight`, `moon phase`, `month`, `New Year`, `noon`, `operating system`, `ping`, `Santa`, `sunrise`, `sunset`, `swap space`, `tea time`, `Tether rate`, `time`, `time zone`, `up-time`, `VPN`, `weather`, `week`, `year`, or `zenith`. *"Computer, open [letter] drive."* diff --git a/Scripts/check-month.ps1 b/Scripts/check-month.ps1 new file mode 100644 index 00000000..136826b7 --- /dev/null +++ b/Scripts/check-month.ps1 @@ -0,0 +1,23 @@ +<# +.SYNOPSIS + Gets the current month name +.DESCRIPTION + This script determines and speaks the current month name by text-to-speech (TTS). +.EXAMPLE + PS> ./check-month + ✔️ It's December. +.NOTES + Author: Markus Fleschutz · License: CC0 +.LINK + https://github.com/fleschutz/PowerShell +#> + +try { + [system.threading.thread]::currentthread.currentculture=[system.globalization.cultureinfo]"en-US" + $MonthName = (Get-Date -UFormat %B) + & "$PSScriptRoot/give-reply.ps1" "It's $MonthName." + exit 0 # success +} catch { + "⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))" + exit 1 +} diff --git a/Scripts/next-random-wallpaper.ps1 b/Scripts/next-random-wallpaper.ps1 index 7e8462e7..f0886b33 100644 --- a/Scripts/next-random-wallpaper.ps1 +++ b/Scripts/next-random-wallpaper.ps1 @@ -2,7 +2,7 @@ .SYNOPSIS Switches to a random wallpaper .DESCRIPTION - This script downloads a random photo and sets it as desktop wallpaper. + This script downloads a random photo from Unsplash and sets it as desktop wallpaper. .PARAMETER Category Specifies the photo category (beach, city, ...) .EXAMPLE @@ -23,7 +23,7 @@ function GetTempDir { } try { - & "$PSScriptRoot/give-reply.ps1" "Loading from Unsplash..." + & "$PSScriptRoot/give-reply.ps1" "Just a second..." $Path = "$(GetTempDir)/next_wallpaper.jpg" & wget -O $Path "https://source.unsplash.com/3840x2160?$Category"