public wiki contents of
git clone git://
Log | Files | Refs (1662B)

      1 Multi-monitor setup
      2 ===================
      3 If configured to use Xinerama libraries in ``, 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.
      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.
     13 	xrandr
     15 For each connected output the supported resolution modes will be printed.
     17 Mirroring two outputs
     18 ---------------------
     19 dwm will assume that two outputs should display identical windows and tags if:
     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
     25 After connecting a monitor, this could be an example of a mirroring setup
     27 	xrandr --output VGA1 --auto --same-as LVDS1 --mode 1024x768
     28 	xrandr --output LVDS1 --mode 1024x768
     30 The `--auto` switch enables the output after it was connected.
     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.
     40 After connecting a monitor, this could be an example of such a setup
     42 	xrandr --output VGA1 --auto --right-of LVDS1
     44 In this case the `--auto` switch enables the output after connecting and also
     45 sets its preferred resolution mode.