From 9b20aaea9fd57bee89d114a351dabfa6bdff2287 Mon Sep 17 00:00:00 2001 From: aszlig Date: Tue, 5 Aug 2014 03:16:28 +0200 Subject: 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 --- modules/i3/default.nix | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'modules') 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 -- cgit 1.4.1