From b5e139205cba562c849470db44c9b0ba3abee7ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Av=C3=A9?= Date: Fri, 5 Jul 2024 23:07:29 +0200 Subject: [PATCH] Fri 5 Jul 23:07:29 CEST 2024 --- home/ags/default.nix | 4 ++-- home/ags/files/config.js | 5 ++--- 2 files changed, 4 insertions(+), 5 deletions(-) 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({