This repository has been archived by the owner on Sep 7, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# Unsplash Wallpapers | ||
Changes your wallpaper every sixty seconds to a fresh one from Unsplash. | ||
|
||
## Installation | ||
Download the zip file and extract it somewhere where you won't delete it. Create a shortcut of the `UnsplashWallpapers.exe` by right-clicking it and pressing "Create shortcut". Then press <kbd>Win</kbd> + <kbd>R</kbd>, enter `shell:startup` and drag & drop the shortcut into it. This way, Unsplash Wallpapers will start everytime you boot your machine. | ||
|
||
## Source code | ||
The .exe file is just a compiled batch file that runs in the background. The source code can be found at `UnsplashWallpapers.bat`. | ||
|
||
## Dependencies | ||
Only `wget`, which is included in the zip file. |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
@echo off | ||
title Unsplash Wallpapers | ||
|
||
:start | ||
|
||
REM Get screen resolution | ||
FOR /f "tokens=1,2" %%a IN ('"wmic desktopmonitor get screenheight, screenwidth"') DO ( | ||
SET /a ScreenHeight=%%a | ||
SET /a ScreenWidth=%%b | ||
) | ||
|
||
REM Download image and set it as wallpaper | ||
wget.exe https://unsplash.it/%ScreenWidth%/%ScreenHeight%?random -O %USERPROFILE%/Pictures/Unsplash.jpg --no-check-certificate | ||
Powershell.exe -executionpolicy remotesigned -File SetWallpaper.ps1 | ||
|
||
REM Wait for 60s | ||
ping 127.0.0.1 -n 60 > nul | ||
goto start |
Binary file not shown.