Describe your feature request
Some terminal applications, for example Kakoune, use a client-server model and may wish to switch focus from one terminal window to another. There is currently no way to do this without resorting to compositor-specific hacks.
I would like to request a custom OSC sequence for this, looking something like the following:
(code is a placeholder since I don't really know what OSCs are available - is there a resource anywhere that lists all known escape sequences across all terminals?)
- Request an activation token with
OSC code ; ? ST
Response from the terminal is in the form OSC code ; token ST
The seat and serial of the token should be set to the last keyboard, mouse button, or focus event that was sent (via escape codes) to the application running inside the terminal. The surface should be set to the terminal's surface, and the app id should be left unset.
- Activate the current terminal with
OSC code ; token ST
The spec for xdg-activation-v1 doesn't appear to place any restrictions on what the token string actually is, but in practice I think it's safe to assume it won't contain any control characters, and won't be just a single question mark.
### Describe your feature request
Some terminal applications, for example Kakoune, use a client-server model and may wish to switch focus from one terminal window to another. There is currently no way to do this without resorting to compositor-specific hacks.
I would like to request a custom OSC sequence for this, looking something like the following:
(`code` is a placeholder since I don't really know what OSCs are available - is there a resource anywhere that lists all known escape sequences across all terminals?)
- Request an activation token with `OSC` `code` `;` `?` `ST`
Response from the terminal is in the form `OSC` `code` `;` `token` `ST`
The seat and serial of the token should be set to the last keyboard, mouse button, or focus event that was sent (via escape codes) to the application running inside the terminal. The surface should be set to the terminal's surface, and the app id should be left unset.
- Activate the current terminal with `OSC` `code` `;` `token` `ST`
The spec for xdg-activation-v1 doesn't appear to place any restrictions on what the token string actually *is*, but in practice I think it's safe to assume it won't contain any control characters, and won't be just a single question mark.