Fri 5 Jul 23:07:29 CEST 2024

This commit is contained in:
Thomas Avé 2024-07-05 23:07:29 +02:00
parent 0fa57729fc
commit b5e139205c
2 changed files with 4 additions and 5 deletions

View File

@ -18,7 +18,7 @@
recursive = true; recursive = true;
}; };
home.file."${config.xdg.configHome}/ags/settings.json".text = pkgs.lib.mkDefault (builtins.toJSON { 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 = '' home.file."${config.xdg.configHome}/ags/style.css".text = ''
window.bar { window.bar {
@ -33,7 +33,7 @@
} }
.systray { .systray {
margin-left: 0.4em; margin-left: 0.6em;
} }
.window-box { .window-box {

View File

@ -148,10 +148,9 @@ function Right() {
Widget.Label({ Widget.Label({
class_name: "item", class_name: "item",
label: Variable("", { label: Variable("", {
poll: [2000, 'free', out => (divide(out.split('\n') poll: [2000, 'free', out => (out.split('\n')
.find(line => line.includes('Mem:')) .find(line => line.includes('Mem:'))
.split(/\s+/) .split(/\s+/)[2] / 1000000).toFixed(2) + "GB"],
.splice(1, 2)) * 100).toFixed(2) + "GB"],
}).bind(), }).bind(),
}), }),
Widget.Label({ Widget.Label({