[BUG]: toggle-shortcuts fails with program not found #627

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

Originally created by @rlopeznegrete on GitHub (May 22, 2025).

Summary

When I execute komorebic toggle-shortcuts from PowerShell I get

> komorebic toggle-shortcuts
Error: program not found

Location:
    komorebic\src\main.rs:2737:17

Version Information

master branch

$ git log -1
commit b4e61b079cb60f04b8fcf0d7203419ad083528f4 (HEAD -> master, origin/master, origin/HEAD)

Komorebi Configuration

{
  "$schema": "https://raw.githubusercontent.com/LGUG2Z/komorebi/v0.1.34/schema.json",
  "app_specific_configuration_path": "$Env:KOMOREBI_CONFIG_HOME/applications.json",
  "floating_window_aspect_ratio": "Ultrawide",
  "window_hiding_behaviour": "Cloak",
  "cross_monitor_move_behaviour": "Insert",
  "default_workspace_padding": 0,
  "default_container_padding": 0,
  "border": true,
  "border_width": 6,
  "border_offset": -1,
  "border_colours": {
    "single": "#fc0349",
    "stack": "#00a542",
    "monocle": "#ff3399",
    "unfocused": "#b81414"
  },
  "theme": {
    "palette": "Base16",
    "name": "Ashes",
    "accent": "Base0D"
  },
  "mouse_follows_focus": false,
  "stackbar": {
    "height": 40,
    "mode": "OnStack",
    "tabs": {
      "width": 300,
      "focused_text": "#00a542",
      "unfocused_text": "#b3b3b3",
      "background": "#141414"
    }
  },
  "transparency": false,
  "animation": {
    "enabled": false,
    "animation_duration": 50,
    "animation_ease": "EaseOutSine"
  },
  "transparency_alpha": 240,
  "ignore_rules": [
    {
      "kind": "Title",
      "id": "komorebi-bar",
      "matching_strategy": "Equals"
    }
  ],
  "monitors": [
    {
      "window_based_work_area_offset_limit": 1,
      "window_based_work_area_offset": {
        "left": 750,
        "top": 0,
        "right": 1350,
        "bottom": 0
      },
      "workspaces": [
        {
          "name": "Comms",
          "layout": "UltrawideVerticalStack",
          "initial_workspace_rules": [
            {
              "kind": "Exe",
              "id": "Obsidian.exe"
            }
          ],
          "workspace_rules": [
            {
              "kind": "Exe",
              "id": "OUTLOOK.EXE"
            },
            {
              "kind": "Exe",
              "id": "ms-teams.exe"
            }
          ]
        },
        {
          "name": "II",
          "layout": "RightMainVerticalStack",
          "window_container_behaviour_rules": {
            "0": "Create",
            "3": "Append"
          },
          "workspace_rules": [
            {
              "kind": "Exe",
              "id": "MobaXterm.exe",
              "matching_strategy": "Contains"
            }
          ]
        },
        {
          "name": "III",
          "layout": "UltrawideVerticalStack"
        },
        {
          "name": "R2023",
          "layout": "UltrawideVerticalStack",
          "workspace_rules": [
            {
              "kind": "Path",
              "id": "R2023",
              "matching_strategy": "Contains"
            }
          ]
        },
        {
          "name": "R2020",
          "layout": "UltrawideVerticalStack",
          "workspace_rules": [
            {
              "kind": "Path",
              "id": "R2020",
              "matching_strategy": "Contains"
            }
          ]
        },
        {
          "name": "VI",
          "layout": "UltrawideVerticalStack"
        },
        {
          "name": "AllFloat"
        }
      ]
    }
  ]
}

Hotkey Configuration

.shell powershell

# Reload whkd configuration
# alt + o                 : taskkill /f /im whkd.exe && start /b whkd # if shell is cmd
alt + o                 : taskkill /f /im whkd.exe; Start-Process whkd -WindowStyle hidden # if shell is pwsh / powershell
alt + shift + o         : komorebic reload-configuration

# App shortcuts - these require shell to be pwsh / powershell
# The apps will be focused if open, or launched if not open
# alt + f                 : if ($wshell.AppActivate('Firefox') -eq $False) { start firefox }
# alt + b                 : if ($wshell.AppActivate('Chrome') -eq $False) { start chrome }

alt + q                 : komorebic close
alt + m                 : komorebic minimize
alt + shift + m         : komorebic manage; komorebic manage

# Focus windows
alt + h                 : komorebic focus left
alt + j                 : komorebic focus down
alt + k                 : komorebic focus up
alt + l                 : komorebic focus right
alt + shift + oem_4     : komorebic cycle-focus previous # oem_4 is [
alt + shift + oem_6     : komorebic cycle-focus next # oem_6 is ]
alt + shift + control + j : komorebic cycle-workspace previous
alt + shift + control + k : komorebic cycle-workspace next

# Move windows
alt + shift + h         : komorebic move left
alt + shift + j         : komorebic move down
alt + shift + k         : komorebic move up
alt + shift + l         : komorebic move right
alt + shift + return    : komorebic promote

# Stack windows
alt + left              : komorebic stack left
alt + down              : komorebic stack down
alt + up                : komorebic stack up
alt + right             : komorebic stack right
alt + oem_1             : komorebic unstack # oem_1 is ;
alt + oem_4             : komorebic cycle-stack previous # oem_4 is [
alt + oem_6             : komorebic cycle-stack next # oem_6 is ]

# 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 + 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
alt + shift + oem_1     : komorebic toggle-workspace-layer
ctrl + shift + 2        : komorebic retile; komorebic load-resize $HOME/.config/komorebi/workspace2.json

# Move windows across workspaces
alt + shift + 1         : komorebic move-to-workspace 0
alt + shift + 2         : komorebic move-to-workspace 1
alt + shift + 3         : komorebic move-to-workspace 2
alt + shift + 4         : komorebic move-to-workspace 3
alt + shift + 5         : komorebic move-to-workspace 4
alt + shift + 6         : komorebic move-to-workspace 5
alt + shift + 7         : komorebic move-to-workspace 6
alt + shift + 8         : komorebic move-to-workspace 7

Output of komorebic check

komorebic check
KOMOREBI_CONFIG_HOME detected: C:\Users\username\.config\komorebi

Looking for configuration files in C:\Users\username\.config\komorebi

Found komorebi.json; this file can be passed to the start command with the --config flag

