keyboard
Send keystrokes or text to a specific window, focusing it first so shortcuts and typed input reach the intended application. Use for automating app-level shortcuts and text entry on Hyprland.
Instructions
Keyboard to the focused app. action='type' (text, unicode-safe) |
'key' (keys combo: 'ctrl+shift+t', 'esc', 'F5'; aliases
enter/esc/tab/backspace/pgup/pgdn/arrows, else XKB keysyms). Pass
window (an address from desktop) to focus that window first, so
keystrokes land in the intended app rather than whatever currently
holds focus. This drives shortcuts the focused application handles
(ctrl+t, ctrl+l). It does NOT trigger Hyprland's own keybinds
(super+...): those go through use_bind, and workspace/window actions
through hypr. then ('desktop'|'screenshot'|'ui'|'none') appends the
result to this call.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| keys | No | ||
| text | No | ||
| then | No | none | |
| action | Yes | ||
| window | No | ||
| allow_auth | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |