Idea
Do you remember the theremin mode video where someone made a funny found when closing/opening your lid based on the lid sensor macOS devices have?
Here it is:
Or the wooden door?
Now, here is their blog post and link to the source code in Objective C.
Now why not have the same for a Framework device?
I actually discovered the framework CLI can show this:
$ sudo framework_tool --sensors
Accelerometers:
Lid Angle: 76 Deg
Lid Sensor: X=-0.03G Y=+0.99G, Z=-0.25G
Base Sensor: X=-0.01G Y=+0.00G, Z=+0.96G
$ sudo framework_tool --sensors
Accelerometers:
Lid Angle: 118 Deg
Lid Sensor: X=-0.03G Y=+0.89G, Z=+0.47G
Base Sensor: X=-0.01G Y=+0.00G, Z=+0.96G
Tested on my Framework 12. I don’t know whether it works for other devices, too. (I guess for the desktop it does not haha.
)
So that project should be possible for Framework, too, should not it?