Sat 6 Jul 00:36:05 CEST 2024

This commit is contained in:
Thomas Avé 2024-07-06 00:36:05 +02:00
parent df6f7e5686
commit 7671890fef
2 changed files with 4 additions and 3 deletions

View File

@ -175,10 +175,11 @@ function Right() {
vexpand: false, vexpand: false,
size: 16, size: 16,
icon: "speedometer", icon: "speedometer",
css: "margin-right: 0.5em;",
}), }),
Widget.Label({ Widget.Label({
label: Variable("", { 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)')) .find(line => line.includes('Cpu(s)'))
.split(/\s+/)[1] .split(/\s+/)[1]
.replace(',', '.').toString() + "%"], .replace(',', '.').toString() + "%"],
@ -187,7 +188,7 @@ function Right() {
]}), ]}),
Widget.Label({ Widget.Label({
class_name: "item blue", 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({ Widget.Label({
class_name: "item", class_name: "item",

View File

@ -100,7 +100,7 @@ in {
"$mainMod" = "SUPER"; "$mainMod" = "SUPER";
exec-once = [ exec-once = [
"hyprpaper" "hyprpaper"
"${ags}" "ags"
"${wl-paste} --type text --watch cliphist store" "${wl-paste} --type text --watch cliphist store"
"${wl-paste} --type image --watch cliphist store" "${wl-paste} --type image --watch cliphist store"
"${pkgs.mate.mate-polkit}/bin/polkit-mate" "${pkgs.mate.mate-polkit}/bin/polkit-mate"