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.
48 lines
1.3 KiB
Groff
48 lines
1.3 KiB
Groff
.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)
|