{"id":18598167,"url":"https://github.com/bbugyi200/protectmylaptop","last_synced_at":"2025-05-16T14:10:56.906Z","repository":{"id":96886467,"uuid":"110191599","full_name":"bbugyi200/ProtectMyLaptop","owner":"bbugyi200","description":"Security Monitoring Program for your Laptop","archived":false,"fork":false,"pushed_at":"2018-01-13T05:12:38.000Z","size":17,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-17T23:47:30.888Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bbugyi200.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-11-10T02:20:31.000Z","updated_at":"2018-03-06T04:05:50.000Z","dependencies_parsed_at":null,"dependency_job_id":"7f007260-4178-4625-9cd3-4b96f94bdff2","html_url":"https://github.com/bbugyi200/ProtectMyLaptop","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bbugyi200%2FProtectMyLaptop","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bbugyi200%2FProtectMyLaptop/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bbugyi200%2FProtectMyLaptop/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bbugyi200%2FProtectMyLaptop/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bbugyi200","download_url":"https://codeload.github.com/bbugyi200/ProtectMyLaptop/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254544159,"owners_count":22088808,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-07T01:31:17.819Z","updated_at":"2025-05-16T14:10:56.887Z","avatar_url":"https://github.com/bbugyi200.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Why?\nWe shouldn't leave our personal belongings in public places unattended. You know it, I know it, and the would-be thieves know it. But most of us do it anyway. Am I really going to pack up my laptop, mouse and mousepad, charger, notebook, pencil and eraser, calculator, and the rest of my belongings every time I need to take a trip to the bathroom? Probably not. So I leave my things where they sit and risk having them stolen. My goal in writing ProtectMyLaptop was to help make this risk a bit more manageable.\n\n# What?\n\nMore of a set of complementary scripts than a cohesive program in and of itself, ProtectMyLaptop uses [Twilio](https://www.twilio.com), [Motion](https://wiki.archlinux.org/index.php/Motion), [i3lock](https://i3wm.org/i3lock/), and [ACPID](https://wiki.archlinux.org/index.php/acpid) in order to provide the user with the following security features which are activated after using the `screenlock` script to lock your screen:\n\n* Locks the screen (using a blurred screenshot of your desktop)\n* Upon detecting motion on your laptops built-in webcam, ProtectMyLaptop snaps photos continuously until the motion stops. You should set the photos to be stored (specified with the `motion_root_dir` configuration option) on your Dropbox (or any other cloud account). This way, if someone does manage to steal your laptop, you can go to your Dropbox account to get a look at his/her face.\n* In the event that your laptop lid is closed or the power button is pressed, ProtectMyLaptop uses Twilio to send a text message to your cell phone to alert you that your laptop is being stolen.\n\n# Configuration\n\nProtectMyLaptop uses a configuration file which uses an ini like format and can either be stored at either `~/.PML.conf` or (preferably) `~/.config/PML.conf`. The following options are available:\n\n``` ini\n[Motion]\n# 0 to disable motion from running or 1 to enable motion\nmotion_enabled=\n# Delay (in seconds) before motion starts\nmotion_delay=\n# jpeg files created by motion are stored in this directory\nmotion_root_dir=\n\n[Twilio]\n# 0 or 1. If enabled, it will text you when PML is activated\ntextme_at_startup=\n# Twilio Account SID\naccount_sid=\n# Twilio Auth Token\nauth_token=\n# Your phone number (prefaced with a +)\nto=\n# Twilio phone number (also prefaced with a +)\nfrom_=\n```\n\nBefore running `screenlock`, you should copy this format to one of the acceptable file paths mentioned above and fill in the options accordingly.\n\n# Notes\n\n* In order to get [Motion](https://wiki.archlinux.org/index.php/Motion) to behave as described in this document, you will have to change some of its default configurations. This can be done by making the appropriate alterations to the `/etc/motion/motion.conf` file.\n* The `etc/acpi/handler.sh` script included in this repo is merely a demonstration. In order to be texted when your laptop power button is pressed and/or laptop lid is closed, you must copy the `button/power` and `button/lid` sections to your local `/etc/acpi/handler.sh` file, which should already exist if you have installed `acpi` to your machine. In the provided `etc/acpi/handler.sh` demo, make sure to replace `\u003cusername\u003e` with your own Linux username.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbbugyi200%2Fprotectmylaptop","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbbugyi200%2Fprotectmylaptop","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbbugyi200%2Fprotectmylaptop/lists"}