wallpaper-engine-kde-plugin icon indicating copy to clipboard operation
wallpaper-engine-kde-plugin copied to clipboard

pause wallpaper when application is fullscreen

Open chrostino opened this issue 6 months ago • 2 comments

useful option for multiple monitors setup, I'd like for my wallpaper on second monitor to keep playing when an app is maximized (like firefox while browsing) but to stop when an app enters full screen mode, mostly games so to save system resoures for game performance. Idk if there is another way to make this happen, maybe through gamemode, if not it would be an appreciated addition. Also it would be cool to be able to set one wallpaper stretching over multiple screens, you could do that in wallpaper engine but I guess it's a way more complicated thing to implement

chrostino avatar Jan 09 '24 15:01 chrostino

I was also looking for a similar option, and as nobody answered me I had to do it myself. I will attach the files. I worked on the most recent version of wallpaperEnginekdeplugin from the github page, I mention it to avoid any incompatibility issues, so I suggest you update to the latest one and obviously make a backup.

First, you can find the files to replace in: /home/YOURUSER/.local/share/plasma/wallpapers/com.github.casout.wallpaperEngineKde/contents/ui/

The files to be replaced in the .../ui/ directory will be:

WindowModel.qml
Common.qml

And there is one more that is replaced in .../ui/page:

SettingsPage.qml

The only thing left to do is to restart the plasma: kquitapp5 plasmashell && kstart plasmashell

Good luck.

attached files: files.zip

PS: I don't know if I am breaking any rules by uploading the files. Let me know, thanks.

tonehrk avatar Jan 14 '24 02:01 tonehrk

thanks a lot, it works great. it would be cool to implement it in the official build, you should make a pull request. The only thing that would make it even better is being able to use this option alongside the option to block the wallpaper on individual monitor when a window is maximized on it, but that's harder to implement I guess

chrostino avatar Jan 14 '24 16:01 chrostino