Make Your iPhone Switch Wallpapers Automatically When Dark Mode or Light Mode Is Enabled

Dec 28, 2020 10:23 PM
637447564384994837.jpg

There are still and live wallpapers on your iPhone that can go dark when Dark Mode is active or light when Light Mode is on, but there's no easy way to do the same for custom backgrounds. That doesn't mean you're out of luck, though, because you can use Shortcuts to build a workaround until Apple gets us an official "Dark Mode" option for automation.

While we wait for that official "Dark Mode" trigger, which may not ever come, we can build an automation that checks to see whether Dark Mode or Light Mode is currently enabled and runs a shortcut telling iOS to switch the background on your home and lock screen to the image you chose for either Dark Mode or Light Mode, depending on which is set. The trigger could be for a certain time of day, whenever you open an app, or even when you leave your home.

Prerequisites

First, you'll need the Shortcuts app, which is required for any shortcut. It's pre-installed on iOS 13 and later, but if you deleted it, you can re-install it from the App Store. Second, you'll need to have the "Add Untrusted Shortcuts" switch enabled in Settings –> Shortcuts if it's not already. Last, you need to be running iOS 14 or later on your iPhone. Some of the actions that appear in the shortcut we're using are not available in iOS 13, so it won't work unless you're on the latest iOS version.

Step 1: Add the Shortcut

The "Light or Dark Wallpaper" shortcut, from RoutineHub user pollen, is free to download using the direct iCloud link below. You can also get it from its dedicated RoutineHub page, where the shortcut is routinely updated (as of this writing, it's version 1.1).

After hitting "Get Shortcut," the Shortcuts app should open with a preview of the "Light or Dark Wallpaper" shortcut. Here, you can review the workflow's actions and tap "Add Untrusted Shortcut" at the bottom to add it to your library.

637446771248432039.jpg
637446771386712952.jpg
637446771248432039.jpg
637446771386712952.jpg

Step 2: Find Photos & Create Two Albums

Before you run the shortcut, you'll need to find two photos that will appear as the wallpaper when Dark Mode is on and off. You can find Dark/Light mode backgrounds online that use different hues, and you could even use two photos you've taken yourself. They can be anything you want, whether they're the same image with different colors or two totally different photos. For this example, I'll be using a couple of the official Big Sur wallpapers.

Next, you'll need to create two separate albums in the Photos app for each photo. Open the Photos app and find the first of your two photos. Tap on the Share button in the bottom left, then tap on "Add to Album" from the Share sheet.

637446775305307083.jpg
637446786334215366.jpg
637446775305307083.jpg
637446786334215366.jpg

To create a new album, tap on the blank "New Album..." option at the top and enter a name for your album. If it's the wallpaper you want to appear when Night Mode is off, we suggest either "Day" or "Light." For the Dark Mode wallpaper, use "Dark" or "Night." The album names should be something simple and sweet, but you can use whatever you want. Once you're finished naming the album, tap "Save."

637446789714995130.jpg
637446789900307046.jpg
637446789714995130.jpg
637446789900307046.jpg

Do this for both photos you intend on using as wallpapers with the shortcut so that you have two albums — one for Light Mode images and one for Dark Mode images. Below, you can see both of my albums in the Photos app.

637446805003432119.jpg
637446806212650316.jpg
637446805003432119.jpg
637446806212650316.jpg

Step 3: Configure the Shortcut

The only tweak you need to make to the shortcut you downloaded is to add the Day and Night albums you created to its actions. In Shortcuts, in the "My Shortcuts" tab, tap the ellipsis (•••) on the card for "Light and Dark Wallpaper." This will take you into the Shortcuts editor.

Next, go to the first Photos action box, underneath the "Light Mode Is On" action box, and tap on "Recents," which is the album chosen by default. Here, scroll down and find the Day or Light album you created and choose it. Whenever Dark Mode is off (i.e., Light Mode is on), the photo in this album will become your wallpaper.

637446808684056969.jpg
637446826316244297.jpg
637446829574369132.jpg
637446808684056969.jpg
637446826316244297.jpg
637446829574369132.jpg

Now scroll down a little more and go to the second Photos action box, underneath Otherwise, and tap on "Recents" next to "Album Is." This time, choose the Dark or Night album you created. This is the wallpaper that will appear when Night Mode is turned on.

637446844316314804.jpg
637446844541939941.jpg
637446844316314804.jpg
637446844541939941.jpg

Step 4: Create an Automation

Unfortunately, the shortcut cannot be directly tied to Dark Mode being turned on, meaning that if you turn on Dark Mode, the wallpaper won't change automatically in the background. For that to happen, Apple needs to add a "Dark Mode" option in its list of automation triggers. Instead, when the shortcut is run, it looks to see if Dark Mode is on or not, then changes the wallpaper accordingly.

So we'll need to create an automation to run the shortcut in the background because tapping on it every time you want to switch wallpapers is cumbersome. If you turn Dark Mode on and off throughout the day, your best bet is to run the shortcut anytime you open an app you use often. To do so, tap on "Automation" in Shortcuts, then "Create Personal Automation" (tap the plus (+) sign first if you don't see that).

637446852155845292.jpg
637446853515533389.jpg
637446852155845292.jpg
637446853515533389.jpg

Next, choose the trigger to run the shortcut. If you have Dark Mode appearance set on a schedule, you're better off using the "Time of Day" trigger instead, where it will run the shortcut at sunrise, sunset, or any time specified. Just match the timing with that of your appearance schedule.

For my example, I'll be using the "App" trigger. If you choose that, pick your app (I'm selecting Twitter), keep "Is Opened" checked, and tap on "Next" to create the rest of the automation.

637446854735222107.jpg
637446854981002920.jpg
637446854735222107.jpg
637446854981002920.jpg

Tap on "Add Action" and type in "run shortcut" into the text box. An option called "Run Shortcut" should appear under Actions — tap on it.

637446857868588266.jpg
637446858025306807.jpg
637446857868588266.jpg
637446858025306807.jpg

Once the Run Shortcut action appears, tap on "Shortcut" and select "Light or Dark Wallpaper" from the options that appear. Then, hit "Next" on the top right.

637446861920775994.jpg
637446862088434012.jpg
637446862815775626.jpg
637446861920775994.jpg
637446862088434012.jpg
637446862815775626.jpg

Finally, toggle off "Ask Before Running" so that the shortcut can run in the background anytime you open whichever app you specified. Hit "Don't Ask" and tap "Done" to finish creating your automation.

637446863809525385.jpg
637446863952494614.jpg
637446864094057550.jpg
637446863809525385.jpg
637446863952494614.jpg
637446864094057550.jpg

Step 5: Run the Shortcut in Background

Now feel free to switch to and from Dark Mode as usual. Although your wallpaper won't change instantly, it will anytime you open the app you chose in the automation. You can even open the app as soon as you enter or leave Dark Mode, just so that it's a quick change in wallpaper. Though, again, if you have Dark Mode on a schedule, it's better to use the "Time of Day" trigger to have it match.

The first time you run the Light or Dark Wallpaper shortcut, you will be asked to grant the shortcut access to the Photos app so that it can create the wallpapers. After that, the change will occur in the background without any other actions from you, and the wallpaper will change on both your lock screen and home screen. Below, you can see the wallpaper in action when Dark Mode is turned on (left) and off (right).

Cover photo, screenshots, and GIFs by Nelson Aguilar/Gadget Hacks

Comments

No Comments Exist

Be the first, drop a comment!