Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/duksis/lock
🔒 MacOS Application that does only one thing -> Locks your Mac
https://github.com/duksis/lock
macos-app shell
Last synced: 2 months ago
JSON representation
🔒 MacOS Application that does only one thing -> Locks your Mac
- Host: GitHub
- URL: https://github.com/duksis/lock
- Owner: duksis
- License: mit
- Created: 2019-07-26T20:22:51.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2024-05-29T13:28:57.000Z (7 months ago)
- Last Synced: 2024-05-30T00:49:20.757Z (7 months ago)
- Topics: macos-app, shell
- Language: Shell
- Homepage:
- Size: 13.1 MB
- Stars: 56
- Watchers: 1
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
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)
Locks your Mac
## Intro
A simple Mac application that does only one thing
----> It locks your Mac!![lock through spotlight](./assets/lock_in_action_small.gif)
## Installation
1. Download [the image](https://github.com/duksis/Lock/releases/download/v1.1.1/lock.dmg)
2. Open it
3. Move `Lock` app to your `Applications` folder
4. In case of Big Sur you might need to enable `Preferences -> Security & Privacy -> Accessibility` and check the checkbox next to the Terminal App## Background
Was using [Alftred app](https://www.alfredapp.com) for multiple years and recently realised that
from all of it's features and fancy configuration I have set up long time ago I was using exactly
nothing. I was still using it every day, but just for two things:
1. opening a application (mainly iTerm and Chrome)
2. Locking my machine whenever I was leavingSo the first thing regular Spotlight can do as well, for my new setup I decided on the minimalist
approach. After a week or so I realised that I can't get used to locking with `⌘⌃Q` and hot corners
are not a solution, but a problem by themselves.Instead of switching back to Alfread I decided to create a simple application that is just locking
the machine when it is triggered and name it `Lock` this way Spotlight should be able to find
it and suggest you it whenever you are typing `Lock` hopefully already on the first letters.## Default ways
The default way to lock your macOS Mojave machine is **Command+Control+Q**
for more options there is a detailed list on [macpaw](https://macpaw.com/how-to/lock-mac-screen)
## Locking from Command-line
The [core](./Lock.app/Contents/MacOS/main.command) of this app is a simple one line call to one of MacOS core services
and if you spend most of your time in the command-line you can just create a alias for it
within your shell configuration (~/.bashrc, ~/zshrc ...)```sh
alias lock='open /Applications/Lock.app'
```## Known issues
Spotlight does not learn from your actions like Alfred does - if you have multiple applications
with `lock` in their name or description the lock app might not come up in the first place.## Development
Clone the repo:
```
git clone [email protected]:duksis/Lock
```After making changes install the development version locally:
```
cp -Rv Lock/Lock.app /Applications/
```## Releasing
1. run `scripts/bump_version NEW.VERSION.NUMBER`
2. push your changes
3. create a [new release](https://github.com/duksis/Lock/releases/new)## License
Lock.app is released under the [MIT License](./LICENSE).