Created
August 14, 2020 18:30
-
-
Save haikyuu/0e7603345acec7ffe1d63ed1337a7d6c to your computer and use it in GitHub Desktop.
Configuration for Autumn for my Mac. (reusable)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const createToggler = (name) => () => { | |
const app = App.find(name) | |
if (App.focusedApp() === app) { | |
app.hide() | |
} else { | |
App.open(name) | |
} | |
} | |
// Hotkey.activate(['command'], '\\', createToggler('WebStorm')); | |
Hotkey.activate(['command'], "'", createToggler('Simulator')); | |
Hotkey.activate(['command'], ".", createToggler('Firefox Developer Edition')); | |
// Hotkey.activate(['command'], "]", createToggler('Airtable')); | |
Hotkey.activate(['option'], "f", createToggler('Figma')); | |
Hotkey.activate(['command'], ";", createToggler('Slack')); | |
// Hotkey.activate(['command'], "j", createToggler('Joplin')); | |
Hotkey.activate(['command'], "m", createToggler('Microsoft To Do')); | |
Hotkey.activate(['option'], "s", createToggler('stackoverflow')); | |
Hotkey.activate(['option'], "d", createToggler('DevDocs')); | |
Hotkey.activate(['option'], "c", createToggler('Google Chrome')); | |
// Hotkey.activate(['option'], "z", createToggler('zoom.us')); | |
Hotkey.activate(['option'], "v", createToggler('Visual Studio Code')); | |
Hotkey.activate(['option'], "g", createToggler('player')); | |
Hotkey.activate(['option'], "h", createToggler('HEY')); | |
Hotkey.activate(['option'], "x", createToggler('Adobe XD')); | |
Hotkey.activate(['option'], "z", createToggler('Zeplin')); | |
// Hotkey.activate(["control"], "v", () => { | |
// const command = "/bin/zsh vpn"; | |
// const { code, stdout, stderr } = Shell.runSync(command) | |
// Notification.post({ title: `Result from running ${command}`, subtitle: `${code}`, body: `${stdout}\n${stderr}` }) | |
// }); | |
Hotkey.activate(['option'], "n", createToggler('Notion')); | |
Hotkey.activate(['option'], "/", createToggler('Autumn')); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment