Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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 leaving

So 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).