forked from Shinonome/dots-hyprland
ags: sync
This commit is contained in:
@@ -144,7 +144,6 @@ export default () => {
|
|||||||
})
|
})
|
||||||
const systemResources = BarGroup({
|
const systemResources = BarGroup({
|
||||||
child: Box({
|
child: Box({
|
||||||
className: 'spacing-h-10',
|
|
||||||
children: [
|
children: [
|
||||||
BarResource('RAM Usage', 'memory', `free | awk '/^Mem/ {printf("%.2f\\n", ($3/$2) * 100)}'`),
|
BarResource('RAM Usage', 'memory', `free | awk '/^Mem/ {printf("%.2f\\n", ($3/$2) * 100)}'`),
|
||||||
Revealer({
|
Revealer({
|
||||||
@@ -152,7 +151,7 @@ export default () => {
|
|||||||
transition: 'slide_left',
|
transition: 'slide_left',
|
||||||
transitionDuration: 200,
|
transitionDuration: 200,
|
||||||
child: Box({
|
child: Box({
|
||||||
className: 'spacing-h-10',
|
className: 'spacing-h-10 margin-left-10',
|
||||||
children: [
|
children: [
|
||||||
BarResource('Swap Usage', 'swap_horiz', `free | awk '/^Swap/ {if ($2 > 0) printf("%.2f\\n", ($3/$2) * 100); else print "0";}'`),
|
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}'`),
|
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++) {
|
for (let i = 0; i < children.length; i++) {
|
||||||
const child = children[i];
|
const child = children[i];
|
||||||
child.destroy();
|
child.destroy();
|
||||||
|
child = null;
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user