diff --git a/Multihead-setup-with-X11-backend.md b/Multihead-setup-with-X11-backend.md index 6e8ab01..c51af16 100644 --- a/Multihead-setup-with-X11-backend.md +++ b/Multihead-setup-with-X11-backend.md @@ -14,7 +14,8 @@ This guide explains how to set up sway running under X11 (e.g. started from an X I have created a script to automate steps 3 and 4 for two outputs with a width of 1920 pixels: -`#!/bin/bash +``` +#!/bin/bash windows=$(DISPLAY=:0 xdotool search --name '') win1='' win2='' @@ -30,4 +31,5 @@ do fi done DISPLAY=:0 xdotool windowmove $win1 1920 0 -DISPLAY=:0 xdotool windowmove $win2 0 0` \ No newline at end of file +DISPLAY=:0 xdotool windowmove $win2 0 0 +``` \ No newline at end of file