Polybar: better temperature

This commit is contained in:
Filippo Berto 2023-07-12 12:49:40 +01:00
parent 8122b35325
commit fe488faef3
No known key found for this signature in database
GPG key ID: FE98AE5EC52B1056

View file

@ -1,4 +1,4 @@
{ config, pkgs, lib, ... }:
{ nixosConfig, config, pkgs, lib, ... }:
with lib;
let
inherit (pkgs.rice) colorPalette opacity;
@ -280,7 +280,7 @@ in
warn = "%temperature-c%";
};
ramp.text = [ "" "" "" "" "" ];
thermal.zone = "0";
thermal.zone = if nixosConfig.networking.hostName == "odin" then 8 else 0;
type = "internal/temperature";
warn.temperature = "90";
};