y4my4my4m / kde-shader-wallpaper

KDE / Plasma - Shader Wallpaper plugin
GNU General Public License v3.0
224 stars 12 forks source link

Fix pause/resume for 2.0a and fullscreen #17

Closed y4my4my4m closed 2 months ago

y4my4my4m commented 3 years ago

Accidentally broke it. Whoops :shushing_face:

y4my4my4m commented 3 years ago

https://github.com/y4my4my4m/kde-shader-wallpaper/pull/20 seems to fix the issue, huge thanks to @ja2142 for his contribution!

Closing this now.

y4my4my4m commented 3 years ago

Actually, seems that the "pause button" itself is broken now. That is because it uses the same flag as the fullscreen-pause while it should be a separate flag.

Riebeck-one commented 10 months ago

Actually, I believe it would be a good idea to automatically pause all wallpapers whenever a window is maximized on any of the screens. This could be quite useful for gaming, considering that shader wallpapers can consume a significant amount of performance. A temporary solution could involve creating a bash command that can pause shaders on all screens and incorporating it into a script that would also launch applications like Steam, for instance.

unhappy-ending commented 2 months ago

Bumping so we can get this for Plasma6? It worked perfect on 5.

y4my4my4m commented 2 months ago

@Maxinova @unhappy-ending yes it's happening for Plasma6, probably will be there by friday.

luisbocanegra commented 2 months ago

Hi I have a similar feature in https://github.com/luisbocanegra/plasma-smart-video-wallpaper-reborn and it works really well https://github.com/luisbocanegra/plasma-smart-video-wallpaper-reborn/blob/main/package/contents/ui/WindowModel.qml not sure how much you need to access from TaskManager but maybe this project can benefit from that

Screenshot_20240407_152308

luisbocanegra commented 2 months ago

Guess I can give a try to add it myself

luisbocanegra commented 2 months ago

It works 🎉

https://github.com/y4my4my4m/kde-shader-wallpaper/assets/15076387/bc1ea29c-9b31-4f76-9185-4de5d3deb4b0

I had to use cfg_variableName otherwise my pause mode combobox was reset to 0 after restarting plasma so clicking Apply is needed for this control now

unhappy-ending commented 2 months ago

That's awesome! I hope this gets merged :)

y4my4my4m commented 2 months ago

@luisbocanegra thanks for implementing this, i really appreciate it! Guess I'll have to investigate cfg_variableName as well. I might need to start using that again instead of directly modifying the xml configuration variables

luisbocanegra commented 2 months ago

@luisbocanegra thanks for implementing this, i really appreciate it!

You're welcome!

Guess I'll have to investigate cfg_variableName as well. I might need to start using that again instead of directly modifying the xml configuration variables

Yeah, the downside will be losing the ability to quickly review settings changes, not sure if directly applying and preserving the values can be done but I think it should be.

I think is a good idea to debug the direct wallpaper.configuration.variableName saving/reading to ~/.config/plasma-org.kde.plasma.desktop-appletsrc ~/.config/kscreenlockerrc, maybe something else is causing this saving problem and switching everything to cfg_ can be avoided?

y4my4my4m commented 2 months ago

@luisbocanegra

Yeah, the downside will be losing the ability to quickly review settings changes, not sure if directly applying and preserving the values can be done but I think it should be.

What i've hastly tried was simply apply both the value directly and applying it to cfg_X as well https://github.com/y4my4my4m/kde-shader-wallpaper/issues/49

I think is a good idea to debug the direct wallpaper.configuration.variableName saving/reading to ~/.config/plasma-org.kde.plasma.desktop-appletsrc ~/.config/kscreenlockerrc, maybe something else is causing this saving problem and switching everything to cfg_ can be avoided?

To be quite honest I'm not too sure how that even works, but so far I haven't encountered any major saving issues since implementing the cfg_