{"id":17933703,"url":"https://github.com/duksis/lock","last_synced_at":"2025-03-24T06:33:27.810Z","repository":{"id":35885052,"uuid":"199075599","full_name":"duksis/Lock","owner":"duksis","description":"🔒 MacOS Application that does only one thing -\u003e Locks your Mac","archived":false,"fork":false,"pushed_at":"2024-05-29T13:28:57.000Z","size":13726,"stargazers_count":57,"open_issues_count":2,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-19T03:06:31.196Z","etag":null,"topics":["macos-app","shell"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/duksis.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2019-07-26T20:22:51.000Z","updated_at":"2024-10-07T07:33:18.000Z","dependencies_parsed_at":"2024-10-28T21:41:30.896Z","dependency_job_id":"b7275921-d108-4860-bee1-8cda2a9550cd","html_url":"https://github.com/duksis/Lock","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/duksis%2FLock","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/duksis%2FLock/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/duksis%2FLock/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/duksis%2FLock/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/duksis","download_url":"https://codeload.github.com/duksis/Lock/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245223376,"owners_count":20580353,"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":["macos-app","shell"],"created_at":"2024-10-28T21:41:17.917Z","updated_at":"2025-03-24T06:33:26.757Z","avatar_url":"https://github.com/duksis.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ![logo](./assets/lock.iconset/icon_32x32.png) Lock.app [![Build Status](https://github.com/duksis/Lock/actions/workflows/test.yml/badge.svg)](https://github.com/duksis/Lock/actions/workflows/test.yml)\n\nLocks your Mac\n\n\n## Intro\n\nA simple Mac application that does only one thing\n----\u003e It locks your Mac!\n\n![lock through spotlight](./assets/lock_in_action_small.gif)\n\n\n## Installation\n\n1. Download [the image](https://github.com/duksis/Lock/releases/download/v1.1.1/lock.dmg)\n2. Open it\n3. Move `Lock` app to your `Applications` folder\n4. In case of Big Sur you might need to enable `Preferences -\u003e Security \u0026 Privacy -\u003e Accessibility` and check the checkbox next to the Terminal App\n\n\n## Background\n\nWas using [Alftred app](https://www.alfredapp.com) for multiple years and recently realised that\nfrom all of it's features and fancy configuration I have set up long time ago I was using exactly\nnothing. I was still using it every day, but just for two things:\n1. opening a application (mainly iTerm and Chrome)\n2. Locking my machine whenever I was leaving\n\nSo the first thing regular Spotlight can do as well, for my new setup I decided on the minimalist\napproach. After a week or so I realised that I can't get used to locking with `⌘⌃Q` and hot corners\nare not a solution, but a problem by themselves.\n\nInstead of switching back to Alfread I decided to create a simple application that is just locking\nthe machine when it is triggered and name it `Lock` this way Spotlight should be able to find\nit and suggest you it whenever you are typing `Lock` hopefully already on the first letters.\n\n\n## Default ways\n\nThe default way to lock your macOS Mojave machine is **Command+Control+Q**\n\nfor more options there is a detailed list on [macpaw](https://macpaw.com/how-to/lock-mac-screen)\n\n\n## Locking from Command-line\n\nThe [core](./Lock.app/Contents/MacOS/main.command) of this app is a simple one line call to one of MacOS core services\nand if you spend most of your time in the command-line you can just create a alias for it\nwithin your shell configuration (~/.bashrc, ~/zshrc ...)\n\n```sh\nalias lock='open /Applications/Lock.app'\n```\n\n\n## Known issues\n\nSpotlight does not learn from your actions like Alfred does - if you have multiple applications\nwith `lock` in their name or description the lock app might not come up in the first place.\n\n\n## Development\n\nClone the repo:\n```\ngit clone git@github.com:duksis/Lock\n```\n\nAfter making changes install the development version locally:\n```\ncp -Rv Lock/Lock.app /Applications/\n```\n\n\n## Releasing\n\n1. run `scripts/bump_version NEW.VERSION.NUMBER`\n2. push your changes\n3. create a [new release](https://github.com/duksis/Lock/releases/new)\n\n\n## License\nLock.app is released under the [MIT License](./LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fduksis%2Flock","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fduksis%2Flock","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fduksis%2Flock/lists"}