Found C:\Users\username\.config\whkdrc; key bindings will be loaded from here when whkd is started, and you can start it automatically using the --whkd flag
Originally created by @rlopeznegrete on GitHub (May 22, 2025). ### Summary When I execute `komorebic toggle-shortcuts` from PowerShell I get ```cmd > komorebic toggle-shortcuts Error: program not found Location: komorebic\src\main.rs:2737:17 ``` ### Version Information master branch ```bash $ git log -1 commit b4e61b079cb60f04b8fcf0d7203419ad083528f4 (HEAD -> master, origin/master, origin/HEAD) ``` ### Komorebi Configuration ```json { "$schema": "https://raw.githubusercontent.com/LGUG2Z/komorebi/v0.1.34/schema.json", "app_specific_configuration_path": "$Env:KOMOREBI_CONFIG_HOME/applications.json", "floating_window_aspect_ratio": "Ultrawide", "window_hiding_behaviour": "Cloak", "cross_monitor_move_behaviour": "Insert", "default_workspace_padding": 0, "default_container_padding": 0, "border": true, "border_width": 6, "border_offset": -1, "border_colours": { "single": "#fc0349", "stack": "#00a542", "monocle": "#ff3399", "unfocused": "#b81414" }, "theme": { "palette": "Base16", "name": "Ashes", "accent": "Base0D" }, "mouse_follows_focus": false, "stackbar": { "height": 40, "mode": "OnStack", "tabs": { "width": 300, "focused_text": "#00a542", "unfocused_text": "#b3b3b3", "background": "#141414" } }, "transparency": false, "animation": { "enabled": false, "animation_duration": 50, "animation_ease": "EaseOutSine" }, "transparency_alpha": 240, "ignore_rules": [ { "kind": "Title", "id": "komorebi-bar", "matching_strategy": "Equals" } ], "monitors": [ { "window_based_work_area_offset_limit": 1, "window_based_work_area_offset": { "left": 750, "top": 0, "right": 1350, "bottom": 0 }, "workspaces": [ { "name": "Comms", "layout": "UltrawideVerticalStack", "initial_workspace_rules": [ { "kind": "Exe", "id": "Obsidian.exe" } ], "workspace_rules": [ { "kind": "Exe", "id": "OUTLOOK.EXE" }, { "kind": "Exe", "id": "ms-teams.exe" } ] }, { "name": "II", "layout": "RightMainVerticalStack", "window_container_behaviour_rules": { "0": "Create", "3": "Append" }, "workspace_rules": [ { "kind": "Exe", "id": "MobaXterm.exe", "matching_strategy": "Contains" } ] }, { "name": "III", "layout": "UltrawideVerticalStack" }, { "name": "R2023", "layout": "UltrawideVerticalStack", "workspace_rules": [ { "kind": "Path", "id": "R2023", "matching_strategy": "Contains" } ] }, { "name": "R2020", "layout": "UltrawideVerticalStack", "workspace_rules": [ { "kind": "Path", "id": "R2020", "matching_strategy": "Contains" } ] }, { "name": "VI", "layout": "UltrawideVerticalStack" }, { "name": "AllFloat" } ] } ] } ``` ### Hotkey Configuration ``` .shell powershell # Reload whkd configuration # alt + o : taskkill /f /im whkd.exe && start /b whkd # if shell is cmd alt + o : taskkill /f /im whkd.exe; Start-Process whkd -WindowStyle hidden # if shell is pwsh / powershell alt + shift + o : komorebic reload-configuration # App shortcuts - these require shell to be pwsh / powershell # The apps will be focused if open, or launched if not open # alt + f : if ($wshell.AppActivate('Firefox') -eq $False) { start firefox } # alt + b : if ($wshell.AppActivate('Chrome') -eq $False) { start chrome } alt + q : komorebic close alt + m : komorebic minimize alt + shift + m : komorebic manage; komorebic manage # Focus windows alt + h : komorebic focus left alt + j : komorebic focus down alt + k : komorebic focus up alt + l : komorebic focus right alt + shift + oem_4 : komorebic cycle-focus previous # oem_4 is [ alt + shift + oem_6 : komorebic cycle-focus next # oem_6 is ] alt + shift + control + j : komorebic cycle-workspace previous alt + shift + control + k : komorebic cycle-workspace next # Move windows alt + shift + h : komorebic move left alt + shift + j : komorebic move down alt + shift + k : komorebic move up alt + shift + l : komorebic move right alt + shift + return : komorebic promote # Stack windows alt + left : komorebic stack left alt + down : komorebic stack down alt + up : komorebic stack up alt + right : komorebic stack right alt + oem_1 : komorebic unstack # oem_1 is ; alt + oem_4 : komorebic cycle-stack previous # oem_4 is [ alt + oem_6 : komorebic cycle-stack next # oem_6 is ] # 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 + 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 alt + shift + oem_1 : komorebic toggle-workspace-layer ctrl + shift + 2 : komorebic retile; komorebic load-resize $HOME/.config/komorebi/workspace2.json # Move windows across workspaces alt + shift + 1 : komorebic move-to-workspace 0 alt + shift + 2 : komorebic move-to-workspace 1 alt + shift + 3 : komorebic move-to-workspace 2 alt + shift + 4 : komorebic move-to-workspace 3 alt + shift + 5 : komorebic move-to-workspace 4 alt + shift + 6 : komorebic move-to-workspace 5 alt + shift + 7 : komorebic move-to-workspace 6 alt + shift + 8 : komorebic move-to-workspace 7 ``` ### Output of komorebic check ``` komorebic check KOMOREBI_CONFIG_HOME detected: C:\Users\username\.config\komorebi Looking for configuration files in C:\Users\username\.config\komorebi Found komorebi.json; this file can be passed to the start command with the --config flag Found C:\Users\username\.config\whkdrc; key bindings will be loaded from here when whkd is started, and you can start it automatically using the --whkd flag ```
adam added the bug label 2026-01-05 14:52:04 +01:00
Author
Owner

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

Since this is a separate binary and you are building from source, you'll also need to build this new binary - cargo install --path komorebi-shortcuts

@LGUG2Z commented on GitHub (May 22, 2025): Since this is a separate binary and you are building from source, you'll also need to build this new binary - `cargo install --path komorebi-shortcuts`
Author
Owner

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

For anyone building from source I recommend installing just, then you can run just install to build and install all binaries in the workspace to ~/.cargo/bin, which will be in your $PATH if you followed the standard rustup toolchain installation instructions

b4e61b079c/justfile (L31)

@LGUG2Z commented on GitHub (May 22, 2025): For anyone building from source I recommend installing `just`, then you can run `just install` to build and install all binaries in the workspace to `~/.cargo/bin`, which will be in your `$PATH` if you followed the standard rustup toolchain installation instructions https://github.com/LGUG2Z/komorebi/blob/b4e61b079cb60f04b8fcf0d7203419ad083528f4/justfile#L31
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/komorebi#627