sindresorhus / Plash

💦 Make any website your Mac desktop wallpaper
https://sindresorhus.com/plash
MIT License
3.46k stars 128 forks source link

The new disable shortcut hook is great, I'd like a similar "pause/unpause" shortcut #154

Open StashPowerUser opened 7 months ago

StashPowerUser commented 7 months ago

I use a website for plash that play video playlists as a background

The shortcut to disable/re-enable is great, but it causes my playlist position to be lost as plash does not save the current URL and always reloads to the website's home page.

I'd like a pause shortcut action that hides the plash background and pauses the renderer, and corresponding unpause that does the opposite.

Alternately, if plash could save/restore the current url when disabling/enabling that would be almost as good.

sindresorhus commented 7 months ago

Alternately, if plash could save/restore the current url when disabling/enabling that would be almost as good.

👍 I think it should do that.


// @Lilfaen in case you're interested in working on this.

StashPowerUser commented 7 months ago

The save/restore of current URL would also be useful more generally for sleep/wake, shutdown and startup

Lilfaen commented 5 months ago

@sindresorhus When trying to get the current url using WebsitesController.shared.current I always get the initial url. In the Xcode logs, I get a warning: Failed to encode domain (null), 1 (0) every time the url changes, like in a video playlist. Could you look into that?