Hi Michael: 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. Regards, Andrey
On Mon, Feb 13, 2023 at 8:44 PM Michael Ashley <[email protected]> wrote: > Hi Andrey & Neal, > > Another command that might be helpful is wmctrl, from the man page: > > 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. > > And here is something I use to resize and position an X2GO session on one > monitor: > > wmctrl -r X2GO -e 0,0,0,3768,2123 > > Regards, > Michael > > On Mon, Feb 13, 2023 at 02:11:37PM +0100, Andrey Malyshev wrote: > > > > Hi Neal, > > Here how I do it: > > $cat ~/bin/setdisplaymode > > #!/bin/bash > > # > > if [ -z $1 ]; then > > echo "Usage: $0 mode, e.g:" > > echo "$0 1920x1200" > > echo "$0 1680x1050" > > echo "$0 1280x1024" > > echo "$0 1280x960" > > exit -1 > > fi > > MODE=$1 > > # find a connected monitor > > # > > MONITOR="`xrandr --listmonitors | awk '/0:/ {print $4}'`" > > if [ ! -z $MONITOR ]; then > > echo "Setting $MODE mode on $MONITOR" > > # set the resolution > > xrandr --output $MONITOR --mode $MODE 2>&1 >/dev/null > > else > > # try to set the resolution using some standard monitor names > > echo "Trying to set $MODE mode..." > > xrandr --output DVI-I-1 --mode $MODE 2>&1 >/dev/null > > xrandr --output DVI-D-0 --mode $MODE 2>&1 >/dev/null > > fi > > On Mon, Feb 13, 2023 at 1:55 PM Neal Becker <[2][email protected]> > > wrote: > > > > Do you connect to a running x2go session using screens with different > > resolutions? > > Let's say I started an x2go session (xfce) from my laptop, which > > happens to be 1920x1600. Later I connect to that same session, this > > time using a monitor with say 3840x2160. Now I need to resize > > everything. Going the other way is even worse. > > How do you handle this? > > Thanks, > > Neal > -- > Professor Michael Ashley School of Physics > University of New South Wales http://www.phys.unsw.edu.au/~mcba >
_______________________________________________ x2go-user mailing list [email protected] https://lists.x2go.org/listinfo/x2go-user
