Skip to content

grimpy/btlock

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

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

About

Autolock computer

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages