I often travel to cafes, and when I need to step away from my laptop, I worry about leaving it unattended. I'm looking for a way to set up a system that alerts my phone if my laptop gets unplugged from the charger. Is there a specific method or a tutorial on YouTube that could guide me on how to do this?
4 Answers
You might want to consider using a script with Bash or Python, combined with a service like Pushbullet. You could use a program called `acpi`—running `acpi -b` will let you know if it’s charging or unplugged. You could set it to check every second, and when it detects unplugging, it sends a notification to your phone. I’ll think about a more efficient approach later when I have more time!
A practical tip would be to use the security slot on your laptop. You can attach it to a chair or a heavy object to deter theft.
Another simple solution could be to set up your laptop to send an email when it gets unplugged, and you can check that on your phone.
Honestly, I'd find it hard to leave my laptop alone in a public place. It could disappear so fast that by the time you get an alert, it could already be gone!

Related Questions
How To Get Your Domain Unblocked From Facebook
How To Find A String In a Directory of Files Using Linux