Add Debian packaging and arm64 cross build
cargo-deb metadata produces a .deb with the binary, the packaged user unit variant, man page and example config; arm64 cross-builds as a static musl binary via an isolated rustup and rust-lld (recipe in README). Add MIT LICENSE for the package copyright.
This commit is contained in:
1 parent
b4e51a58f6
commit
b93c0134dd
9 files changed
+189
-1
No files matched your search
@@ -0,0 +1,47 @@
|
||||
.TH BTLE\-PROXIMITY 1 "November 2026" "btle\-proximity 0.1.0" "User Commands"
|
||||
.SH NAME
|
||||
btle\-proximity \- lock the desktop session when your phone leaves Bluetooth range
|
||||
.SH SYNOPSIS
|
||||
.B btle\-proximity
|
||||
.RB [ \-c ", " \-\-config " " \fIFILE\fR ]
|
||||
.RB [ \-\-dry\-run ]
|
||||
.RI [ COMMAND ]
|
||||
.SH DESCRIPTION
|
||||
.B btle\-proximity
|
||||
watches BLE advertisements of a paired phone via BlueZ and locks the desktop
|
||||
session with
|
||||
.BR "loginctl lock-session"
|
||||
when the phone stops being reachable. There is no unlock: the phone
|
||||
returning only rearms monitoring. Before locking, a short connection probe
|
||||
verifies the phone is really unreachable.
|
||||
.SH OPTIONS
|
||||
.TP
|
||||
.BR \-c ", " \-\-config " " \fIFILE\fR
|
||||
Path to the TOML configuration file.
|
||||
.TP
|
||||
.B \-\-dry\-run
|
||||
Log lock actions instead of executing them.
|
||||
.TP
|
||||
.BR \-h ", " \-\-help
|
||||
Print help.
|
||||
.TP
|
||||
.BR \-V ", " \-\-version
|
||||
Print version.
|
||||
.SH COMMANDS
|
||||
.TP
|
||||
.B run
|
||||
Run the daemon (default when no command is given).
|
||||
.TP
|
||||
.B list\-paired
|
||||
List paired Bluetooth devices and exit; use it to pick the
|
||||
.B device_mac
|
||||
for the configuration.
|
||||
.SH FILES
|
||||
.TP
|
||||
.I $XDG_CONFIG_HOME/btle\-proximity/config.toml
|
||||
Per-user configuration; see
|
||||
.I /usr/share/doc/btle\-proximity/examples/config.toml
|
||||
for every knob and its tuning guidance.
|
||||
.SH SEE ALSO
|
||||
.BR loginctl (1),
|
||||
.BR bluetoothd (8)
|
||||
@@ -0,0 +1,14 @@
|
||||
[Unit]
|
||||
Description=BLE proximity screen locker (packaged)
|
||||
Wants=bluetooth.service
|
||||
After=bluetooth.service
|
||||
PartOf=graphical-session.target
|
||||
|
||||
[Service]
|
||||
Type=notify
|
||||
ExecStart=/usr/bin/btle-proximity --config %h/.config/btle-proximity/config.toml
|
||||
Restart=on-failure
|
||||
RestartSec=5s
|
||||
|
||||
[Install]
|
||||
WantedBy=graphical-session.target
|
||||
Reference in new issue
Block a user