Skip to content

Daily background from one or several subreddits for W10/11

License

Notifications You must be signed in to change notification settings

VictorColomb/warplaneporn-lockscreen

Repository files navigation

WarplanepornLockscreen

Powershell Gallery Issues License r/warplaneporn

Daily lock screen wallpaper from one or several subreddits.

⚙️ Requirements

  • Windows 10 or 11, build 1703 (Creators Update) or later
  • Powershell 5+
  • Admin rights

⬇️ Installation

In a Powershell console with elevated rights:

Set-ExecutionPolicy Unrestricted -Scope Process
Install-Module -Name WarplanepornLockscreen
WarplanepornLockscreen -install

This will download the module from PowerShell Gallery and install it on your machine.

When installed, the script will launch once a day and set a new wallpaper (given your machine is running and connected to the internet).

🔨 Usage

For your convenience, WarplanepornLockscreen has an alias : WPP-LS!

1. Manual wallpaper refresh

WPP-LS [-subreddits sub1[,sub2[...]]] [-nsfw] [-sort top|hot|new]

2. Change configuration

WarplanepornLockscreen -config

You can also add or remove one subreddit at a time from the configuration :

WarplanepornLockscreen -add subreddit
WarplanepornLockscreen -remove subreddit

To see which subreddits are currently configured, use

WarplanepornLockscreen -list

3. Display current picture or open log

WarplanepornLockscreen -showpic
WarplanepornLockscreen -showlog

4. Save current wallpaper and see saved wallpapers

WarplanepornLockscreen -save
WarplanepornLockscreen -showSaved

❌ Uninstall

In a Powershell console with elevated rights:

Set-ExecutionPolicy Unrestricted -Scope Process
WarplanepornLockscreen -uninstall

📃 To do

  • Check for updates
  • Adapt for desktop background (same thing, different registry key)

Feel free to help !

⚖️ License

This code is licensed under the MIT license. Fell free to use it as you wish!