Code Monkey home page Code Monkey logo

proxlock's Introduction

ProxLock Icon Placeholder

ProxLock

ProxLock is a small native utility app that runs in your macOS menu bar and allows you to automatically lock and wake up your Mac by monitoring how far away you are from it. In order to do that, is connects via Bluetooth with one of your Apple devices, such as an Apple Watch, AirPods, or iPhone.

  • When you're close to your Mac, ProxLock will attempt to wake him up and redirect you to the lock screen. At this point you either enter your password, use Touch ID or, for the most streamlined experience, use the built-in "Unlock with Apple Watch" to jump straight at the Desktop without you doing absolutely anything.

  • When you're farther away, ProxLock will lock the screen by putting Mac to sleep (black screen) or by jumping to tyhe screensaver. For this option to work, I'm planning to add a requirement for the "Immediately ask for password after screensaver" option to be on, in order to avoid potential security vulnerabilities.

Development Status

This app is, as of now, in a very Alpha state. Most of the UI code is there and it's working, but the underneath logic which does the heavy lifting and interacts with Bluetooth devices is almost non-existing. I'm working on this in my spare time, which is currently at an all time low, due to University and other projects I'm working on.

In addition to implementing the core functionalities described above, I'd like to:

  • Implement a way to run user-defined scripts when ProxLock locks or unlocks Mac;
  • Implement some code that removes Apple Watch from the usable devices if it's off the wrist for some reason. That could be useful in cases where the watch is charging: since it's still on, it will continue to emit a Bluetooth signal, but that is useless to infer how distant the user is from the computer (it could trigger a lock event if you move away from the charging Apple Watch!).

Inspiration

I took inspiration from a very cool open-source project named BLEUnlock by Takeshi Sone, and decided to rewrite it from scratch using SwiftUI.

Requirements

  • A Mac that supports Bluetooth LE and runs macOS Sonoma (or newer). Actually, I might add support for Ventura, as soon as I figure out how to handle deprecated Swift functions.
  • iPhone >= 5s / any kind of Apple Watch / any kind of AirPods.

Authors

License

ProxLock is under the MIT License.

proxlock's People

Contributors

fabcolonna avatar

Stargazers

 avatar

Watchers

 avatar

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.