index.md (1662B)
1 Multi-monitor setup 2 =================== 3 If configured to use Xinerama libraries in `config.mk`, dwm can automatically 4 detect configured screen outputs (monitor, overhead projector, etc.) and their 5 resolutions and draw the windows in the output area accordingly. 6 7 Configuring monitors 8 -------------------- 9 One of the easiest ways to configure screen outputs is via the *RandR* X server 10 extension using the `xrandr` tool. Without arguments it will list the current 11 configuration of screen outputs. 12 13 xrandr 14 15 For each connected output the supported resolution modes will be printed. 16 17 Mirroring two outputs 18 --------------------- 19 dwm will assume that two outputs should display identical windows and tags if: 20 21 * one of them is configured to display in the same area as the other 22 (`--same-as` switch) 23 * they have the same resolution 24 25 After connecting a monitor, this could be an example of a mirroring setup 26 27 xrandr --output VGA1 --auto --same-as LVDS1 --mode 1024x768 28 xrandr --output LVDS1 --mode 1024x768 29 30 The `--auto` switch enables the output after it was connected. 31 32 Two independent outputs 33 ----------------------- 34 If two screen outputs have different resolutions, dwm assumes that they should 35 display different windows and tag sets. It may therefore be necessary to 36 instruct the X server via the `xrandr` tool to draw the outputs in different 37 areas of the screen, as it may default to `--same-as` and the areas would 38 overlap. 39 40 After connecting a monitor, this could be an example of such a setup 41 42 xrandr --output VGA1 --auto --right-of LVDS1 43 44 In this case the `--auto` switch enables the output after connecting and also 45 sets its preferred resolution mode.