[BUG]: Komorebi-bar schema for mouse seems incorrect #628

Closed
opened 2026-01-05 14:52:05 +01:00 by adam · 2 comments
Owner

Originally created by @MattKotsenas on GitHub (May 25, 2025).

Summary

The schema for the new mouse shortcuts feature in komorebi-bar doesn't appears misaligned with what the tool needs.

The schema itself suggests configuration like this:

  "mouse": {
    "on_secondary_click": {
      "Komorebi": {
        "message": {
          "type": "CloseWorkspace"
        }
      }
    }
  },

whereas the app crashes with that configuration until I change it to

  "mouse": {
    "on_secondary_click": {
        "message": {
          "type": "CloseWorkspace"
        }
    }
  },

The schema posted on the documentation page also appears different, specifying "Command" as a string: https://komorebi-bar.lgug2z.com/schema#mouse_on_secondary_click_Command

Version Information

Windows version

OS Name: Microsoft Windows 11 Enterprise
OS Version: 10.0.26100 Build 26100

Komorebi version

komorebic 0.1.37
tag:v0.1.37
commit_hash:00384ce3
build_time:2025-05-17 19:16:53 +00:00
build_env:rustc 1.87.0 (17067e9ac 2025-05-09),stable-x86_64-pc-windows-msvc

Komorebi Configuration

{
  "$schema": "https://raw.githubusercontent.com/LGUG2Z/komorebi/v0.1.37/schema.bar.json",
  "monitor": {
    "index": 1,
    "work_area_offset": {
      "left": -5,
      "top": 40,
      "right": -5,
      "bottom": 40
    }
  },
  "font_family": "JetBrains Mono",
  "theme": {
    "palette": "Base16",
    "name": "Ashes",
    "accent": "Base0D"
  },
  "transparency_alpha": 0,
  "grouping": {
    "kind": "Alignment",
    "style": "DefaultWithShadowB4O0S3",
    "rounding": 2
  },
  "mouse": {
    "on_secondary_click": {
      "message": {
        "type": "CloseWorkspace"
      }
    }
  },
  "left_widgets": [
    {
      "Komorebi": {
        "workspaces": {
          "enable": true,
          "hide_empty_workspaces": false
        },
        "layout": {
          "enable": true
        },
        "focused_window": {
          "enable": true,
          "show_icon": true
        }
      }
    }
  ],
  "right_widgets": [
    
  ]
}

Hotkey Configuration

.shell pwsh

Focus windows

alt + a : komorebic focus left
alt + s : komorebic focus down
alt + w : komorebic focus up
alt + d : komorebic focus right

Move windows

alt + shift + a : komorebic move left
alt + shift + s : komorebic move down
alt + shift + w : komorebic move up
alt + shift + d : komorebic move right
alt + shift + q : komorebic promote

Stack windows

alt + ctrl + a : komorebic stack left
alt + ctrl + s : komorebic stack down
alt + ctrl + w : komorebic stack up
alt + ctrl + d : komorebic stack right
alt + ctrl + q : komorebic unstack
alt + tab : komorebic cycle-stack next

Resize

alt + oem_plus : komorebic resize-axis horizontal increase
alt + oem_minus : komorebic resize-axis horizontal decrease
alt + shift + oem_plus : komorebic resize-axis vertical increase
alt + shift + oem_minus : komorebic resize-axis vertical decrease

Manipulate windows

alt + shift + t : komorebic toggle-float
alt + shift + f : komorebic toggle-monocle

Window manager options

alt + shift + r : komorebic retile
alt + p : komorebic toggle-pause

Layouts

alt + x : komorebic flip-layout horizontal
alt + y : komorebic flip-layout vertical

Workspaces

alt + 1 : komorebic focus-workspace 0
alt + 2 : komorebic focus-workspace 1
alt + 3 : komorebic focus-workspace 2
alt + 4 : komorebic focus-workspace 3
alt + 5 : komorebic focus-workspace 4
alt + 6 : komorebic focus-workspace 5
alt + 7 : komorebic focus-workspace 6
alt + 8 : komorebic focus-workspace 7

Move windows across workspaces

alt + shift + 1 : komorebic send-to-workspace 0
alt + shift + 2 : komorebic send-to-workspace 1
alt + shift + 3 : komorebic send-to-workspace 2
alt + shift + 4 : komorebic send-to-workspace 3
alt + shift + 5 : komorebic send-to-workspace 4
alt + shift + 6 : komorebic send-to-workspace 5
alt + shift + 7 : komorebic send-to-workspace 6
alt + shift + 8 : komorebic send-to-workspace 7

Output of komorebic check

No KOMOREBI_CONFIG_HOME detected, defaulting to C:\Users\matt

Looking for configuration files in C:\Users\matt

No komorebi configuration found in C:\Users\mat

If running 'komorebic start --await-configuration', you will manually have to call the following command to begin tiling: komorebic complete-configuration

Originally created by @MattKotsenas on GitHub (May 25, 2025). ### Summary The schema for the new mouse shortcuts feature in komorebi-bar doesn't appears misaligned with what the tool needs. The schema itself suggests configuration like this: ```json "mouse": { "on_secondary_click": { "Komorebi": { "message": { "type": "CloseWorkspace" } } } }, ``` whereas the app crashes with that configuration until I change it to ```json "mouse": { "on_secondary_click": { "message": { "type": "CloseWorkspace" } } }, ``` The schema posted on the documentation page also appears different, specifying "Command" as a string: https://komorebi-bar.lgug2z.com/schema#mouse_on_secondary_click_Command ### Version Information ### Windows version OS Name: Microsoft Windows 11 Enterprise OS Version: 10.0.26100 Build 26100 ### Komorebi version komorebic 0.1.37 tag:v0.1.37 commit_hash:00384ce3 build_time:2025-05-17 19:16:53 +00:00 build_env:rustc 1.87.0 (17067e9ac 2025-05-09),stable-x86_64-pc-windows-msvc ### Komorebi Configuration ```json { "$schema": "https://raw.githubusercontent.com/LGUG2Z/komorebi/v0.1.37/schema.bar.json", "monitor": { "index": 1, "work_area_offset": { "left": -5, "top": 40, "right": -5, "bottom": 40 } }, "font_family": "JetBrains Mono", "theme": { "palette": "Base16", "name": "Ashes", "accent": "Base0D" }, "transparency_alpha": 0, "grouping": { "kind": "Alignment", "style": "DefaultWithShadowB4O0S3", "rounding": 2 }, "mouse": { "on_secondary_click": { "message": { "type": "CloseWorkspace" } } }, "left_widgets": [ { "Komorebi": { "workspaces": { "enable": true, "hide_empty_workspaces": false }, "layout": { "enable": true }, "focused_window": { "enable": true, "show_icon": true } } } ], "right_widgets": [ ] } ``` ### Hotkey Configuration .shell pwsh # Focus windows alt + a : komorebic focus left alt + s : komorebic focus down alt + w : komorebic focus up alt + d : komorebic focus right # Move windows alt + shift + a : komorebic move left alt + shift + s : komorebic move down alt + shift + w : komorebic move up alt + shift + d : komorebic move right alt + shift + q : komorebic promote # Stack windows alt + ctrl + a : komorebic stack left alt + ctrl + s : komorebic stack down alt + ctrl + w : komorebic stack up alt + ctrl + d : komorebic stack right alt + ctrl + q : komorebic unstack alt + tab : komorebic cycle-stack next # Resize alt + oem_plus : komorebic resize-axis horizontal increase alt + oem_minus : komorebic resize-axis horizontal decrease alt + shift + oem_plus : komorebic resize-axis vertical increase alt + shift + oem_minus : komorebic resize-axis vertical decrease # Manipulate windows alt + shift + t : komorebic toggle-float alt + shift + f : komorebic toggle-monocle # Window manager options alt + shift + r : komorebic retile alt + p : komorebic toggle-pause # Layouts alt + x : komorebic flip-layout horizontal alt + y : komorebic flip-layout vertical # Workspaces alt + 1 : komorebic focus-workspace 0 alt + 2 : komorebic focus-workspace 1 alt + 3 : komorebic focus-workspace 2 alt + 4 : komorebic focus-workspace 3 alt + 5 : komorebic focus-workspace 4 alt + 6 : komorebic focus-workspace 5 alt + 7 : komorebic focus-workspace 6 alt + 8 : komorebic focus-workspace 7 # Move windows across workspaces alt + shift + 1 : komorebic send-to-workspace 0 alt + shift + 2 : komorebic send-to-workspace 1 alt + shift + 3 : komorebic send-to-workspace 2 alt + shift + 4 : komorebic send-to-workspace 3 alt + shift + 5 : komorebic send-to-workspace 4 alt + shift + 6 : komorebic send-to-workspace 5 alt + shift + 7 : komorebic send-to-workspace 6 alt + shift + 8 : komorebic send-to-workspace 7 ### Output of komorebic check No KOMOREBI_CONFIG_HOME detected, defaulting to C:\Users\matt Looking for configuration files in C:\Users\matt No komorebi configuration found in C:\Users\mat If running 'komorebic start --await-configuration', you will manually have to call the following command to begin tiling: komorebic complete-configuration
adam added the bug label 2026-01-05 14:52:05 +01:00
adam closed this issue 2026-01-05 14:52:05 +01:00
Author
Owner

@LGUG2Z commented on GitHub (May 26, 2025):

The schema posted on the documentation page also appears different, specifying "Command" as a string: https://komorebi-bar.lgug2z.com/schema#mouse_on_secondary_click_Command

On the static website I had to quickly do some manual surgery to reduce the file size of the HTML file with the mouse options added in because it went over 40MB which is past the cutoff for a single file on Cloudflare Pages

As for requiring "Komorebi" as I key, I think there is an enum that wasn't flattened somewhere - I'll look into this

@LGUG2Z commented on GitHub (May 26, 2025): > The schema posted on the documentation page also appears different, specifying "Command" as a string: https://komorebi-bar.lgug2z.com/schema#mouse_on_secondary_click_Command On the static website I had to quickly do some manual surgery to reduce the file size of the HTML file with the mouse options added in because it went over 40MB which is past the cutoff for a single file on Cloudflare Pages As for requiring "Komorebi" as I key, I think there is an enum that wasn't flattened somewhere - I'll look into this
Author
Owner

@LGUG2Z commented on GitHub (May 26, 2025):

The schema itself has been fixed here, you can point to the latest version on master for corrected autocompletions

3d373b3630

For the generated static docs site I'll need to do some investigation, maybe even write my own JSONSchema -> HTML generator that doesn't balloon the page size like the Adobe one we're currently using does

@LGUG2Z commented on GitHub (May 26, 2025): The schema itself has been fixed here, you can point to the latest version on `master` for corrected autocompletions https://github.com/LGUG2Z/komorebi/commit/3d373b3630e72898ac3ccc980e12f02c37a12c2b For the generated static docs site I'll need to do some investigation, maybe even write my own JSONSchema -> HTML generator that doesn't balloon the page size like the Adobe one we're currently using does
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/komorebi#628