diff options
Diffstat (limited to 'users/ryan/modules/simple-bar/simple-bar-source/lib/components/data/battery.jsx')
| -rwxr-xr-x | users/ryan/modules/simple-bar/simple-bar-source/lib/components/data/battery.jsx | 4 |
1 files changed, 2 insertions, 2 deletions
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(() => { | |||
| 68 | `pmset -g batt | head -1 | grep -q 'AC Power' && echo 'AC' || echo 'Batt'`, | 68 | `pmset -g batt | head -1 | grep -q 'AC Power' && echo 'AC' || echo 'Batt'`, |
| 69 | refresh, | 69 | refresh, |
| 70 | ), | 70 | ), |
| 71 | Uebersicht.run(`pgrep caffeinate -d`), | 71 | Uebersicht.run(`pgrep caffeinate`), |
| 72 | Utils.cachedRun( | 72 | Utils.cachedRun( |
| 73 | `pmset -g | awk '/lowpowermode|powermode/ {print $2; exit}'`, | 73 | `pmset -g | awk '/lowpowermode|powermode/ {print $2; exit}'`, |
| 74 | refresh, | 74 | refresh, |
| @@ -172,7 +172,7 @@ function getTransform(value) { | |||
| 172 | */ | 172 | */ |
| 173 | async function toggleCaffeinate(system, caffeinate, option, pushMissive) { | 173 | async function toggleCaffeinate(system, caffeinate, option, pushMissive) { |
| 174 | const command = | 174 | const command = |
| 175 | system === "x86_64" ? "caffeinate" : "arch -arch arm64 caffeinate"; | 175 | system === "x86_64" ? "caffeinate -d" : "arch -arch arm64 caffeinate -d"; |
| 176 | if (caffeinate.length === 0) { | 176 | if (caffeinate.length === 0) { |
| 177 | Uebersicht.run(`${command} ${option} &`); | 177 | Uebersicht.run(`${command} ${option} &`); |
| 178 | Utils.notification("Enabling caffeinate...", pushMissive); | 178 | Utils.notification("Enabling caffeinate...", pushMissive); |
