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

From snap store

snap install bluedo
give permissions:
* "Use bluetooth device": "bluedo:service"
* "Login session control"
* "gsettings: allows access to any gsettings item of current user"

Requirements

Needs bluetoothctl ~5.50 or newer. Version above .55 needs Python 3.9.

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.
  • Figure out what freezes app sometimes. Only happends when run from codium.
  • Move media files to some other dir?
  • Unit tests

For snap

  • /bin/sh: 1: loginctl: Permission denied
  • See if build config can be cut down
  • See if permissions can be cut down
  • Warn when permissions are missing (some need to be given manually), bluetooth, session control
  • Autostart when snap?

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

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

Uploaded Source

Built Distributions

bluedo-0.55-py3.9.egg (386.6 kB view details)

Uploaded Source

bluedo-0.55-py3-none-any.whl (388.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: bluedo-0.55.tar.gz
  • Upload date:
  • Size: 407.6 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.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.5

File hashes

Hashes for bluedo-0.55.tar.gz
Algorithm Hash digest
SHA256 25ae3d83658b2ae38fb8eab1c90a1147194a61bab60f6ca1f05606b78327c268
MD5 30f776e3cf9a147f8a722a55e5fa3ae5
BLAKE2b-256 013b98afe1a1eba03935c029ab7db3877b6aea62b5af99965290c2039562a769

See more details on using hashes here.

File details

Details for the file bluedo-0.55-py3.9.egg.

File metadata

  • Download URL: bluedo-0.55-py3.9.egg
  • Upload date:
  • Size: 386.6 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.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.5

File hashes

Hashes for bluedo-0.55-py3.9.egg
Algorithm Hash digest
SHA256 9a92c0a0f6e0affec35e5fa6438c26792a6d193eb8671d6c827176ed9d554b94
MD5 d8e084a4972e4e93b6a3118a1a981287
BLAKE2b-256 f5249d03f51dc7c4301d1ba4b07fba1b38c6c9847a60082a0bf7aeaf02798841

See more details on using hashes here.

File details

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

File metadata

  • Download URL: bluedo-0.55-py3-none-any.whl
  • Upload date:
  • Size: 388.9 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.55-py3-none-any.whl
Algorithm Hash digest
SHA256 944c80ce3176289ed35d5e5567cb3565404b66b23a593c1008d31712dd060ac4
MD5 8b8daf13a7bec82568a6fe0f8a46128e
BLAKE2b-256 05f6ca5f56ac8e75051e77246d9a2477616f7eead35abf2a723e2060a9ab9933

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