about summary refs log tree commit diff
path: root/common.nix
diff options
context:
space:
mode:
authoraszlig <aszlig@redmoonstudios.org>2013-08-15 13:48:30 +0200
committeraszlig <aszlig@redmoonstudios.org>2013-08-15 13:52:43 +0200
commitcb282ab83c386b6785bd8071b0a79fdb01907894 (patch)
tree39f85c1f08c945309c65067b0a867e36f74267a6 /common.nix
parent876ff7dae6dee333d510d3af46b587787f5df3dc (diff)
i3: Swap heads for workspaces on dnyarri.
This is because of the somewhat weird Synergy configuration, which I did because
it couldn't map the heads correctly to the configured layout. I haven't checked
whether this still is the case, but until that this workaround will do it.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
Diffstat (limited to 'common.nix')
-rw-r--r--common.nix7
1 files changed, 7 insertions, 0 deletions
diff --git a/common.nix b/common.nix
index 08cf1530..645adb8f 100644
--- a/common.nix
+++ b/common.nix
@@ -138,6 +138,13 @@
             TEXT
           '';
         } // (let
+          # Workaround for Synergy: we need to have polarizing heads.
+          leftHead = head config.services.xserver.xrandrHeads;
+          rightHead = last config.services.xserver.xrandrHeads;
+        in if config.networking.hostName == "mmrnmhrm"
+           then { inherit leftHead rightHead; }
+           else { leftHead = rightHead; rightHead = leftHead; }
+        ) // (let
           wsConfig = if config.networking.hostName == "mmrnmhrm"
                      then [ "XMPP" null "chromium" null null
                             null   null null       null null ]