Giter Club home page Giter Club logo

bluesnooze's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

bluesnooze's Issues

Remember bluetooth state

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.

No longer re-activates Bluetooth on wake

In MacOS 12 (Monterey), this does not work as expected.

  • The application does successfully disable Bluetooth
  • but the application does not re-enable Bluetooth on wake

Specs

  • macOS 12.6.3 (21G419)
  • Apple silicon M1 Pro MBP

I believe Apple have made significant changes to IOBluetooth recently, and now support on Apple silicon and Intel vary.

[Feature Request] Reconnect Bluetooth devices which were connected before sleep

Currently, when I lock/close my mac, the Bluetooth turns off and my headset disconnects (wanted behaviour so far).

When I unlock/re-open my mac, the Bluetooth turns on again, but my headset (which is still on) doesn't reconnect automatically, i.e. I have to select it manually through the Bluetooth menu.
Whereas when I turn my headset on, it automatically connects to my mac.

Feature: (try to) reconnect to all Bluetooth devices which were connected before sleep at least once (some of them might have turned off)

It doesn't work when the mac shuts down?

Or it doesn't work on big sur?

My usecase is I need it to work when I sleep my mac or shut it down, so my trackpad disconnects and I can move it to my other mac. Doesn't it work when the mac shuts down?

Hiding icon doesn't persist after system restart

Running defaults write com.oliverpeate.Bluesnooze hideIcon -bool true && killall Bluesnooze works great; it hides the icon in the menu bar. But when I log in again, the icon is back and I have to resubmit that command.

This wasn't the case until I updated to MacOS Sonoma.

Is anyone else having this problem? If not, I may have something on my system that's inferring with the defaults.

 [Feature Request] Disable bluetooth at login

I often have the situation where my backup macbook steals my bluetooth keyboard / trackpad.
I would like to disable bluetooth by default and only enable it on demand. Unfortunately MacOS (Sonoma) does not have a setting for this. Maybe bluesnooze can fill the gap and add a setting to Disable bluetooth at login which will work when Launch at login is enabled.

Empty icon in menu bar on Sonoma

Hi there,

first I want to thank you for your nice tool that helped me a lot with managing my devices.

There is now a hidden icon when you set the option "Hide icon" in the menu bar on macOS Sonoma Beta 1 that is just empty space without any interaction possibilities.

Edit: it's still the case with Beta 3

image

Bluesnooze not working - can't uninstall

Hi - I've been happy with what Bluesnooze does, amazed Apple doesn't provide this bit of functionality as standard tbh.

Recently I've found it has stopped working - my MBP is now connecting to my BT headphones when I turn them on, even when the laptop is asleep.

I've tried deleting the app to re-install (i think this worked last time the same issue happened), but i'm told 'Bluesnooze cannot be moved to the bin because it is open'.
I can't seem to get the icon back into the top bar in order to turn it off and delete it.

I've now re-downloaded v1.1 and opened it, and the icon does show in the top bar.
But now I seem to have 2 versions of Bluesnooze running!

Please help? I'm not a coder - I've tried the suggestion of putting that text into Terminal but it doesn't seem to do anything.
thanks

Heavily delayed Bluetooth reactivation

Device: MacBook Air M2
OS: Sonoma 14.0 (23A344)
Bluesnooze version: 1.2 (latest as of May 20th 2024)

After opening the lid of my MacBook it takes between 20 and 30 seconds to reactivate Bluetooth. Is there a way to reactivate it immediately?

Hide icon via `defaults` not working?

steps

  1. In the terminal defaults write com.oliverpeate.Bluesnooze hideIcon -bool true && killall Bluesnooze
    1. Bluesnooze killed, removed from menu bar
  2. Launch Bluesnooze from cmd+space type "bluesnooze"
  3. Icon reappears
bluesnooze.mp4

Expected

Bluesnooze app icon does not reappear

setup

  • 2023 14" MacBook M1 Pro
  • Sonoma 14.2.1
  • Bluesnooze installed via brew install bluesnooze

Info.plist

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
        <key>BuildMachineOSBuild</key>
        <string>22E261</string>
        <key>CFBundleDevelopmentRegion</key>
        <string>en</string>
        <key>CFBundleExecutable</key>
        <string>Bluesnooze</string>
        <key>CFBundleIconFile</key>
        <string>AppIcon</string>
        <key>CFBundleIconName</key>
        <string>AppIcon</string>
        <key>CFBundleIdentifier</key>
        <string>com.oliverpeate.Bluesnooze</string>
        <key>CFBundleInfoDictionaryVersion</key>
        <string>6.0</string>
        <key>CFBundleName</key>
        <string>Bluesnooze</string>
        <key>CFBundlePackageType</key>
        <string>APPL</string>
        <key>CFBundleShortVersionString</key>
        <string>1.2</string>
        <key>CFBundleSupportedPlatforms</key>
        <array>
                <string>MacOSX</string>
        </array>
        <key>CFBundleVersion</key>
        <string>1</string>
        <key>DTCompiler</key>
        <string>com.apple.compilers.llvm.clang.1_0</string>
        <key>DTPlatformBuild</key>
        <string></string>
        <key>DTPlatformName</key>
        <string>macosx</string>
        <key>DTPlatformVersion</key>
        <string>13.3</string>
        <key>DTSDKBuild</key>
        <string>22E245</string>
        <key>DTSDKName</key>
        <string>macosx13.3</string>
        <key>DTXcode</key>
        <string>1431</string>
        <key>DTXcodeBuild</key>
        <string>14E300c</string>
        <key>LSApplicationCategoryType</key>
        <string>public.app-category.utilities</string>
        <key>LSMinimumSystemVersion</key>
        <string>12.0</string>
        <key>LSUIElement</key>
        <true/>
        <key>NSHumanReadableCopyright</key>
        <string>Copyright © 2020 Oliver Peate. All rights reserved.</string>
        <key>NSMainNibFile</key>
        <string>MainMenu</string>
        <key>NSPrincipalClass</key>
        <string>NSApplication</string>
        <key>NSSupportsAutomaticTermination</key>
        <true/>
        <key>NSSupportsSuddenTermination</key>
        <true/>
