mirror of
https://github.com/fleschutz/PowerShell.git
synced 2024-11-09 01:25:04 +01:00
Update switch-wallpaper.ps1
This commit is contained in:
parent
ff683cdf96
commit
8a6524542d
@ -62,11 +62,14 @@ function SetWallPaper { param([string]$Image, [ValidateSet('Fill', 'Fit', 'Stret
|
|||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
"(1/2) Downloading random photo from Unsplash..."
|
$Reply = "Give me a second", "Gimme a second", "Give me a moment", "Just a moment", "Just a second", "Wait a second", "Hold on" | Get-Random
|
||||||
|
& "$PSScriptRoot/give-reply.ps1" "$Reply"
|
||||||
|
|
||||||
|
"Downloading random photo from Unsplash..."
|
||||||
$Path = "$(GetTempDir)/next_wallpaper.jpg"
|
$Path = "$(GetTempDir)/next_wallpaper.jpg"
|
||||||
& wget -O $Path "https://unsplash.it/3840/2160/?random"
|
& wget -O $Path "https://unsplash.it/3840/2160/?random"
|
||||||
|
|
||||||
"(2/2) Switching the wallpaper..."
|
"Switching the wallpaper..."
|
||||||
SetWallPaper -Image $Path -Style $Style
|
SetWallPaper -Image $Path -Style $Style
|
||||||
|
|
||||||
"✔️ Done."
|
"✔️ Done."
|
||||||
|
Loading…
Reference in New Issue
Block a user