1
0
mirror of https://github.com/fleschutz/PowerShell.git synced 2025-06-19 03:17:04 +02:00

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

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

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