ags: sync

This commit is contained in:
end-4
2024-02-03 12:39:39 +07:00
parent df8a0a2bfc
commit c08d297baa
2 changed files with 2 additions and 2 deletions
+1 -2
View File
@@ -144,7 +144,6 @@ export default () => {
})
const systemResources = BarGroup({
child: Box({
className: 'spacing-h-10',
children: [
BarResource('RAM Usage', 'memory', `free | awk '/^Mem/ {printf("%.2f\\n", ($3/$2) * 100)}'`),
Revealer({
@@ -152,7 +151,7 @@ export default () => {
transition: 'slide_left',
transitionDuration: 200,
child: Box({
className: 'spacing-h-10',
className: 'spacing-h-10 margin-left-10',
children: [
BarResource('Swap Usage', 'swap_horiz', `free | awk '/^Swap/ {if ($2 > 0) printf("%.2f\\n", ($3/$2) * 100); else print "0";}'`),
BarResource('CPU Usage', 'settings_motion_mode', `top -bn1 | grep Cpu | awk '{print $2}'`),
@@ -365,6 +365,7 @@ export default () => MarginRevealer({
for (let i = 0; i < children.length; i++) {
const child = children[i];
child.destroy();
child = null;
}
return;
}