diff options
author | aszlig <aszlig@redmoonstudios.org> | 2014-08-05 03:16:28 +0200 |
---|---|---|
committer | aszlig <aszlig@redmoonstudios.org> | 2014-08-05 03:16:28 +0200 |
commit | 9b20aaea9fd57bee89d114a351dabfa6bdff2287 (patch) | |
tree | e754c4415b8278dc010114e6216ce36f3bde95c4 /modules/i3/default.nix | |
parent | 8a236635f79d10e123392e307d3acb8911feb5a0 (diff) |
i3: Really reverse the output of the bars.
If using config.vuizvui.i3.reverseHeads we so far only reversed the position in the config file, but actually forgot about reversing the real outputs. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
Diffstat (limited to 'modules/i3/default.nix')
-rw-r--r-- | modules/i3/default.nix | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/modules/i3/default.nix b/modules/i3/default.nix index 68295270..47de6c21 100644 --- a/modules/i3/default.nix +++ b/modules/i3/default.nix @@ -53,12 +53,13 @@ let ''; barConfig = let + barHeads = headModifier xrandrHeads; bars = if headCount == 0 then mkBar null conky.single - else if headCount == 1 then mkBar (head xrandrHeads) conky.single - else let inner = take (length xrandrHeads - 2) (tail xrandrHeads); - in mkBar (head xrandrHeads) conky.left + else if headCount == 1 then mkBar (head barHeads) conky.single + else let inner = take (length barHeads - 2) (tail barHeads); + in mkBar (head barHeads) conky.left ++ map (flip mkBar null) inner - ++ mkBar (last xrandrHeads) conky.right; + ++ mkBar (last barHeads) conky.right; in concatStrings (headModifier bars); in |