An open API service indexing awesome lists of open source software.

https://github.com/grimpy/btlock

Autolock computer
https://github.com/grimpy/btlock

Last synced: 11 months ago
JSON representation

Autolock computer

Awesome Lists containing this project

README

          

# Lock computer when idle or bluetooth devices disconnects

Have annoying colleages who can't help it from messing with your computer? Tend to forget to lock you computer? NO MORE!

This application will automaticly lock your computer when it looses connection with a bluetooth device (in my case my smartwatch) or when you computer is idle of certain amount of time.

This application works only on Linux in combination with Xorg uses bluez dbus interface and Xorg proto

## Install

`go install github.com/grimpy/btlock`

## Usage:

```
Usage of /tmp/go-build122752904/b001/exe/main:
-idletime int
Idle time before invoking lock (by default this is taken from xserver state)
-lockapp string
Command to invoke to lock (default "i3lock")
-macaddr string
Macaddress of device to check connection
```