From 7454f42b673cf30d90fe949241ecd163d1724a99 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lucas=20Treffenst=C3=A4dt?= Date: Mon, 14 Jan 2019 13:15:30 +0100 Subject: [PATCH] Updated Multihead setup with X11 backend (markdown) --- Multihead-setup-with-X11-backend.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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