Hey Allen, thanks for the reply.
I tried the command and this was the output:
Code:
# xrandr
xrandr: Failed to get size of gamma for output default
Screen 0: minimum 320 x 175, current 1680 x 1050, maximum 1680 x 1050
default connected 1680x1050+0+0 0mm x 0mm
1680x1050 50.0*
1440x900 51.0 52.0
1400x1050 53.0 54.0
1360x765 55.0
1280x1024 56.0 57.0 58.0
1280x960 59.0 60.0
1280x720 61.0
1152x864 62.0
1024x768 63.0 64.0 65.0 66.0 67.0 68.0
960x720 69.0 70.0
928x696 71.0 72.0
896x672 73.0 74.0
832x624 75.0
800x600 76.0 77.0 78.0 79.0 80.0 81.0 82.0 83.0 84.0 85.0
720x400 86.0
700x525 87.0 88.0
640x512 89.0 90.0 91.0
640x480 92.0 93.0 94.0 95.0 96.0 97.0 98.0 99.0
640x400 100.0
640x350 101.0
576x432 102.0
512x384 103.0 104.0 105.0 106.0 107.0
416x312 108.0
400x300 109.0 110.0 111.0 112.0 113.0
360x200 114.0
320x240 115.0 116.0 117.0 118.0
320x200 119.0
320x175 120.0
Not sure what all that is?
I came across this command below which does display the correct stuff, but I have to click the window that I want to display the data for.
Code:
# xwininfo
xwininfo: Please select the window about which you
would like information by clicking the
mouse in that window.
xwininfo: Window id: 0x1e04618 "mmartin@mmartin.paoli.jwpepper.local:/"
Absolute upper-left X: 359
Absolute upper-left Y: 161
Relative upper-left X: 0
Relative upper-left Y: 0
Width: 1081
Height: 705
Depth: 32
Visual: 0x74
Visual Class: TrueColor
Border width: 0
Class: InputOutput
Colormap: 0x1e00003 (not installed)
Bit Gravity State: NorthWestGravity
Window Gravity State: NorthWestGravity
Backing Store State: NotUseful
Save Under State: no
Map State: IsViewable
Override Redirect State: no
Corners: +359+161 -240+161 -240-184 +359-184
-geometry 133x40+357+132
By default, when you run the command the mouse then turns into a "plus" looking sign, and it tells you to select the window that you want to display.
There are 2 options that are to use a "name" or "id" instead of using the mouse. Do you know if there is a default "name" or "id" for the current window I am in? Or is there a way to get either of those? I ask because my goal is to do this programmatically, without any human interaction (so no one will be able to use the mouse to select the window).
Thanks,
Matt