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

  • sudo apt install python3-pip libbluetooth-dev playerctl
  • pip3 install --user bluedo

Use these system commands:

  • bluetoothctl
  • loginctl
  • gsettings
  • amixer
  • playerctl

Only tested on Ubuntu 20.04 with GNOME.

Command line options

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

Screenshots

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

  • Stop device scanning when minimized
  • "Open bluetooth settings"
  • Resume playback on "here"
  • Unmute on "here"
  • Figure out what freezes app sometimes. Only happends when run from codium.
  • Unit tests

For snap

  • See if build config can be cut down
  • Theming doesn't work right (looks ugly)
  • Attempt to confine

Development docs

  • scan for devices: bluetoothctl devices

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

  • hard locking: lock when no signal

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

  • build deb package: debuild -us -uc

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.45.tar.gz (373.3 kB view details)

Uploaded Source

Built Distribution

bluedo-0.45-py3-none-any.whl (266.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: bluedo-0.45.tar.gz
  • Upload date:
  • Size: 373.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.2

File hashes

Hashes for bluedo-0.45.tar.gz
Algorithm Hash digest
SHA256 cbcb80605349dde8d4833582eb4ed17070902c7df1a8c3831b0c9d4c8d513524
MD5 7f1cead9ac16c2b9afbb71245695aae7
BLAKE2b-256 4ca31336482ea722f52af131cbf5a44b28fd471d44b8602baa84ac75f00c4df4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: bluedo-0.45-py3-none-any.whl
  • Upload date:
  • Size: 266.8 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.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.5

File hashes

Hashes for bluedo-0.45-py3-none-any.whl
Algorithm Hash digest
SHA256 c7d181f61c98e8a7bcd4ca7fa9e65346a8f27e58a679cdd3335dbcc8e772e92a
MD5 a0a805e28d6e8e507dae7ddb62abe8af
BLAKE2b-256 3b543b307ce3fbab9454eef1fed85b09a13a49e410a200ce109c701e2aa43ea4

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