odlp / bluesnooze

Sleeping Mac = Bluetooth off
MIT License
2.11k stars 59 forks source link

Remember bluetooth state #21

Open Atemu opened 1 year ago

Atemu commented 1 year ago

Currently, the app always turns bluetooth back on again on wake up, regardless of whether the user turned it off before sleep or not.

I personally only need bluetooth at specific times and would rather have it off by default to save power.

Would it be possible to take note of whether bluetooth was enabled at the time the app disabled it and only re-enable it again when it was indeed enabled before?

Would probably not hurt to make this configurable.

I could try and implement this myself as, looking at the code, that should be trivially simple but setting up a macOS dev env would likely take longer than the implementation as I don't have much of any experience in writing apps for Apple devices.

BetterB0y commented 1 year ago

This fork has it implemented: https://github.com/stefansundin/bluesnooze

I don't think it be difficult to add this feature.

cpeterso commented 9 months ago

Here is a PR to merge the changes from https://github.com/stefansundin/bluesnooze: https://github.com/odlp/bluesnooze/pull/16