There is two problems here:
- having two separate instances (or at least windows) of eog
- controlling on which screen they open
The first one is simple : option --new-instance
do the trick.
The scond one is more complicated. The --display argument refers to the X server to use, not the name of the screen and/or monitor (xorg.conf terminology). So --display is not the right think to use.
When issuing eog --fullscreen image.jpg
on a terminal, the image open on the same screen than the terminal. So I suppose there is a way to tell Gtk to opens on a precise screen. (NB: option -s is for slideshow, i;e. if you want one single image, prefer fullscreen.)
From the documentation of GTK/Gdk, and the source code of eog, It seems that eog create a popup with teh image, and request gdk to set it fullscreen. Gdk then requests the window manager to set the "window" of the popup fullscreen. So the decision to open the image on this or that screen belongs to the window manager.
wmctrl
seem to be the right tool to communicate with the window manager. Here is a draft of a script doing that.
#!/bin/bash
#open two fullscreen windows
eog --fullscreen --new-instance image1.jpg&
#wait until windows are actually created
while [ 1 ]; do
found=$(wmctrl -l |grep 'image1.jpg');
if ! [[ -z "$found" ]]; then
break;
fi;
done;
#move first win to the left
wmctrl -r 'image1.jpg' -e 1,0,0,-1,-1
eog --fullscreen --new-instance image2.jpg&
#wait
while [ 1 ]; do
found=$(wmctrl -l |grep 'image2.jpg');
if ! [[ -z "$found" ]]; then
break;
fi;
done;
#move
wmctrl -r 'image2.jpg' -e 1,1280,0,-1,-1
But you should replace 1280 with your actual screen width. Also note that, because the script use window names to identify them, this will not work if windows with similar names ('image1', 'image2') exists on your desktop.
Best Answer
Ubuntu
16.04
is based on gnome3.18
. Applications such aseog
orgedit
(are part of gnome desktop environment) are updated versions and this is modified interface. Ineog
you can click + and set 1:1 zoom (just move to mark).If you don't like the way it looks you can downgrade applications to previous versions like this example.