diff options
Diffstat (limited to 'modules/i3/default.nix')
-rw-r--r-- | modules/i3/default.nix | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/modules/i3/default.nix b/modules/i3/default.nix index 7a47b1c9..4ac730ed 100644 --- a/modules/i3/default.nix +++ b/modules/i3/default.nix @@ -14,7 +14,8 @@ let headCount = length config.services.xserver.xrandrHeads; wsPerHead = wsCount / headCount; excessWs = wsCount - (headCount * wsPerHead); - getHeadAt = elemAt config.services.xserver.xrandrHeads; + headModifier = if config.aszlig.i3.reverseHeads then reverseList else id; + getHeadAt = elemAt (headModifier config.services.xserver.xrandrHeads); mkDefaultWorkspace = number: numberSymbol: { name = toString number; @@ -46,6 +47,16 @@ in monitor and 6 to 10 on the right. ''; }; + + reverseHeads = mkOption { + type = types.bool; + default = false; + description = '' + Reverse the order of the heads, so if enabled and you have two heads, + you'll end up having workspaces 1 to 5 on the right head and 6 to 10 on + the left head. + ''; + }; }; config.aszlig.i3.workspaces = defaultWorkspaces; |