【问题标题】:Use xming / vcxsrv / xwin to setup two screens for i3wm [closed]使用 xming / vcxsrv / xwin 为 i3wm 设置两个屏幕 [关闭]
【发布时间】:2017-05-17 09:06:59
【问题描述】:

我想在我的带有两个显示器的 Windows 10 Linux 子系统上使用 i3。

与:

vcxsrv.exe :1 -nodecoration -wgl  -multimonitors -screen 0 3840x1160

我可以创建一个横跨我的两台显示器的大窗口。此配置适用于 i3,但 i3 将其正确识别为单个屏幕,但缺点是有时跨两个显示器时窗口会被切成两半。

我想将 i3 与两个单独的屏幕一起使用,如下所示:

vcxsrv.exe :1 -nodecoration -wgl -screen 0 @1 -screen 1 @2

但是,我可以在屏幕 0 (export DISPLAY=:1) 或屏幕 1 (export DISPLAY=:1.1) 上运行 i3,但不能同时在两者上运行。

也许它与 xrandr 有关,因为它无法识别我的配置:

xrandr -q:

xrandr: Failed to get size of gamma for output default
Screen 1: minimum 0 x 0, current 1920 x 1160, maximum 32768 x 32768
default connected primary 1920x1160+0+0 0mm x 0mm
   1920x1160       0.0*

如何在 i3 中使用两个单独的屏幕?

【问题讨论】:

  • 认真的吗?那么有人可以将问题移至超级用户吗?
  • @HorstLemke 你能做到吗?

标签: x11 xrandr xming


【解决方案1】:

我一直在玩这个,虽然我还没有找到让 xrandr 识别多台显示器的解决方案,但我发现 i3 有一个未记录的配置选项,允许您在一个。在我的 i3 配置中,我添加了选项:

fake-outputs 1920x1080+0+0,1366x768+1920+0

这使得 i3 将 VcXsrv 提供的大型显示器视为 2 个逻辑显示器,并通过调整显示器尺寸的尺寸/偏移量,将显示器完美地放置在每台显示器上。

另外,这是我用来启动 VcXsrv 的命令:

vcxsrv.exe -screen 0 @2 -wgl -nodecoration +xinerama -screen 1 @1 -wgl -nodecoration +xinerama

屏幕切换的原因是因为当使用0 @11 @2 时,polybar 以较小的屏幕尺寸显示在较大的屏幕上。此开关以正确的尺寸将 polybar 放置在大屏幕(左侧)上。这可能不是每个人的设置。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-08-09
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-09-28
    相关资源
    最近更新 更多