├── .editorconfig
├── .gitattributes
├── .gitignore
├── .npmrc
├── icon.png
├── info.plist
├── license
├── lock
├── package.json
└── readme.md
/.editorconfig:
--------------------------------------------------------------------------------
1 | root = true
2 |
3 | [*]
4 | indent_style = tab
5 | end_of_line = lf
6 | charset = utf-8
7 | trim_trailing_whitespace = true
8 | insert_final_newline = true
9 |
10 | [*.yml]
11 | indent_style = space
12 | indent_size = 2
13 |
--------------------------------------------------------------------------------
/.gitattributes:
--------------------------------------------------------------------------------
1 | * text=auto eol=lf
2 | lock binary
3 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | node_modules
2 | yarn.lock
3 |
--------------------------------------------------------------------------------
/.npmrc:
--------------------------------------------------------------------------------
1 | package-lock=false
2 |
--------------------------------------------------------------------------------
/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sindresorhus/alfred-lock/e140d84a601cbead3619ab00e60f00eb50e57072/icon.png
--------------------------------------------------------------------------------
/info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | bundleid
6 | com.sindresorhus.lock
7 | category
8 | Productivity
9 | connections
10 |
11 | 2A210EB0-DE13-440E-BB05-5C45FDB7D57C
12 |
13 |
14 | destinationuid
15 | 6BFA3E47-1B83-44B0-BC18-4C2300F89E7B
16 | modifiers
17 | 0
18 | modifiersubtext
19 |
20 | vitoclose
21 |
22 |
23 |
24 | 6BFA3E47-1B83-44B0-BC18-4C2300F89E7B
25 |
26 |
27 | createdby
28 |
29 | description
30 | Lock your Mac
31 | disabled
32 |
33 | name
34 | Lock
35 | objects
36 |
37 |
38 | config
39 |
40 | concurrently
41 |
42 | escaping
43 | 0
44 | script
45 |
46 | scriptargtype
47 | 1
48 | scriptfile
49 | lock
50 | type
51 | 8
52 |
53 | type
54 | alfred.workflow.action.script
55 | uid
56 | 6BFA3E47-1B83-44B0-BC18-4C2300F89E7B
57 | version
58 | 2
59 |
60 |
61 | config
62 |
63 | argumenttype
64 | 2
65 | keyword
66 | lock
67 | subtext
68 |
69 | text
70 | Lock
71 | withspace
72 |
73 |
74 | type
75 | alfred.workflow.input.keyword
76 | uid
77 | 2A210EB0-DE13-440E-BB05-5C45FDB7D57C
78 | version
79 | 1
80 |
81 |
82 | readme
83 |
84 | uidata
85 |
86 | 2A210EB0-DE13-440E-BB05-5C45FDB7D57C
87 |
88 | xpos
89 | 10
90 | ypos
91 | 10
92 |
93 | 6BFA3E47-1B83-44B0-BC18-4C2300F89E7B
94 |
95 | xpos
96 | 140
97 | ypos
98 | 10
99 |
100 |
101 | webaddress
102 |
103 |
104 |
105 |
--------------------------------------------------------------------------------
/license:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) Sindre Sorhus (https://sindresorhus.com)
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6 |
7 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8 |
9 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
10 |
--------------------------------------------------------------------------------
/lock:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sindresorhus/alfred-lock/e140d84a601cbead3619ab00e60f00eb50e57072/lock
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "alfred-lock",
3 | "version": "2.0.0",
4 | "description": "Alfred workflow to lock your Mac",
5 | "license": "MIT",
6 | "repository": "sindresorhus/alfred-lock",
7 | "author": {
8 | "name": "Sindre Sorhus",
9 | "email": "sindresorhus@gmail.com",
10 | "url": "https://sindresorhus.com"
11 | },
12 | "engines": {
13 | "node": ">=8"
14 | },
15 | "scripts": {
16 | "postinstall": "alfy-init",
17 | "preuninstall": "alfy-cleanup"
18 | },
19 | "files": [
20 | "icon.png",
21 | "info.plist",
22 | "lock"
23 | ],
24 | "keywords": [
25 | "alfred",
26 | "workflow",
27 | "alfy",
28 | "macos",
29 | "mac",
30 | "lock",
31 | "system",
32 | "screen",
33 | "os",
34 | "login",
35 | "password"
36 | ],
37 | "dependencies": {
38 | "alfy": "^0.8.0"
39 | }
40 | }
41 |
--------------------------------------------------------------------------------
/readme.md:
--------------------------------------------------------------------------------
1 | # alfred-lock
2 |
3 | > [Alfred](https://alfredapp.com) workflow to lock your Mac
4 |
5 | The built-in "Lock" command is buggy for me.
6 |
7 | ## Install
8 |
9 | ```
10 | $ npm install --global alfred-lock
11 | ```
12 |
13 | *Requires the Alfred [Powerpack](https://www.alfredapp.com/powerpack/).*
14 |
15 | ## Usage
16 |
17 | In Alfred, type `lock`, and then press Enter.
18 |
19 | ## Related
20 |
21 | - [lock-cli](https://github.com/sindresorhus/lock-cli) - Command-line version
22 | - [lock-system](https://github.com/sindresorhus/lock-system) - Node.js version
23 |
--------------------------------------------------------------------------------