hyi*_*tiz 5 kde multiple-monitors xorg xrandr i3-window-manager
我可以在工作时使用外部物理戴尔显示器,通过 VGA 端口将其连接到我的 ThinkPad 笔记本电脑。我已经安装了 Debian 测试以及 KDE5.5 和 i3wm。请参阅下面的详细信息。
情况:我将在家里使用单显示器(笔记本电脑),而我想在工作中使用双显示器设置。既XRandR
和KDE现在使我两个物理显示器(笔记本电脑和通过VGA连接戴尔监视器)连接成一个单一的大扩展的x屏幕,这样我可以物理监视器的显示状态之间移动窗口和鼠标。
问题:但是,我想将每个物理显示器的显示动态导出为单独的 x 屏幕,xrandr
如果可以的话最好使用。动态,我的意思是我可以随时热插拔扩展显示器,根据是否连接了扩展显示器,将有 1 个或 2 个 x-screens。我可以在连接两个物理显示器时禁用其中一个。
XRandR 几乎完成了上述所有工作;但是,它仅导出单个 x 屏幕。我想要 2 个 x 屏幕。
$ xrandr
Screen 0: minimum 320 x 200, current 2416 x 1680, maximum 8192 x 8192
VGA-0 connected 1050x1680+0+0 left (normal left inverted right x axis y axis) 474mm x 296mm
1680x1050 59.95*+
1280x1024 75.02 60.02
1152x864 75.00
1024x768 75.08 60.00
800x600 75.00 60.32
640x480 75.00 60.00
720x400 70.08
HDMI-0 disconnected (normal left inverted right x axis y axis)
LVDS connected primary 1366x768+1050+0 (normal left inverted right x axis y axis) 345mm x 194mm
1366x768 59.64*+ 50.00
1280x720 59.86
1152x768 59.78
1024x768 59.92
800x600 59.86
848x480 59.66
720x480 59.71
640x480 59.38
Run Code Online (Sandbox Code Playgroud)
所以,我想要一个这样的输出,而不是我在上面看到的,最好在xorg.conf
以下配置最少或没有配置:
$ xrandr
Screen 0: minimum 320 x 200, current 1050 x 1680, maximum 8192 x 8192
VGA-0 connected 1050x1680+0+0 left (normal left inverted right x axis y axis) 474mm x 296mm
1680x1050 59.95*+
1280x1024 75.02 60.02
1152x864 75.00
1024x768 75.08 60.00
800x600 75.00 60.32
640x480 75.00 60.00
720x400 70.08
HDMI-0 disconnected (normal left inverted right x axis y axis)
Screen 1: minimum 320 x 200, current 1366 x 768, maximum 8192 x 8192
LVDS connected primary 1366x768+1050+0 (normal left inverted right x axis y axis) 345mm x 194mm
1366x768 59.64*+ 50.00
1280x720 59.86
1152x768 59.78
1024x768 59.92
800x600 59.86
848x480 59.66
720x480 59.71
640x480 59.38
Run Code Online (Sandbox Code Playgroud)
请注意,在这种情况下,我会$DISPLAY
的0
和1
。