Used to do this as well (NYC) till I realized nobody was going to be pulling John Wick stunts to keep my five year old laptop from being taken away. Now I just make sure I'm not right near an entrance and leave my stuff with reasonable confidence. YMMV of course.
That being said, this does remind me of the stunts pulled to get Ross Ulbricht's laptop:
> To prevent Ulbricht from encrypting or deleting files on the laptop he was using to run the site as he was arrested, two agents pretended to be quarreling lovers. When they had sufficiently distracted him,[30] according to Joshuah Bearman of Wired, a third agent grabbed the laptop while Ulbricht was distracted by the apparent lovers' fight and handed it to agent Thomas Kiernan.[31] Kiernan then inserted a flash drive in one of the laptop's USB ports, with software that copied key files.[30]
https://en.wikipedia.org/wiki/Ross_Ulbricht
I do think if anyone was that determined to get my laptop they probably deserve it.
And how did the flash drive trick work? Was he running Windows on that laptop? Very bad idea.
Wait what? How does this work?
On OSX:
pmset -g rawlog
Output:
$ pmset -g rawlog pmset is in RAW logging mode now. Hit ctrl-c to exit. * Battery matched at registry = XXXX 01/15/20 XX:XX:XX No AC; Not Charging; 75%; Cap=5490: FCC=XXXX; Design=XXXX; Time=X:XX; -752mA; Cycles=14/1000; Location=XX; Polled boot=01/15/20 XX:XX:XX; Full=01/15/20 XX:XX:XX; User visible=01/15/20 XX:XX:XX
I expect there are more elegant solutions, but this would theoretically work, as I used to use this among other things to track my daily laptop usage to see how on task I was any given day. If the lid is closed but unplugged then I was probably going to/in a meeting, if the lid is closed and charging then I was likely afk, not working. Worked pretty well to give me a ballpark of my productivity.