Jump to content
Benzi

Battery - view summary stats about your laptop battery

Recommended Posts

Opening Google search is just the "fallback" search, which means that the workflow failed to produce any usable results for Alfred.

 

This happened to me as well at some point with some upgrade. To fix it, just open the file battery.sh in the workflow and, around line 81, change

    <title>$TEMPERATURE° C</title>
	<subtitle>Temperature</subtitle>
	<icon>temp.png</icon>
  </item>

to

    <title>${TEMPERATURE}° C</title>
	<subtitle>Temperature</subtitle>
	<icon>temp.png</icon>
  </item>

So, probably some Yosemite upgrade changed a version of Bash, and that version of Bash chokes when the degree symbol is next to a variable.

Thanks, it works for me.

I'm still on OsX Maverick and add the problem with Alfred V3ß.

Share this post


Link to post

Still works in 2017! Running it on Alfred v3.3 (MacOS 10.12.3 Sierra). Thanks for this great workflow! Now I can remove my battery indicator at the top of MacOS' menu bar to reduce clutter.

Share this post


Link to post
On 4/13/2017 at 2:39 AM, pavel said:

Download link is broken, can anyone reupload workflow?

 

 I have updated the download link. Can you try now?

Share this post


Link to post
Posted (edited)
8 hours ago, RabbitJazz said:

The battery % is inaccurate for me. Anyone knows how to sort this fix? (it's about 6% lower than what the os presents.

 

Please, post the output of ioreg -l -n AppleSmartBattery -r and the battery level displayed on your menu bar at the time of that output.

Edited by xilopaint

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...