Improve CPU usage for simple-bar and disable linux-builder due to issue for now

27117202739f… · Ryan Schanzenbacher ·

parent 36e5025868cf… diff

Changed files

diff --git a/hosts/RyanMac/configuration.nix b/hosts/RyanMac/configuration.nix
index 19ffeec..f72c6aa 100644
--- a/hosts/RyanMac/configuration.nix
+++ b/hosts/RyanMac/configuration.nix
@@ -127,7 +127,7 @@ in {
nix = {
enable = true;
linux-builder = {
- enable = true;
+ enable = false; # mkfs.erofs seems to be looping
ephemeral = true;
};
settings = {
diff --git a/users/ryan/modules/simple-bar/simple-bar-source/lib/components/data/battery.jsx b/users/ryan/modules/simple-bar/simple-bar-source/lib/components/data/battery.jsx
index bfef8f0..a2abffd 100755
--- a/users/ryan/modules/simple-bar/simple-bar-source/lib/components/data/battery.jsx
+++ b/users/ryan/modules/simple-bar/simple-bar-source/lib/components/data/battery.jsx
@@ -144,7 +144,7 @@ export const Widget = React.memo(() => {
<Icons.Coffee className="battery__caffeinate-icon" />
</SuspenseIcon>
)}
- {percentage}%
+ {`${percentage}%`}
</DataWidget.Widget>
);
});
diff --git a/users/ryan/modules/simple-bar/simple-bar-source/lib/components/data/memory.jsx b/users/ryan/modules/simple-bar/simple-bar-source/lib/components/data/memory.jsx
index e4361db..f5dce96 100755
--- a/users/ryan/modules/simple-bar/simple-bar-source/lib/components/data/memory.jsx
+++ b/users/ryan/modules/simple-bar/simple-bar-source/lib/components/data/memory.jsx
@@ -113,7 +113,7 @@ export const Widget = () => {
Icon={showIcon ? Pie : null}
onClick={onClick}
>
- <div className="memory__content">{used}%</div>
+ <div className="memory__content">{`${used}%`}</div>
</DataWidget.Widget>
);
};
diff --git a/users/ryan/modules/simple-bar/simplebarrc b/users/ryan/modules/simple-bar/simplebarrc
index 1494208..7e77252 100644
--- a/users/ryan/modules/simple-bar/simplebarrc
+++ b/users/ryan/modules/simple-bar/simplebarrc
@@ -9,7 +9,7 @@
"bottomBar": false,
"sideDecoration": false,
"inlineSpacesOptions": false,
- "disableAnimations": false,
+ "disableAnimations": true,
"spacesBackgroundColorAsForeground": false,
"widgetsBackgroundColorAsForeground": false,
"widgetMaxWidth": "160px",