This can be done without lid sensor working as R-Super. It just needs a demon monitoring lid state, and if it is closed, use alt/ctrl keys to change tracks or whatever.
About using magnet to trigger lid closed, I guess closing lid may also trigger screenlock or suspend or atleast screen blanking with dpms off, that means pyra may not accept password at all. Though I like both ideas.