Skip to content

Commit

Permalink
🏷️ Add to.software_function.open_applicationopen_application type
Browse files Browse the repository at this point in the history
  • Loading branch information
evan-liu committed Feb 15, 2025
1 parent cc1a770 commit cfd9daa
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/karabiner/karabiner-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,10 +112,17 @@ export type ToSleepSystem = { delay_milliseconds?: number }
/** @see https://karabiner-elements.pqrs.org/docs/json/complex-modifications-manipulator-definition/to/set-notification-message/ */
export type ToNotificationMessage = { id: string; text: string }

/** @see https://karabiner-elements.pqrs.org/docs/json/complex-modifications-manipulator-definition/to/software_function/open_application/ */
export type ToOpenApplication =
| { bundle_identifier: string }
| { file_path: string }
| { frontmost_application_history_index: number }

export type ToSoftwareFunction =
| { cg_event_double_click: ToCgEventDoubleClick }
| { set_mouse_cursor_position: ToMouseCursorPosition }
| { iokit_power_management_sleep_system: ToSleepSystem }
| { open_application: ToOpenApplication }

export type ToEventOptions = {
modifiers?: Modifier[]
Expand Down

0 comments on commit cfd9daa

Please sign in to comment.