Broadcast your shortcuts…
I could not find a macOS application to broadcast keyboard shortcuts to a web page so it can be easily used with various live streaming softwares so I decided to build my own.
KeyPrompter is a Go application monitoring keyboard shortcuts and also serving locally a React application which can be used to visualize the pressed shortcuts using WebSocket (only shortcuts are visible meaning typing text won't display anything).
- Download the latest version matching your system architecture.
- Extract the downloaded archive.
- Optionally, move the
keyprompter
application in yourPATH
(e.g./usr/local/bin/
) - Ensure the
keyprompter
application can be executed (e.g.chmod +x keyprompter
).
Note: the application has been developed and tested only on macOS with a QWERTY layout and even tho it should technically work on other systems, it will probably require some adjustments and testing.
You can quickly starts the application using the following command:
$ keyprompter
You can now view the KeyPrompter UI in the browser: http://localhost:8484.
Various options are available:
Option | Default | Description |
---|---|---|
-p VALUE |
8484 | Port used to run the web UI. |
-c VALUE |
None | Path to the optional client configuration file |
-v |
Display the application version. | |
-h |
Display the application options. |
Using the -c
option, an optional path to a client configuration file can be passed down to the application.
The configuration is a TOML file where any value can be configured individually. Here is an example with the default values for each options:
# The maximum number of shortcuts to display at the same time.
Count = 5
# The duration in seconds during when a shortcut is visible on screen.
Duration = 5
# The font size in pixels used when displaying a shortcut.
FontSize = 18
# The font color used for a shortcut text (any supported CSS value).
FontColor = "white"
# The background color for a shortcut (any supported CSS value).
BgColor = "rgba(0, 0, 0, 0.6)"
- Fork & clone this repository.
- Make sure your Go version is at least
1.16
. - Build & run the development version using
go run .
.
Licensed under the MIT License, Copyright © HiDeoo.
See LICENSE for more information.