Refactor main and display hibernating logic from eachother

This commit is contained in:
2020-08-18 13:59:20 +02:00
parent 8bba5b30a4
commit 8b89bcb3f6
3 changed files with 121 additions and 91 deletions

View File

@ -0,0 +1,20 @@
package main
import (
"after-lock/afterlock"
)
const (
initialDelay = 3
loopDelay = 6
keyboardDeviceNode = "/dev/input/by-id/usb-Dell_Dell_USB_Entry_Keyboard-event-kbd"
)
func main() {
al := afterlock.New(keyboardDeviceNode)
al.InitialDelay = initialDelay
al.LoopDelay = loopDelay
al.Start()
}