Update the wallpaper scripts

This commit is contained in:
Markus Fleschutz 2021-12-11 16:50:35 +01:00
parent 1d17a5a891
commit 9ce6a1e06f
2 changed files with 3 additions and 3 deletions

View File

@ -6,7 +6,7 @@
.PARAMETER ImageFile
Specifies the path to the image file
.PARAMETER Style
Specifies either Fill, Fit (default), Stretch, Tile, Center, or Span
Specifies either Fill, Fit, Stretch, Tile, Center, or Span (default)
.EXAMPLE
PS> ./set-wallpaper C:\ocean.jpg
.NOTES
@ -15,7 +15,7 @@
https://github.com/fleschutz/PowerShell
#>
param([string]$ImageFile = "", [string]$Style = "Fit")
param([string]$ImageFile = "", [string]$Style = "Span")
function SetWallPaper {
param([string]$Image, [ValidateSet('Fill', 'Fit', 'Stretch', 'Tile', 'Center', 'Span')][string]$Style)

View File

@ -4,7 +4,7 @@
.DESCRIPTION
This script download a random photo and sets it as desktop wallpaper.
.PARAMETER Style
Specifies either Fill, Fit (default), Stretch, Tile, Center, or Span
Specifies either Fill, Fit, Stretch, Tile, Center, or Span (default)
.EXAMPLE
PS> ./switch-wallpaper
.NOTES