-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1485 from michaelwitk/my-settings
windows feature: taskbar + number opens app
- Loading branch information
Showing
3 changed files
with
351 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,180 @@ | ||
{ | ||
"title": "Launch MacOS apps, like on windows + number", | ||
"rules": [ | ||
{ | ||
"description": "Launch apps by (left) option + number.", | ||
"manipulators": [ | ||
{ | ||
"type": "basic", | ||
"from": { | ||
"key_code": "q", | ||
"modifiers": { | ||
"mandatory": [ | ||
"left_gui" | ||
] | ||
} | ||
}, | ||
"to": [ | ||
{ | ||
"shell_command": "open -a 'Safari.app'" | ||
} | ||
] | ||
}, | ||
{ | ||
"type": "basic", | ||
"from": { | ||
"key_code": "w", | ||
"modifiers": { | ||
"mandatory": [ | ||
"left_gui" | ||
] | ||
} | ||
}, | ||
"to": [ | ||
{ | ||
"shell_command": "open -a 'Visual Studio Code.app'" | ||
} | ||
], | ||
"conditions": [ | ||
{ | ||
"type": "frontmost_application_unless", | ||
"bundle_identifiers": [ | ||
"^com\\.apple\\.Terminal$", | ||
"^com\\.brave\\.Browser$", | ||
"^com\\.microsoft\\.VSCode$" | ||
] | ||
} | ||
] | ||
}, | ||
{ | ||
"type": "basic", | ||
"from": { | ||
"key_code": "w", | ||
"modifiers": { | ||
"mandatory": [ | ||
"left_alt" | ||
] | ||
} | ||
}, | ||
"to": [ | ||
{ | ||
"shell_command": "open -a 'Firefox.app'" | ||
} | ||
] | ||
}, | ||
{ | ||
"type": "basic", | ||
"from": { | ||
"key_code": "q", | ||
"modifiers": { | ||
"mandatory": [ | ||
"left_alt" | ||
] | ||
} | ||
}, | ||
"to": [ | ||
{ | ||
"shell_command": "open -a 'Safari.app'" | ||
} | ||
] | ||
}, | ||
{ | ||
"type": "basic", | ||
"from": { | ||
"key_code": "1", | ||
"modifiers": { | ||
"mandatory": [ | ||
"left_alt" | ||
] | ||
} | ||
}, | ||
"to": [ | ||
{ | ||
"shell_command": "open -a 'Brave Browser.app'" | ||
} | ||
] | ||
}, | ||
{ | ||
"type": "basic", | ||
"from": { | ||
"key_code": "2", | ||
"modifiers": { | ||
"mandatory": [ | ||
"left_alt" | ||
] | ||
} | ||
}, | ||
"to": [ | ||
{ | ||
"shell_command": "open -a 'Visual Studio Code.app'" | ||
} | ||
] | ||
}, | ||
{ | ||
"type": "basic", | ||
"from": { | ||
"key_code": "3", | ||
"modifiers": { | ||
"mandatory": [ | ||
"left_alt" | ||
] | ||
} | ||
}, | ||
"to": [ | ||
{ | ||
"shell_command": "open -a 'Terminal.app'" | ||
} | ||
] | ||
}, | ||
{ | ||
"type": "basic", | ||
"from": { | ||
"key_code": "4", | ||
"modifiers": { | ||
"mandatory": [ | ||
"left_alt" | ||
] | ||
} | ||
}, | ||
"to": [ | ||
{ | ||
"shell_command": "open -a 'Discord.app'" | ||
} | ||
] | ||
}, | ||
{ | ||
"type": "basic", | ||
"from": { | ||
"key_code": "5", | ||
"modifiers": { | ||
"mandatory": [ | ||
"left_alt" | ||
] | ||
} | ||
}, | ||
"to": [ | ||
{ | ||
"shell_command": "open -a 'Safari.app'" | ||
} | ||
] | ||
}, | ||
{ | ||
"type": "basic", | ||
"from": { | ||
"key_code": "6", | ||
"modifiers": { | ||
"mandatory": [ | ||
"left_alt" | ||
] | ||
} | ||
}, | ||
"to": [ | ||
{ | ||
"shell_command": "open -a 'Discord.app'" | ||
} | ||
] | ||
} | ||
] | ||
} | ||
] | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,168 @@ | ||
// JavaScript should be written in ECMAScript 5.1. | ||
|
||
function main() { | ||
console.log( | ||
JSON.stringify( | ||
{ | ||
title: 'Launch MacOS apps, like on windows + number', | ||
rules: [ | ||
{ | ||
description: 'Launch apps by (left) option + number.', | ||
manipulators: [ | ||
{ | ||
type: 'basic', | ||
from: { | ||
key_code: 'q', | ||
modifiers: { | ||
mandatory: ['left_gui'], | ||
}, | ||
}, | ||
to: [ | ||
{ | ||
shell_command: "open -a 'Safari.app'", | ||
}, | ||
], | ||
}, | ||
{ | ||
type: 'basic', | ||
from: { | ||
key_code: 'w', | ||
modifiers: { | ||
mandatory: ['left_gui'], | ||
}, | ||
}, | ||
to: [ | ||
{ | ||
shell_command: "open -a 'Visual Studio Code.app'", | ||
}, | ||
], | ||
conditions: [ | ||
{ | ||
type: 'frontmost_application_unless', | ||
bundle_identifiers: ['^com\\.apple\\.Terminal$', '^com\\.brave\\.Browser$', '^com\\.microsoft\\.VSCode$'], | ||
}, | ||
], | ||
}, | ||
{ | ||
type: 'basic', | ||
from: { | ||
key_code: 'w', | ||
modifiers: { | ||
mandatory: ['left_alt'], | ||
}, | ||
}, | ||
to: [ | ||
{ | ||
shell_command: "open -a 'Firefox.app'", | ||
}, | ||
], | ||
}, | ||
{ | ||
type: 'basic', | ||
from: { | ||
key_code: 'q', | ||
modifiers: { | ||
mandatory: ['left_alt'], | ||
}, | ||
}, | ||
to: [ | ||
{ | ||
shell_command: "open -a 'Safari.app'", | ||
}, | ||
], | ||
}, | ||
{ | ||
type: 'basic', | ||
from: { | ||
key_code: '1', | ||
modifiers: { | ||
mandatory: ['left_alt'], | ||
}, | ||
}, | ||
to: [ | ||
{ | ||
shell_command: "open -a 'Brave Browser.app'", | ||
}, | ||
], | ||
}, | ||
{ | ||
type: 'basic', | ||
from: { | ||
key_code: '2', | ||
modifiers: { | ||
mandatory: ['left_alt'], | ||
}, | ||
}, | ||
to: [ | ||
{ | ||
shell_command: "open -a 'Visual Studio Code.app'", | ||
}, | ||
], | ||
}, | ||
{ | ||
type: 'basic', | ||
from: { | ||
key_code: '3', | ||
modifiers: { | ||
mandatory: ['left_alt'], | ||
}, | ||
}, | ||
to: [ | ||
{ | ||
shell_command: "open -a 'Terminal.app'", | ||
}, | ||
], | ||
}, | ||
{ | ||
type: 'basic', | ||
from: { | ||
key_code: '4', | ||
modifiers: { | ||
mandatory: ['left_alt'], | ||
}, | ||
}, | ||
to: [ | ||
{ | ||
shell_command: "open -a 'Discord.app'", | ||
}, | ||
], | ||
}, | ||
{ | ||
type: 'basic', | ||
from: { | ||
key_code: '5', | ||
modifiers: { | ||
mandatory: ['left_alt'], | ||
}, | ||
}, | ||
to: [ | ||
{ | ||
shell_command: "open -a 'Safari.app'", | ||
}, | ||
], | ||
}, | ||
{ | ||
type: 'basic', | ||
from: { | ||
key_code: '6', | ||
modifiers: { | ||
mandatory: ['left_alt'], | ||
}, | ||
}, | ||
to: [ | ||
{ | ||
shell_command: "open -a 'Discord.app'", | ||
}, | ||
], | ||
}, | ||
], | ||
}, | ||
], | ||
}, | ||
null, | ||
' ' | ||
) | ||
) | ||
} | ||
|
||
main() |