diff --git a/home/ags/default.nix b/home/ags/default.nix index 9ce26ed..572f67b 100644 --- a/home/ags/default.nix +++ b/home/ags/default.nix @@ -18,7 +18,7 @@ recursive = true; }; home.file."${config.xdg.configHome}/ags/settings.json".text = pkgs.lib.mkDefault (builtins.toJSON { - temperature-cmd = "bash -c 'sensors | grep Tctl | cut -c16-22'"; + temperature-cmd = "bash -c 'sensors | grep Package | cut -c17-23'"; }); home.file."${config.xdg.configHome}/ags/style.css".text = '' window.bar { @@ -33,7 +33,7 @@ } .systray { - margin-left: 0.4em; + margin-left: 0.6em; } .window-box { diff --git a/home/ags/files/config.js b/home/ags/files/config.js index e2de583..1923df8 100644 --- a/home/ags/files/config.js +++ b/home/ags/files/config.js @@ -148,10 +148,9 @@ function Right() { Widget.Label({ class_name: "item", label: Variable("", { - poll: [2000, 'free', out => (divide(out.split('\n') + poll: [2000, 'free', out => (out.split('\n') .find(line => line.includes('Mem:')) - .split(/\s+/) - .splice(1, 2)) * 100).toFixed(2) + "GB"], + .split(/\s+/)[2] / 1000000).toFixed(2) + "GB"], }).bind(), }), Widget.Label({