/headphones-on

Live checking if you are in focus-mode-on and letting your team know that.

Primary LanguagePythonMIT LicenseMIT

headphones-on

Live checking if you are in focus-mode-on and letting your team know that.

Warning. This script is Mac Only.

...but offcourse you can make it work in any OS you want in like 5min. :-)

Requirements.

python3, bash, bluetooth headphones

How it works?

  • checking if you are @ work by ip.rz1.pl (you may use some other tool)
  • gathering hardware info from system_profiler
  • parsing this with your config & sending notifications.

Install Me

  1. git clone it to your scripts folder
  2. edit config.ini and com.deregowski.net.headphones-on.plist with your work IP, local dirs, headphones names and some other stuff
  3. ./run.sh

[extra-install-stuff]

  1. copy com.deregowski.net.headphones-on.plist to ~/Library/LaunchAgents/ [to make it permanent]
  2. launchctl load com.deregowski.net.headphones-on.plist [to make it autostart]