Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update core #1751

Merged
merged 2 commits into from
Dec 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion core
Submodule core updated 1 files
+ bin/karabiner_cli
22 changes: 11 additions & 11 deletions public/json/personal_tekezo_launcher_mode_v4.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
],
"rules": [
{
"description": "Launcher Mode v4 (rev 25)",
"description": "Launcher Mode v4 (rev 26)",
"available_since": "15.3.4",
"manipulators": [
{
Expand All @@ -22,7 +22,7 @@
{
"software_function": {
"open_application": {
"history_index": 1
"frontmost_application_history_index": 1
}
}
}
Expand Down Expand Up @@ -74,7 +74,7 @@
{
"software_function": {
"open_application": {
"history_index": 1
"frontmost_application_history_index": 1
}
}
}
Expand All @@ -98,7 +98,7 @@
{
"software_function": {
"open_application": {
"history_index": 2
"frontmost_application_history_index": 2
}
}
}
Expand Down Expand Up @@ -150,7 +150,7 @@
{
"software_function": {
"open_application": {
"history_index": 2
"frontmost_application_history_index": 2
}
}
}
Expand All @@ -174,7 +174,7 @@
{
"software_function": {
"open_application": {
"history_index": 3
"frontmost_application_history_index": 3
}
}
}
Expand Down Expand Up @@ -226,7 +226,7 @@
{
"software_function": {
"open_application": {
"history_index": 3
"frontmost_application_history_index": 3
}
}
}
Expand All @@ -250,7 +250,7 @@
{
"software_function": {
"open_application": {
"history_index": 4
"frontmost_application_history_index": 4
}
}
}
Expand Down Expand Up @@ -302,7 +302,7 @@
{
"software_function": {
"open_application": {
"history_index": 4
"frontmost_application_history_index": 4
}
}
}
Expand All @@ -326,7 +326,7 @@
{
"software_function": {
"open_application": {
"history_index": 5
"frontmost_application_history_index": 5
}
}
}
Expand Down Expand Up @@ -378,7 +378,7 @@
{
"software_function": {
"open_application": {
"history_index": 5
"frontmost_application_history_index": 5
}
}
}
Expand Down
18 changes: 9 additions & 9 deletions src/json/personal_tekezo_launcher_mode_v4.json.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ function main() {
maintainers: ['tekezo'],
rules: [
{
description: 'Launcher Mode v4 (rev 25)',
description: 'Launcher Mode v4 (rev 26)',
available_since: '15.3.4',
manipulators: [].concat(
generateLauncherMode('1', { historyIndex: 1 }),
generateLauncherMode('2', { historyIndex: 2 }),
generateLauncherMode('3', { historyIndex: 3 }),
generateLauncherMode('4', { historyIndex: 4 }),
generateLauncherMode('5', { historyIndex: 5 }),
generateLauncherMode('1', { frontmostApplicationHistoryIndex: 1 }),
generateLauncherMode('2', { frontmostApplicationHistoryIndex: 2 }),
generateLauncherMode('3', { frontmostApplicationHistoryIndex: 3 }),
generateLauncherMode('4', { frontmostApplicationHistoryIndex: 4 }),
generateLauncherMode('5', { frontmostApplicationHistoryIndex: 5 }),
generateLauncherMode('a', { bundleIdentifier: 'com.apple.ActivityMonitor' }),
generateLauncherMode('c', { bundleIdentifier: 'com.google.Chrome' }),
generateLauncherMode('e', { bundleIdentifier: 'com.microsoft.VSCode' }),
Expand Down Expand Up @@ -49,7 +49,7 @@ function generateLauncherMode(
/**
* @type {{
* bundleIdentifier?: string,
* historyIndex?: number,
* frontmostApplicationHistoryIndex?: number,
* to?: any[],
* }} */
options
Expand All @@ -66,11 +66,11 @@ function generateLauncherMode(
},
})
}
if (options.historyIndex !== undefined) {
if (options.frontmostApplicationHistoryIndex !== undefined) {
to.push({
software_function: {
open_application: {
history_index: options.historyIndex,
frontmost_application_history_index: options.frontmostApplicationHistoryIndex,
},
},
})
Expand Down