Refactor main and display hibernating logic from eachother
This commit is contained in:
20
cmd/after-lock/after-lock.go
Normal file
20
cmd/after-lock/after-lock.go
Normal 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()
|
||||
}
|
Reference in New Issue
Block a user