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"