lihaoyun6 / AirBattery

Get the battery usage of all your devices on your Mac and put them on the Dock / Menu Bar / Widget! && 在Mac上获取你所有设备的电量信息并显示在Dock / 状态栏 / 小组件上!
https://lihaoyun6.github.io/airbattery/
GNU Affero General Public License v3.0
1.18k stars 32 forks source link

Action of opening the app when it is not shown in the dock #17

Closed Alrazzouq closed 4 months ago

Alrazzouq commented 4 months ago

I really like this app. I have a problem. When I choose “Show AirBattery on: Status Bar” and open the application, it shows the application icon in the dock, and to hide it again I have to choose “Show AirBattery on” → Dock then Status Bar. This is not parctical. We need to control every thing from the menu bar icon without showing the dock icon. What I suggest is on opening the application (or pressing on the widget) it opens the setting window (or you can make a dashboard instead of setting) which does not shows the application icon in the dock if I choose this option.

lihaoyun6 commented 4 months ago

Which version of AirBattery are you using?

Alrazzouq commented 4 months ago

Version 1.3.1 (131)

lihaoyun6 commented 4 months ago

You mean "Even if you have set AirBattery not to be showed on the Dock, this icon will still remain", right? image

Alrazzouq commented 4 months ago

It appears when I try to open the application from the Launchpad or duble click the widget. "Even if I have set AirBattery not to be showed on the Dock"

lihaoyun6 commented 4 months ago

Ok, this will be fixed in the next version.
When you set AirBattery to only appear on the menu bar, it will not show any Dock icon the next time you run it.

Alrazzouq commented 4 months ago

Thank you.

lihaoyun6 commented 4 months ago

AirBattery v1.3.2 has been released. You can check for updates in the settings panel

lihaoyun6 commented 4 months ago

If the Dock icon doesn't disappear after the update, right-click it and select "Remove from Dock", and it will never come back (unless you enable it again in settings)

Alrazzouq commented 4 months ago

Thank you for updating the app. It works perfectly. I have more suggestions regarding “Single Device Widget”: 1- regarding the layout, could you decrease the size of the ring, increase the size of the icon of the device, and increase the size of the percentage of charging. And in the center of the circle, just keep the icon of the device, and put the percentage under the ring, and disable reviewing the name of the device. (Or you can keep this layout and make another one) 2- Could you add an option to use more than one “Single Device Widget” each one for different device.

Alrazzouq commented 4 months ago

There is no signs of charging for iPhone. Screenshot 2024-06-03 at 6 23 21 PM

lihaoyun6 commented 4 months ago

It usually takes 1~3 minutes to read the charging status of ios device via WiFi and show it on widgets. if you are using Bluetooth to search for iPhone, you also need to turn on "Guess charging status of iDevices or BLE devices over BT" in Settings. And it will take longer to get the result.

lihaoyun6 commented 4 months ago

Thank you for updating the app. It works perfectly. I have more suggestions regarding “Single Device Widget”: 1- regarding the layout, could you decrease the size of the ring, increase the size of the icon of the device, and increase the size of the percentage of charging. And in the center of the circle, just keep the icon of the device, and put the percentage under the ring, and disable reviewing the name of the device. (Or you can keep this layout and make another one) 2- Could you add an option to use more than one “Single Device Widget” each one for different device.

Hmm... I think I'll put it on my todo list.

lihaoyun6 commented 4 months ago

The refresh interval of macOS widgets is not controlled by the App, so the device information in the widget lags behind the status bar menu.

image
Alrazzouq commented 4 months ago

👍 It works after turning on the wifi in iPhone. Screenshot 2024-06-03 at 7 02 47 PM

lihaoyun6 commented 4 months ago

Thank you for updating the app. It works perfectly. I have more suggestions regarding “Single Device Widget”: 1- regarding the layout, could you decrease the size of the ring, increase the size of the icon of the device, and increase the size of the percentage of charging. And in the center of the circle, just keep the icon of the device, and put the percentage under the ring, and disable reviewing the name of the device. (Or you can keep this layout and make another one) 2- Could you add an option to use more than one “Single Device Widget” each one for different device.

AirBattery v1.3.4 has been released, including multiple bug fixes and new features.

Multiple single-device widgets can display different devices in macOS 14 now. Please check for updates😊

Alrazzouq commented 4 months ago

Thank you for updating the application. That is a great idea to show percentage in small widget and this is the first app that I have ever seen that can do that. Unfortnately, “Single Device Widget” does not work. It does not find any device. I think it is better to choose a device from a list of available devices rather that typing the name of the device.

lihaoyun6 commented 4 months ago

If you want to use the new "configurable single-device widgets" in macOS 14, please delete the single-device widget created with the old version of AirBattery and re-add it, then right-click the widget to edit it and enter the name of the device you are looking for

lihaoyun6 commented 4 months ago

You can also quickly copy the name of any device by clicking the "clipboard" icon at the end of the entry in the device list.

Please note: the widget may not refresh immediately, and do not click "Done" right after entering the device name, press Enter first to confirm your input, otherwise your input will be discarded (this is a macOS bug)

Alrazzouq commented 4 months ago

It works, thank you.