From 48fab684a3268df4e0edb76936b1debfe627cfb0 Mon Sep 17 00:00:00 2001 From: onyx-and-iris Date: Thu, 22 May 2025 09:42:51 +0100 Subject: [PATCH] add hotkey section --- README.md | 37 ++++++++++++++++++++++++++++++++++++- 1 file changed, 36 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index d5d73e7..2436737 100644 --- a/README.md +++ b/README.md @@ -452,10 +452,45 @@ obsws-cli virtualcam toggle obsws-cli virtualcam status ``` +#### Hotkey + +- list: List all hotkeys. + +```console +obsws-cli hotkey list +``` + +- trigger: Trigger a hotkey by name. + +```console +obsws-cli hotkey trigger OBSBasic.StartStreaming + +obsws-cli hotkey trigger OBSBasic.StopStreaming +``` + +- trigger-sequence: Trigger a hotkey by sequence. + - flags: + + *optional* + - --shift: Press shift. + - --ctrl: Press control. + - --alt: Press alt. + - --cmd: Press command (mac). + + - args: + - Check [obs-hotkeys.h][obs-keyids] for a full list of OBS key ids. + +```console +obsws-cli hotkey trigger-sequence OBS_KEY_F1 --ctrl + +obsws-cli hotkey trigger-sequence OBS_KEY_F1 --shift --ctrl +``` + ## License `obsws-cli` is distributed under the terms of the [MIT](https://spdx.org/licenses/MIT.html) license. -[obs-studio]: https://obsproject.com/ \ No newline at end of file +[obs-studio]: https://obsproject.com/ +[obs-keyids]: https://github.com/obsproject/obs-studio/blob/master/libobs/obs-hotkeys.h \ No newline at end of file