-
Notifications
You must be signed in to change notification settings - Fork 82
Span image over all monitors. #39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I think this would actually be pretty difficult with the way we organized the code. Let me think about it a little. |
For now I just split the image manually and then send the chunks to the appropriate monitor with Or maybe you could implement an option to sync the current frame number of the gif on all outputs? |
Any news on this? I'm very happy with my solution so far. But syncing the frame numbers on both monitors would still be very nice. Sometimes they are out of sync because they wont start exactly the same time. |
Syncing is precisely the problem. I am actually surprised it works sometimes at all! I am thinking of adding an option I am thinking of adding barriers for the animation threads in this case, but I still need to flesh out all the details . There's also some other things that I will probably get to first, such as #42 and #37 (since they are simpler), and reviewing PR 44 (since it might change some stuff inside animation). Unfortunately, I will remain very busy at least until early December, so I've been working slowly on everything, and I think this particular request will still take a while :( |
No problem! I'm happy you consider this at all ;-) #!/bin/sh
if [ -z "$1" ]
then
IMG=$(ls -d ~/Pictures/wallpapers/* | shuf -n 1)
else
IMG=$(realpath "$1")
fi
WIDTH=$(identify -format '%[fx:w/2]' "$IMG"'[0]')
HEIGHT=$(identify -format '%[fx:h]' "$IMG"'[0]')
convert "$IMG" -coalesce -repage 0x0 -crop "$WIDTH"x"$HEIGHT"+0+0 +repage /tmp/left.gif
convert "$IMG" -coalesce -repage 0x0 -crop "$WIDTH"x"$HEIGHT"+"$WIDTH"+0 +repage /tmp/right.gif
swww init
swww img -f Nearest -o DP-3 /tmp/left.gif
swww img -f Nearest -o HDMI-A-1 /tmp/right.gif As I said, sometimes it's out of sync, but then I run the script again until both GIFs seem synced. At least they don't drift away from each other as far as I can tell ;-) |
Thank you very much for working on this! I think while syncing the gif frame numbers on multiple displays is a good idea (but should be opt in, I think), the image splitting should be up to the user and must not be implemented in The image splitting can become a bit complicated when the user has monitors with different screen sizes and/or aspect ratios. Also there are plenty of different positioning schemes I could think of... |
I stumbled upon the lack of this functionality and when searching I found this issue. It's a shame we don't see this functionality yet. I'll have to make do with the trick of splitting the image. Unfortunately, currently, we still don't have any tool for Wayland WM/composers that does this, so I'm glad that |
Uh oh!
There was an error while loading. Please reload this page.
Would it be possible to allow an image to be spanned over multiple monitors?
I could try to implement this myself. I would just need a hint, where in the code the image is drawn on a specific output.
I gues I would just need to split the image data into
n
chunks and then send them to the appropriate outputs.The text was updated successfully, but these errors were encountered: