Skip to main content

Bluetooth proximity automation

Project description

Overview

BlueDo - Bluetooth proximity automation

Logo

Lock your desktop, mute music or run any other command when leaving your PC. There are dozens of apps like this. This one just aims to make it beautiful, modern and easy.

Maturity

Beta

Installation

From pip

sudo apt install python3-pip libbluetooth-dev libappindicator3-dev playerctl
pip3 install --upgrade bluedo

Requirements

Needs bluetoothctl ~5.50 or newer.

Use these system commands:

  • bluetoothctl
  • loginctl
  • gsettings
  • amixer
  • playerctl

Only tested on Ubuntu 20.04-21.04 with GNOME.

Command line options

  • -e / --enable to start service on app start.
  • -m / --minimize to start minimized

Configuration

There are lots more options in the config file. Feel free to tune.

Screenshots

v53 v49 v49_advanced v3_2 v3

System changes

Note that this app will make these changes to your power management:

  • Enable screen lock: org.gnome.desktop.screensaver lock-enabled true
  • Set delay from screen blacking to locking to zero: org.gnome.desktop.screensaver lock-delay 0
  • Set screen saver timeout to 10 seconds when device is away, 5 minutes when device is present: org.gnome.desktop.session idle-delay 600

TODO

  • Default lock / unlock ON.
  • Keep two instances from running at the same time.
  • Minimize to tray, instead of having both minimize and minimize to tray.
  • Stop device scanning when minimized
  • Change to dynamic widget layout instead of fixed.
  • Change preferences button to proper burger menu.
  • Move media files to some other dir?
  • Unit tests

Development docs

  • scan for devices: bluetoothctl devices

  • rssi for device: hcitool rssi ff:ff:ff:ff:ff:ff (unstable)

  • Version below .56 needs Python < 3.9

  • hard locking: lock when no signal

  • soft locking: set screensaver timeout to 10 seconds when no signal

Inspiration

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bluedo-0.57.tar.gz (407.1 kB view details)

Uploaded Source

Built Distribution

bluedo-0.57-py3-none-any.whl (388.7 kB view details)

Uploaded Python 3

File details

Details for the file bluedo-0.57.tar.gz.

File metadata

  • Download URL: bluedo-0.57.tar.gz
  • Upload date:
  • Size: 407.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.5

File hashes

Hashes for bluedo-0.57.tar.gz
Algorithm Hash digest
SHA256 b97bafe163d30291966a7bea438dda34774ef22b966307aa7d89d9fb2b38dd98
MD5 f1a8b713f4c6fbec7a83464b55b9df20
BLAKE2b-256 dcc17db65f8c770d924fe958f82328ef258a8b78e96d548075981740c045bcb8

See more details on using hashes here.

File details

Details for the file bluedo-0.57-py3-none-any.whl.

File metadata

  • Download URL: bluedo-0.57-py3-none-any.whl
  • Upload date:
  • Size: 388.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.5

File hashes

Hashes for bluedo-0.57-py3-none-any.whl
Algorithm Hash digest
SHA256 df0bc489929a4345358f25a94ffab7d44b4c1970d8727c162ef671719a1669be
MD5 8ee4a9d9c074f037dd492b6c5e1689da
BLAKE2b-256 5049df43b9619e325420866bf8e4edb443367d831274dced9859376a3f0f7425

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page