zzag / plasma5-wallpapers-dynamic

Dynamic wallpaper plugin for KDE Plasma
328 stars 18 forks source link

Support for multiple displays #68

Closed l0drex closed 2 years ago

l0drex commented 3 years ago

It would be nice if there was an option to have one wallpaper as the background for multiple displays.

zzag commented 3 years ago

Design-wise, this plugin is not suited for dynamic wallpapers spanning multiple displays. But PRs are always welcome. :-)

l0drex commented 3 years ago

Maybe the plugin could simply split the wallpaper and only uses the image for the display you are setting the image to. Let's say you have two displays, one on the left and one on the right. You go to the left screen, select the file, set the display amount to 2 and select the one on the left. The plugin then reads the file, splits it vertically and only uses the left part. Same for the right screen. I don't know if this would work, but maybe the plugin could even read the monitor layout from the display configuration set in plasma. This would also make things easier if the displays are not on the same height.

Is this possible to do?

zzag commented 3 years ago

Yes, it's possible. The plugin has all necessary screen layout information, see https://doc.qt.io/qt-5/qml-qtquick-window-window.html#screen-prop.

l0drex commented 2 years ago

I just rediscovered my issue here. I have built a wallpaper splitter that can split jpeg and png images according to the screen config. So I extract the jpeg images of the wallpaper, run the splitter and then rebuild the wallpaper.

Here is my tool, for anyone interested: https://github.com/l0drex/WallpaperSplitter