Invert display and lockscreen control dependencies

This commit is contained in:
2020-08-20 16:57:57 +02:00
parent e6458aba0b
commit ebbd1974df
7 changed files with 59 additions and 17 deletions

View File

@ -2,10 +2,13 @@ package main
import (
"after-lock/afterlock"
"after-lock/display"
"after-lock/keypressdetector"
"after-lock/lockfile"
"after-lock/lockscreen"
"fmt"
"runtime/debug"
"os"
"runtime/debug"
)
const (
@ -26,6 +29,9 @@ func main() {
al := afterlock.New(keyboardDeviceNode)
al.InitialDelay = initialDelay
al.LoopDelay = loopDelay
al.Display = display.Xset{}
al.LockScreen = lockscreen.XDG{}
al.KeypressDetector = keypressdetector.Evdev{}
al.Start()
}