Skip to content

A systemd service to lock KDE session if a bluetooth device is out of range

License

Notifications You must be signed in to change notification settings

foreignmeloman/kde-bluetooth-lock

Repository files navigation

Requirements

  • Python >= 3.8
  • notify-send util from libnotify (Optional)

Install

sudo ./install.sh

Configure

To configure the service edit /etc/kde-bluetooth-lock/config.json file after the install.

Available configuration options:

Option Description
macs A json list of mac address strings of the deivices to be monitored
interval Interval in seconds between polls
retry Retry count
log_level Verbosity level of the logs. Possible values: ["DEBUG", "INFO", "WARNING", "ERROR", "CRITICAL"]
notify A json boolean to enable desktop notifications, if notify-send binary is available
notify_after_loss_percent Notifications will be sent after the percentage of failed poll tries exceeds the specified threshold

Run

sudo systemctl enable --now kde-bluetooth-lock.service

Uninstall

sudo ./install.sh -u

About

A systemd service to lock KDE session if a bluetooth device is out of range

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published