Skip to content

Instantly share code, notes, and snippets.

View lordgrenville's full-sized avatar

Josh Friedlander lordgrenville

View GitHub Profile
@bgreenlee
bgreenlee / wallpaper.sh
Last active August 12, 2025 14:30
Getting the name of the current Mac Aerial screensaver/wallpaper
#!/bin/bash
# Print the name of the current Mac Aerial screensaver/wallpaper
# requires jq (brew install jq)
LANG=$(defaults read -g AppleLocale | cut -c1-2) # this is not going to work for all locales
WALLPAPERS="/Library/Application Support/com.apple.idleassetsd/Customer/entries.json"
DESCRIPTIONS="/Library/Application Support/com.apple.idleassetsd/Customer/TVIdleScreenStrings.bundle/$LANG.lproj/Localizable.nocache.strings"
# get the path of the current wallpaper video by looking at the files the WallpaperVideoExtension process has open