Perform system activities on Ubuntu using jna

Job ID: 34603280

Budget: ₹1,500 – ₹12,500 INR

I need to get the following information using jna on ubuntu.
Idle time of the system
Active application name
Title of the application
Lock the system
Create a trigger on system unlock.