igorkulman / ChangeMenuBarColor

Simple utility to change macOS Big Sur and Monterey menu bar color by appending a solid color or gradient rectangle to a wallpaper image
MIT License
970 stars 37 forks source link

Feature request: If no path is given use current wallpaper #7

Closed Rastafabisch closed 4 years ago

Rastafabisch commented 4 years ago

If no path is given it would be great, if your tool would default to the current wallpaper path.

This could be obtained with a small query using sqlite: sqlite3 -readonly ~/Library/Application\ Support/Dock/desktoppicture.db \ 'SELECT * FROM data ORDER BY rowID DESC LIMIT 1;'

Additionally the new file could also be written to this path, so it would be automatically applied.

Rastafabisch commented 4 years ago

Wow, that was fast! Kudos.

danilokleber commented 10 months ago

I guess this is not working anymore in Sonoma? It always prints Using currently set macOS wallpaper file:///System/Library/CoreServices/DefaultDesktop.heic, but my defined wallpaper is not that.