From 8c57a511a35702ddf354f3cb52e04228a36bee82 Mon Sep 17 00:00:00 2001
From: Ryan Schanzenbacher <ryan@rschanz.org>
Date: Thu, 9 Jul 2026 22:38:13 -0400
Subject: fix simplebar bugs

---
 .../simple-bar/simple-bar-source/lib/components/data/battery.jsx      | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'users/ryan/modules/simple-bar/simple-bar-source/lib/components/data/battery.jsx')

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 1f08af6..bfef8f0 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
@@ -68,7 +68,7 @@ export const Widget = React.memo(() => {
           `pmset -g batt | head -1 | grep -q 'AC Power' && echo 'AC' || echo 'Batt'`,
           refresh,
         ),
-        Uebersicht.run(`pgrep caffeinate -d`),
+        Uebersicht.run(`pgrep caffeinate`),
         Utils.cachedRun(
           `pmset -g | awk '/lowpowermode|powermode/ {print $2; exit}'`,
           refresh,
@@ -172,7 +172,7 @@ function getTransform(value) {
  */
 async function toggleCaffeinate(system, caffeinate, option, pushMissive) {
   const command =
-    system === "x86_64" ? "caffeinate" : "arch -arch arm64 caffeinate";
+    system === "x86_64" ? "caffeinate -d" : "arch -arch arm64 caffeinate -d";
   if (caffeinate.length === 0) {
     Uebersicht.run(`${command} ${option} &`);
     Utils.notification("Enabling caffeinate...", pushMissive);
-- 
cgit v1.3

