Bluetooth proximity automation
Project description
Overview
BlueDo - Bluetooth proximity automation
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
Configuration
There are lots more options in the config file. Feel free to tune.
Screenshots
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
- Easy "start on login"
- Keep two instances from running at the same time.
- Minimize to tray, instead of having both minimize and minimize to tray.
- Change to dynamic widget layout instead of fixed.
- 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
Inspiration
- https://github.com/LukeSkywalker92/btproxipy
- bt_rssi.py is from this project and is MIT licensed.
- https://discourse.gnome.org/t/useful-documentation-for-gtk/29
- Black/white icons in app from https://material.io
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file bluedo-0.53.tar.gz
.
File metadata
- Download URL: bluedo-0.53.tar.gz
- Upload date:
- Size: 406.4 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 75db901369dc99636fa71b0de728b496ba4eac4653f3275196185c3f4fa2d6a1 |
|
MD5 | ac1c94f78e281c49447e3b8149b52bb2 |
|
BLAKE2b-256 | 52026ba6e1635a405b9eb909b4660e796e4c18c52f8da170c847e76a02eae588 |
File details
Details for the file bluedo-0.53-py3-none-any.whl
.
File metadata
- Download URL: bluedo-0.53-py3-none-any.whl
- Upload date:
- Size: 387.3 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8fc07b9dd0bd113b5355ddba9138f22ba65b0ca7da1eeed8c07a7ac0e5c2e588 |
|
MD5 | d4d00b32ca5b84ed5498932b4bf091ed |
|
BLAKE2b-256 | 07615a8248da67cee5cbe00aeee8559da4cb7acc03476d4c85aed545823074e8 |