Share Code: Laptop Lid State

  • Thread starter Devyn Collier Johnson
  • Start date
D

Devyn Collier Johnson

Aloha everyone!

I attached a script that I thought I could share with everyone for
your help. This Python3 script only works on Unix systems. It prints the
current state of the lid. This can be used to make a script that
performs some action when the lid is closed or open. The script is
licensed under LGPLv3 and I will soon upload it to my Launchpad account.
Enjoy!

Mahalo,

(e-mail address removed)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,262
Messages
2,571,052
Members
48,769
Latest member
Clifft

Latest Threads

Top