Skip to content

Commit 47005f8

Browse files
authored
Merge pull request #29 from tmck-code/update-dark-mode-toggle
add "shortcuts" method
2 parents 18e3b75 + 5470fee commit 47005f8

1 file changed

Lines changed: 45 additions & 13 deletions

File tree

Lines changed: 45 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,26 @@
11
# 20250102 OSX dark mode shortcut
22

3+
> Update 20250924: As of the release of macOS Tahoe, you can also use the new "Shortcuts" app to achieve this!
4+
> These shortcuts can't be assigned to keyboard shortcuts yet, but you can run them via Spotlight.
5+
6+
- [20250102 OSX dark mode shortcut](#20250102-osx-dark-mode-shortcut)
7+
- [Automator](#automator)
8+
- [1. Launch Automator](#1-launch-automator)
9+
- [2. Create "Quick Action"](#2-create-quick-action)
10+
- [3. Search for "appearance"](#3-search-for-appearance)
11+
- [4. Drag "Change System Appearance" to the workflow](#4-drag-change-system-appearance-to-the-workflow)
12+
- [5. Save the Quick Action](#5-save-the-quick-action)
13+
- [6. Assign a Keyboard Shortcut](#6-assign-a-keyboard-shortcut)
14+
- [Shortcuts](#shortcuts)
15+
- [1. Launch Shortcuts](#1-launch-shortcuts)
16+
- [2. Add a new shortcut](#2-add-a-new-shortcut)
17+
- [3. Create the shortcut logic](#3-create-the-shortcut-logic)
18+
- [4. Use via Spotlight](#4-use-via-spotlight)
19+
20+
---
21+
22+
## Automator
23+
324
*Using the power of OSX Automator!*
425

526
<img src="https://github.com/user-attachments/assets/3c1aaaf4-6159-4573-81dd-40022f571f29" style="width: 20%">
@@ -8,43 +29,54 @@
829
930
*Documentation: https://support.apple.com/en-au/guide/automator/welcome/mac*
1031

11-
- [20250102 OSX dark mode shortcut](#20250102-osx-dark-mode-shortcut)
12-
- [1. Launch Automator](#1-launch-automator)
13-
- [2. Create "Quick Action"](#2-create-quick-action)
14-
- [3. Search for "appearance"](#3-search-for-appearance)
15-
- [4. Drag "Change System Appearance" to the workflow](#4-drag-change-system-appearance-to-the-workflow)
16-
- [5. Save the Quick Action](#5-save-the-quick-action)
17-
- [6. Assign a Keyboard Shortcut](#6-assign-a-keyboard-shortcut)
1832

1933

2034
---
2135

22-
## 1. Launch Automator
36+
### 1. Launch Automator
2337

2438
![launch](https://github.com/user-attachments/assets/ffad91c7-2419-4b88-8d63-14b3b0fb7aad)
2539

26-
## 2. Create "Quick Action"
40+
### 2. Create "Quick Action"
2741

2842
![create](https://github.com/user-attachments/assets/2d7ba1a6-2f29-4af0-b290-7efe938314c4)
2943

30-
## 3. Search for "appearance"
44+
### 3. Search for "appearance"
3145

3246
![search](https://github.com/user-attachments/assets/e3525979-1605-4055-91b6-6487d8e62e0c)
3347

34-
## 4. Drag "Change System Appearance" to the workflow
48+
### 4. Drag "Change System Appearance" to the workflow
3549

3650
![configure](https://github.com/user-attachments/assets/f15f4e2f-fccd-4975-b625-7e895d86790d)
3751

3852
If you like, you can click "Run" in the top-right corner to test the action.
3953

40-
## 5. Save the Quick Action
54+
### 5. Save the Quick Action
4155

4256
![save](https://github.com/user-attachments/assets/9064cde7-fb26-4edf-9a34-61399110d4c1)
4357

44-
## 6. Assign a Keyboard Shortcut
58+
### 6. Assign a Keyboard Shortcut
4559

4660
Open `System Preferences` > `Keyboard` > `Shortcuts` > `Services` > `General` and assign a keyboard shortcut to the Quick Action.
4761

4862
![shortcut](https://github.com/user-attachments/assets/63749d21-c33c-457d-94a6-6df095f1937e)
4963

5064
Done! Enjoy your new shortcut 🤓🙈
65+
66+
---
67+
68+
## Shortcuts
69+
70+
### 1. Launch Shortcuts
71+
72+
### 2. Add a new shortcut
73+
74+
### 3. Create the shortcut logic
75+
76+
> Now you can just close the window to save your shortcut!
77+
78+
### 4. Use via Spotlight
79+
80+
Despite the name, it doesn't seem like it's currently possible to assign a keyboard shortcut to a shortcut created in the Shortcuts app.
81+
82+
Instead, you can run it via Spotlight (Cmd + Space) by typing the name of the shortcut. This can be made easier by "adding quick keys" to the Spotlight search, in this example I've chosen the letter `"t"`

0 commit comments

Comments
 (0)