From 7671890fef941873681b746d741dddd86077811b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Av=C3=A9?= Date: Sat, 6 Jul 2024 00:36:05 +0200 Subject: [PATCH] Sat 6 Jul 00:36:05 CEST 2024 --- home/ags/files/config.js | 5 +++-- home/hyprland/default.nix | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/home/ags/files/config.js b/home/ags/files/config.js index 6679680..2ae78ac 100644 --- a/home/ags/files/config.js +++ b/home/ags/files/config.js @@ -175,10 +175,11 @@ function Right() { vexpand: false, size: 16, icon: "speedometer", + css: "margin-right: 0.5em;", }), Widget.Label({ label: Variable("", { - poll: [2000, 'top -b -n 1', out => " " + out.split('\n') + poll: [2000, 'top -b -n 1', out => out.split('\n') .find(line => line.includes('Cpu(s)')) .split(/\s+/)[1] .replace(',', '.').toString() + "%"], @@ -187,7 +188,7 @@ function Right() { ]}), Widget.Label({ class_name: "item blue", - label: Variable("", { poll: [5000, 'bash -c "cat /proc/cpuinfo | grep \\"MHz\\" | awk \'{print \\$4}\' | sort -n | tail -1 | awk \'{printf \\"%.2f\\", \\"GHz\\", \\$1/1000}\'"'] }).bind(), + label: Variable("", { poll: [5000, 'bash -c "cat /proc/cpuinfo | grep \\"MHz\\" | awk \'{print \\$4}\' | sort -n | tail -1 | awk \'{printf \\"%.2fGHz\\", \\$1/1000}\'"'] }).bind(), }), Widget.Label({ class_name: "item", diff --git a/home/hyprland/default.nix b/home/hyprland/default.nix index d3f1740..6fb1d37 100644 --- a/home/hyprland/default.nix +++ b/home/hyprland/default.nix @@ -100,7 +100,7 @@ in { "$mainMod" = "SUPER"; exec-once = [ "hyprpaper" - "${ags}" + "ags" "${wl-paste} --type text --watch cliphist store" "${wl-paste} --type image --watch cliphist store" "${pkgs.mate.mate-polkit}/bin/polkit-mate"