From b32fec2c63d565f9892a540138c9abda199ab8ad Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Mon, 5 Apr 2021 15:58:15 +0000 Subject: [PATCH] home: wm: i3bar: add gammastep block if enabled --- home/wm/i3bar.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/home/wm/i3bar.nix b/home/wm/i3bar.nix index 80cc252..9d7a4f9 100644 --- a/home/wm/i3bar.nix +++ b/home/wm/i3bar.nix @@ -14,7 +14,7 @@ in bars = { top = { - blocks = [ + blocks = builtins.filter (attr: attr != { }) [ { block = "music"; buttons = [ "prev" "play" "next" ]; @@ -29,6 +29,12 @@ in block = "net"; format = "{ssid} {ip} {signal_strength}"; } + (lib.optionalAttrs (config.my.home.gammastep.enable) { + block = "hueshift"; + hue_shifter = "gammastep"; + step = 100; + click_temp = config.my.home.gammastep.temperature.day; + }) { block = "battery"; format = "{percentage}% ({time})";