home: wm: i3bar: add gammastep block if enabled

This commit is contained in:
Bruno BELANYI 2021-04-05 15:58:15 +00:00
parent f608bcd9f9
commit 44c66ab729

View file

@ -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})";