lock/unlock ScreenSaver by touching Felica compatible card or device.
This software depend on libpafe and libusb, please make sure those are already installed.
- cinnamon (cinnamon-screensaver)
- i3 (i3lock)
- KDE Plasma (kscreenlocker_greet)
Currently there is a driver for cinnamon using cinnamon-screensaver and a driver for i3
using i3lock. You can create additional drivers for other environments by implementing them
in source/unlocker/driver/ and creating them in source/unlocker/unlocker.d.
- libpafe
- libusb
- dmd
- dub
$ git clone https://github.com/alphaKAI/unlocker
$ cd unlocker
$ dub buildPlase make config.json at ~/.config/unlocker and configure it like:
(<- means description, but it is not granted expression in JSON, don't write that in your config.json).
{
"driver":"cinnamon", <- driver name
"interval":5, <- seconds
"authorized_keys": {
"Suica" : {
"IDm" : "1234567890abc",
"PMm" : "1234567890"
},
"Edy" : {
"IDm" : "1234567890abc",
"PMm" : "1234567890"
}
}
}Note: You can obtain the IDm and PMm of your card with felica_dump_util(It locates on subdirectory of this repository).
Copyright (C) 2017 Akihiro Shoji
This software is released under the MIT licese.
Please see LICENSE for details.