<div dir="ltr">Just to clarify, I don't actually have another monitor yet, I am considering buying one and wondering how much trouble this will cause.<div><br></div><div>Thanks,</div><div>Neal</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Feb 14, 2023 at 3:29 PM Ulrich Sibiller <<a href="mailto:uli42@gmx.de">uli42@gmx.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto">I'd you resize the local window the desktop within the session will resize, too. Maybe you can also use xdotool for that. If the local window will span multiple screens this will reflect in the xrandr configuration within the session (see xrandr output).<div dir="auto"><br></div><div dir="auto">Uli</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Andrey Malyshev <<a href="mailto:andrey.v.malyshev@gmail.com" target="_blank">andrey.v.malyshev@gmail.com</a>> schrieb am Di., 14. Feb. 2023, 15:40:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi Michael:<div>Thanks for the input, it is very useful for me as I had no idea about wmctrl. As far as I can understand though, wmctrl would change the window size on the local side, so if I connect to a desktop session it would be just rescaled, which is not always what I want. I want to change the resolution on the remote side so it coincides with the native resolution on the local one. Then I need xrandr on the remote. The combination of the two can actually do what I want: remove some blurring due to interpolation etc.</div><div>Regards,</div><div>Andrey</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Feb 13, 2023 at 8:44 PM Michael Ashley <<a href="mailto:m.ashley@unsw.edu.au" rel="noreferrer" target="_blank">m.ashley@unsw.edu.au</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi Andrey & Neal,<br>
<br>
Another command that might be helpful is wmctrl, from the man page:<br>
<br>
  wmctrl is a command that can be used to interact with an X Window manager that is compatible with the EWMH/NetWM specification.  wmctrl can query the window manager for information, and it can request that certain window management actions be taken.<br>
<br>
And here is something I use to resize and position an X2GO session on one monitor:<br>
<br>
  wmctrl -r X2GO -e 0,0,0,3768,2123<br>
<br>
Regards,<br>
Michael<br>
<br>
On Mon, Feb 13, 2023 at 02:11:37PM +0100, Andrey Malyshev wrote:<br>
> <br>
>    Hi Neal,<br>
>    Here how I do it:<br>
>    $cat  ~/bin/setdisplaymode<br>
>    #!/bin/bash<br>
>    #<br>
>    if [ -z $1 ]; then<br>
>            echo "Usage: $0 mode, e.g:"<br>
>            echo "$0 1920x1200"<br>
>            echo "$0 1680x1050"<br>
>            echo "$0 1280x1024"<br>
>            echo "$0 1280x960"<br>
>            exit -1<br>
>    fi<br>
>    MODE=$1<br>
>    # find a connected monitor<br>
>    #<br>
>    MONITOR="`xrandr --listmonitors | awk '/0:/ {print $4}'`"<br>
>    if [ ! -z $MONITOR ]; then<br>
>            echo "Setting $MODE mode on $MONITOR"<br>
>            # set the resolution<br>
>            xrandr --output $MONITOR --mode $MODE 2>&1 >/dev/null<br>
>    else<br>
>            # try to set the resolution using some standard monitor names<br>
>            echo "Trying to set $MODE mode..."<br>
>            xrandr --output DVI-I-1 --mode $MODE 2>&1 >/dev/null<br>
>            xrandr --output DVI-D-0 --mode $MODE 2>&1 >/dev/null<br>
>    fi<br>
>    On Mon, Feb 13, 2023 at 1:55 PM Neal Becker <[2]<a href="mailto:ndbecker2@gmail.com" rel="noreferrer" target="_blank">ndbecker2@gmail.com</a>><br>
>    wrote:<br>
> <br>
>    Do you connect to a running x2go session using screens with different<br>
>    resolutions?<br>
>    Let's say I started an x2go session (xfce) from my laptop, which<br>
>    happens to be 1920x1600.  Later I connect to that same session, this<br>
>    time using a monitor with say 3840x2160.  Now I need to resize<br>
>    everything.  Going the other way is even worse.<br>
>    How do you handle this?<br>
>    Thanks,<br>
>    Neal<br>
-- <br>
Professor Michael Ashley                          School of Physics <br>
University of New South Wales     <a href="http://www.phys.unsw.edu.au/~mcba" rel="noreferrer noreferrer" target="_blank">http://www.phys.unsw.edu.au/~mcba</a><br>
</blockquote></div>
_______________________________________________<br>
x2go-user mailing list<br>
<a href="mailto:x2go-user@lists.x2go.org" rel="noreferrer" target="_blank">x2go-user@lists.x2go.org</a><br>
<a href="https://lists.x2go.org/listinfo/x2go-user" rel="noreferrer noreferrer" target="_blank">https://lists.x2go.org/listinfo/x2go-user</a><br>
</blockquote></div>
_______________________________________________<br>
x2go-user mailing list<br>
<a href="mailto:x2go-user@lists.x2go.org" target="_blank">x2go-user@lists.x2go.org</a><br>
<a href="https://lists.x2go.org/listinfo/x2go-user" rel="noreferrer" target="_blank">https://lists.x2go.org/listinfo/x2go-user</a><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><i>Those who don't understand recursion are doomed to repeat it</i></div></div>