</dict>
</plist>

Differentiate between lid close and other power off events

My mac stays open for longer times, but locks and sleeps quite often.
I'd want the BT to be turned off only when the lid is closed.
It would be great for Bluesnooze to differentiate between a lid close event, and other device sleep events, to turn off bluetooth only when the lid is closed.

Otherwise, my Apple keyboard disconnects every time and I have to reconnect it every time I come back to my desk.

Do not allow to connect devices while lid is closed

The App works great when you have a device connected and you close the lid.
But if your lid is already closed and you open your earphones they connect to the macbook again, and if you are walking and want to connect it to the phone... then you should take out the laptop to continue (I know some earphones allow multiple connect, not mines...)
Would be great to have an option to say that a device can't be connected while the lid is closed.
Thanks for your work :-)

[REQ] Turn off wifi

Ive noted on my mac that wifi is also something that still remains connected even when my lid is closed

Would be great if this app is able to turn off wifi when lid is closed as well

Hiding menu bar icon doesn't appear to work on Apple Silicon

I recently installed Bluesnooze on my 2 Mac laptops - it's a great tool, much appreciated! They are both running macOS Ventura. The only difference I can think of is that one is an M1 macbook air, the other has an Intel chip.

Running defaults write com.oliverpeate.Bluesnooze hideIcon -bool true && killall Bluesnooze and then starting up bluesnooze again results in the menu bar icon re-appearing on my M1 macbook air, but not on my Intel mac.

This might end up having a similar root cause to #22 but the symptom is a little different so I figured another issue was warranted.

Doesn't work with Hot Corners

Bluesnooze doesn't seem to work with Hot Corners.

To reproduce:

  • Go to: System Settings > Desktop & Dock > Hot Corners...
  • Then change the bottom right corner option to "Put Display to Sleep".
  • Then click the "Done" button.
  • Then move the mouse cursor to the bottom right corner of the screen, which will put the display to sleep, but it won't disable Bluetooth.

When I put the display to sleep using Apple Menu > Sleep, it works as expected, disabling Bluetooth, but nothing seems to happen when I put the display to sleep using Hot Corners.

Computer: MacBook Pro 15-inch, 2018
OS: macOS Ventura 13.2.1 (22D68)

Feature activate / deactivate ?

Hello, I love this app so much, but since I use bluetooth keyboard and trackpad, it, obviously, prevents my MacBook to get off out sleep with it. Is there a way to exclude some bluetooth devices from Bluesnoow or have a menu-bar option to deactivate / reactivate blue snooze ?

[Feature Request] Honor the state of Bluetooth before sleep

The App is great, thank you for that!

I often disable bluetooth manually because i don´t need it and i don´t want any devices to connect.
The problem with bluesnooze is, that it enables bluetooth after wake up no matter what state it was when i sent the computer to sleep.

Therefore, a nice feature would be, that bluesnooze is checking before the computer is going to sleep if bluetooth is already disabled and therefore do not activate it when the computer wakes up.

Bluesnooze sometimes not working on Mac OS 14.4.1

Since I updated to 14.4.1 my computer sometimes wakes up and refuses to turn on bluetooth even if I go to settings and turn it on. If I quit bluesnooze in the Activity Monitor my bluetooth functions normally again.

Bluetooth not disabled on Ventura

I'm on Ventura 13.4.1. When my Mac sleeps, bluetooth is not turned off. I am still able to wake the machine using my Magic Mouse and/or my Magic Keyboard.

[Feature Request] Scheduling

I propose having the ability to set schedules for this app. I would like to set it to disable Bluetooth outside of working hours.

SHA256 mismatch on brew

Here is the output of my bluesnooze installation:

==> Downloading https://github.com/odlp/bluesnooze/releases/download/v1.2/Bluesn
==> Downloading from https://objects.githubusercontent.com/github-production-rel
         #-=O=#    #    #                                                      
Error: SHA256 mismatch
Expected: 075a8b7cf8f66d4f4002c62a1985a5d3fb043e3df09e7fd405e88ce24a96feb0
  Actual: 2e215dfb563974ded48b5972a08689eb6ecc70eb30af6e74aebb5a48be0b57f5
    File: /Users/myusername/Library/Caches/Homebrew/downloads/cc31ac694ced017817b22d29742228fb7e56236ae6646cf83c4a42b66bdd9937--Bluesnooze.zip

Already tried removing the file and retrying as well as performing a brew cleanup, followed by a brew upgrade and retrying the installation.

Is this a problem that occurs for anyone else? Other brew formulas install just fine for me.

Select specific devices to disconnect

Great simple solution, thanks for providing it!

Maybe down the line this could include a list of known devices and you can select which ones will disconnect on sleep?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.