Skip to content

A hotkey visualizer for stream overlays, with osu! and Log Off Now in mind.

License

Notifications You must be signed in to change notification settings

minisbett/epiclonvisualizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Icon

Log Off Now Hotkey Visualizer

License: GPL v3 Downloads Latest Release

A lightweight and customizable websocket/browser-based hotkey visualizer,
made specifically for Log Off Now's Twitch stream overlay.

DemoUsageConfigurationDevelopment

Made with ❤️ by @minisbett and @Omekyu

Usage

Downloading and running the app

To get started, head over to the latest release page on GitHub. From there, locate and download the executable file (ending with .exe).

Once the download is complete, simply double-click the downloaded executable file to launch the application. No installation is required, and the application will start automatically upon execution.

Embedding in OBS

The application provides an out-of-the-box visualization webpage, running on http://localhost:8000 by default.

If you're using OBS Studio to stream on the streaming platform of your choice, you can easily integrate the hotkey visualizer into your overlay. Here's how:

  1. Open OBS Studio and navigate to the scene where you want to add the visualizer.
  2. Click the "+" icon under the "Sources" section to add a new source.
  3. Choose "Browser" as the source type and give it an appropriate name (e.g., "Hotkey Visualizer").
  4. In the URL field, enter http://localhost:8000 (default, unless configured otherwise)
  5. For the width and height, choose suitable values to ensure the displayed hotkeys are fully visible and not cut off. (e.g. 1000x100)

Using the websocket directly

All pressed hotkeys are being sent to a local websocket, which can be accessed via ws://localhost:8000 by default. The payloads sent look as follows:

{
     // as configured in the config, e.g. "ctrl+shift+p"
    "hotkey": "<hotkey>",
     // YYYY-MM-DD HH:MM:SS.microseconds
    "timestamp": "<timestamp>"
}

Configuration

In the config.json file, you can customize the hotkeys to capture, the style of the visualizer and the port on which the application is running.

On first startup, the application creates a config.json file in the same directory, containing the default configuration. After that, you are free to adjust all the values to your liking.

Configuration options

  • port: Specifies the port number on which the server runs. Default is 8000.

  • osu_editor_only: If true, hotkeys are only detected if the currently active window is the osu! editor.

Hotkey Style

  • is_horizontal: Determines the orientation of the hotkey display. When true, hotkeys are displayed horizontally, with the most recently pressed hotkey on the right. When false, hotkeys are displayed vertically, with the most recently pressed hotkey on the bottom.

Orientation Graphic

  • fill_height: If true, the font size of the hotkeys is changed so that the hotkeys fill the whole height of the browser. Only works if is_horizontal is true.

  • chin-color: Color of the chin (bottom border) of the hotkey.

  • shadow_color: Color of the shadow around the hotkey.

  • text_color: Color of the hotkey text displayed.

  • subtext_color: Color of the "combo" text displayed.

  • border_color: Color of the border around the hotkey.

  • background_color: Background color of the hotkey.

  • animation_duration: Duration of the fade-out animation.

  • animation_delay: Delay before a hotkey fades out.

  • font_size: Size of the font used for displaying hotkeys.

Hotkeys

A list of the hotkeys that are being captured by the application. The key combination is written by the human-readable names of the keys, combined with a plus-sign. (Examples: ctrl+shift+p, shift+del)

The syntax for the hotkey-literals goes as follows:

          alt+shift+a     alt+b, c
 Keys:    ^~^ ^~~~^ ^     ^~^ ^  ^
Steps:    ^~~~~~~~~~^     ^~~~^  ^

The first hotkey triggers when alt, shift and A are pressed at the same time. The second hotkey triggers when alt and B are pressed, followed by the key c as the second step afterwards.