<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi Yuriy,<br>
<br>
I have a similar setup on my ThinkPad, but I use three monitors.<br>
<br>
What I do first, is disable all outputs (I had other kind of
problems before):<br>
<br>
xrandr --output $left --off<br>
xrandr --output $right --off<br>
xrandr --output $primary --off<br>
xrandr --output $primary --auto<br>
xrandr --output $right --auto --left-of $primary<br>
xrandr --output $left --auto --left-of $right<br>
<br>
You press mod+shift+{w,e,r} to shift a window to another screen,
don't you?<br>
<br>
I copied and adapted this key bindings from the default config for a
different keyboard layout:<br>
<br>
-- mod-{i,a,e} %! Switch to physical/Xinerama screens 1, 2, or 3<br>
-- mod-shift-{i,a,e} %! Move client to screen 1, 2, or 3<br>
[ (mod ++ key, screenWorkspace sc >>= flip whenJust
(windows . f))<br>
| (key, sc) <- zip ["i", "a", "e"] [2, 0, 1] -- [0..] is
weired!<br>
-- now middle finger (a) is primary (laptop) monitor,<br>
-- pointer finger (e) is second (external) monitor<br>
, (f, mod) <- [(W.view, "M-"), (W.shift, "M-S-")]<br>
]<br>
<br>
My xrandr -q output looks similar to your's:<br>
<br>
Screen 0: minimum 8 x 8, current 5520 x 1080, maximum 32767 x 32767<br>
eDP1 connected 1920x1080+3600+0 (normal left inverted right x axis y
axis) 309mm x 173mm<br>
1920x1080 60.05*+<br>
1400x1050 59.98<br>
1600x900 60.00<br>
1280x1024 60.02<br>
1280x960 60.00<br>
1368x768 60.00<br>
1280x720 60.00<br>
1024x768 60.00<br>
1024x576 60.00<br>
960x540 60.00<br>
800x600 60.32 56.25<br>
864x486 60.00<br>
640x480 59.94<br>
720x405 60.00<br>
640x360 60.00<br>
DP1 disconnected (normal left inverted right x axis y axis)<br>
DP2 connected 1680x1050+1920+0 (normal left inverted right x axis y
axis) 474mm x 296mm<br>
1680x1050 59.88*+ 59.95<br>
1280x1024 75.02 60.02<br>
1440x900 74.98 59.89<br>
1280x960 60.00<br>
1152x864 75.00<br>
1024x768 75.08 60.00<br>
832x624 74.55<br>
800x600 75.00 60.32 56.25<br>
640x480 75.00 60.00<br>
720x400 70.08<br>
HDMI1 connected 1920x1080+0+0 (normal left inverted right x axis y
axis) 530mm x 300mm<br>
1920x1080 60.00*+<br>
1600x1200 60.00<br>
1680x1050 59.88<br>
1280x1024 60.02<br>
1440x900 59.90<br>
1280x960 60.00<br>
1280x800 59.91<br>
1024x768 60.00<br>
800x600 60.32 56.25<br>
640x480 60.00<br>
HDMI2 disconnected (normal left inverted right x axis y axis)<br>
VIRTUAL1 disconnected (normal left inverted right x axis y axis)<br>
<br>
<br>
Cheers, Jakob<br>
<br>
<div class="moz-cite-prefix">Am 06.06.2016 um 07:14 schrieb Yuriy
Halytskyy:<br>
</div>
<blockquote
cite="mid:CAK2xTqJ55kZ0No9JtbgBTpRFH6+9RFc9T7x53m4gvjeTYeEYjg@mail.gmail.com"
type="cite">
<div dir="ltr">I am trying to use xmonad on a laptop connected to
two monitors, via VGA and HDMI outputs. Laptop screen is
disabled and both external monitors configured using xrandr:<br>
<br>
xrandr --output LVDS1 --off<br>
xrandr --output HDMI-0 --right-of VGA1<br>
xrandr --output VGA1 --right-of LVDS1<br>
<br>
<br>
<br>
But mod+{w,e,r} does not work and the only way to have windows
on one of my screens is to move floating window. Xinerama shows
only right monitor:<br>
ghc -e "Graphics.X11.openDisplay [] >>=
Graphics.X11.Xinerama.getScreenInfo"<br>
<div>[Rectangle {rect_x = 1920, rect_y = 0, rect_width = 1920,
rect_height = 1200}]<br>
<br>
</div>
<div>Is it possible to somehow overwrite getScreenInfo for
xmonad or configure Xinerama propertly? <br>
</div>
<div><br>
nvidia-setting can only see one screen and one display.<br>
xrandr output shows one huge 3840 x 1200 display and all
screens:<br>
<br>
Screen 0: minimum 8 x 8, current 3840 x 1200, maximum 16384 x
16384<br>
LVDS-0 disconnected primary (normal left inverted right x axis
y axis)<br>
DP-0 disconnected (normal left inverted right x axis y axis)<br>
DP-1 disconnected (normal left inverted right x axis y axis)<br>
HDMI-0 connected 1920x1200+1920+0 (normal left inverted right
x axis y axis) 518mm x 324mm<br>
1920x1200 60.0*+<br>
1920x1080 60.0 <br>
1680x1050 60.0 <br>
1600x1200 60.0 <br>
1280x1024 60.0 <br>
1280x960 60.0 <br>
1024x768 60.0 <br>
800x600 60.3 <br>
640x480 59.9 <br>
DP-2 disconnected (normal left inverted right x axis y axis)<br>
DP-3 disconnected (normal left inverted right x axis y axis)<br>
LVDS1 connected<br>
1600x900 60.0 + 40.0 <br>
1440x900 59.9 <br>
1360x768 59.8 60.0 <br>
1152x864 60.0 <br>
1024x768 60.0 <br>
800x600 60.3 56.2 <br>
640x480 59.9 <br>
VGA1 connected 1920x1200+0+0 518mm x 324mm<br>
1920x1200 60.0*+<br>
1920x1080 60.0 <br>
1680x1050 60.0 <br>
1600x900 60.0 <br>
1280x1024 60.0 <br>
1440x900 59.9 <br>
1280x800 59.8 <br>
1280x720 60.0 <br>
1024x768 60.0 <br>
800x600 60.3 56.2 <br>
640x480 60.0 <br>
VIRTUAL1 disconnected<br>
1024x768 (0x2ce) 65.0MHz<br>
h: width 1024 start 1048 end 1184 total 1344 skew
0 clock 48.4KHz<br>
v: height 768 start 771 end 777 total
806 clock 60.0Hz<br>
800x600 (0x2cf) 40.0MHz<br>
h: width 800 start 840 end 968 total 1056 skew
0 clock 37.9KHz<br>
v: height 600 start 601 end 605 total
628 clock 60.3Hz<br>
640x480 (0x2d0) 25.2MHz<br>
h: width 640 start 656 end 752 total 800 skew
0 clock 31.5KHz<br>
v: height 480 start 490 end 492 total
525 clock 59.9Hz<br>
1920x1200 (0x2c8) 154.0MHz<br>
h: width 1920 start 1968 end 2000 total 2080 skew
0 clock 74.0KHz<br>
v: height 1200 start 1203 end 1209 total
1235 clock 60.0Hz<br>
1680x1050 (0x2ca) 146.2MHz<br>
h: width 1680 start 1784 end 1960 total 2240 skew
0 clock 65.3KHz<br>
v: height 1050 start 1053 end 1059 total
1089 clock 60.0Hz<br>
1280x1024 (0x2cc) 108.0MHz<br>
h: width 1280 start 1328 end 1440 total 1688 skew
0 clock 64.0KHz<br>
v: height 1024 start 1025 end 1028 total
1066 clock 60.0Hz<br>
<br>
<br>
</div>
<div>Cheers,<br>
</div>
<div>Yuriy<br>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
xmonad mailing list
<a class="moz-txt-link-abbreviated" href="mailto:xmonad@haskell.org">xmonad@haskell.org</a>
<a class="moz-txt-link-freetext" href="http://mail.haskell.org/cgi-bin/mailman/listinfo/xmonad">http://mail.haskell.org/cgi-bin/mailman/listinfo/xmonad</a>
</pre>
</blockquote>
<br>
</body>
</html>