kde-lockscreen-suspend-display/main.go

13 lines
200 B
Go

package main
import(
"after-lock/evdev"
"log"
)
func main() {
err := evdev.BlockUntilKeypress("/dev/input/by-id/usb-Dell_Dell_USB_Entry_Keyboard-event-kbd")
if err != nil {
log.Fatal(err)
}
}