[BUG]: shortcuts for moving window to a workspace above 4 doesn't work #230

Closed
opened 2026-01-05 14:49:09 +01:00 by adam · 4 comments
Owner

Originally created by @BoomEarth on GitHub (Jul 22, 2023).

Describe the bug
Despite setting the shortcuts to allow me to focus on workspace 4 and 5 and moving windows to 4 and 5 using alt + 4, alt + 5 and alt + shift + 4 and alt + shift + 5, whkd does not issue the command to komorebi.

If I type the command manually into powershell, komorebi switches my focus or the terminal window to the appropriate workspace. I've also tried alt + 6 and alt + shift + 6. I can focus the workspace, but I can't move anything to it using whkd. I also tried alt + shift + v, same behavior.

I've set up my whkd file like so:

.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 + e					  : if ($wshell.AppActivate('Edge') -eq $False) { start edge }

# 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 ]

# 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

# 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

Operating System

OS Name Microsoft Windows 11 Business
Version 10.0.22621 Build 22621

komorebic check Output

Looking for configuration files in C:\Users\BoomEarth

No komorebi configuration found in C:\Users\BoomEarth

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

Additional context
Fresh install following the Quickstart Guide.

Originally created by @BoomEarth on GitHub (Jul 22, 2023). **Describe the bug** Despite setting the shortcuts to allow me to focus on workspace 4 and 5 and moving windows to 4 and 5 using alt + 4, alt + 5 and alt + shift + 4 and alt + shift + 5, whkd does not issue the command to komorebi. If I type the command manually into powershell, komorebi switches my focus or the terminal window to the appropriate workspace. I've also tried alt + 6 and alt + shift + 6. I can focus the workspace, but I can't move anything to it using whkd. I also tried alt + shift + v, same behavior. I've set up my whkd file like so: ``` .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 + e : if ($wshell.AppActivate('Edge') -eq $False) { start edge } # 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 ] # 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 # 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 ``` **Operating System** `OS Name Microsoft Windows 11 Business` `Version 10.0.22621 Build 22621` **`komorebic check` Output** ``` Looking for configuration files in C:\Users\BoomEarth No komorebi configuration found in C:\Users\BoomEarth If running 'komorebic start --await-configuration', you will manually have to call the following command to begin tiling: komorebic complete-configuration ``` **Additional context** Fresh install following the Quickstart Guide.
adam added the bug label 2026-01-05 14:49:09 +01:00
adam closed this issue 2026-01-05 14:49:09 +01:00
Author
Owner

@abclop99 commented on GitHub (Jul 28, 2023):

You can add the hotkeys yourself.

# 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 + 9					: komorebic focus-workspace 8
alt + 0					: komorebic focus-workspace 9

# 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
alt + shift + 9			: komorebic move-to-workspace 8
alt + shift + 0			: komorebic move-to-workspace 9
@abclop99 commented on GitHub (Jul 28, 2023): You can add the hotkeys yourself. ``` # 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 + 9 : komorebic focus-workspace 8 alt + 0 : komorebic focus-workspace 9 # 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 alt + shift + 9 : komorebic move-to-workspace 8 alt + shift + 0 : komorebic move-to-workspace 9 ```
Author
Owner

@BoomEarth commented on GitHub (Jul 28, 2023):

I did add the shortcuts myself. I can switch to workspaces higher than 4, but I can’t move windows to workspaces higher than 4.

[https://managedservicesit.com/wp-content/uploads/2021/06/MSIT-esig-logo.png]https://managedservicesit.com
Gabriel Herrera • IT Technician

Managed Services IT • 24/7 Support | Cloud 1st Managed Service Provider

O: 215-355-3997 | C: 267-358-0288

E: @.*** | W: managedservicesit.comhttp://managedservicesit.com

[https://managedservicesit.com/wp-content/uploads/2021/06/linkedin.png]https://www.linkedin.com/company/managedservicesit [https://managedservicesit.com/wp-content/uploads/2021/06/facebook.png] https://www.facebook.com/pages/category/Computer-Company/Managed-Services-It-1903185779991996/

From: Aaron Li @.>
Sent: Friday, July 28, 2023 6:06 AM
To: LGUG2Z/komorebi @.
>
Cc: Gabriel Herrera @.>; Author @.>
Subject: Re: [LGUG2Z/komorebi] [BUG]: shortcuts for moving window to a workspace above 4 doesn't work (Issue #501)

You can add the shortcuts yourself.

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 + 9 : komorebic focus-workspace 8

alt + 0 : komorebic focus-workspace 9

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

alt + shift + 9 : komorebic move-to-workspace 8

alt + shift + 0 : komorebic move-to-workspace 9


Reply to this email directly, view it on GitHubhttps://url.avanan.click/v2/___https:/github.com/LGUG2Z/komorebi/issues/501%23issuecomment-1655428046___.YXAzOm1hbmFnZWRzZXJ2aWNlc2l0OmE6bzplNzY2MzJlOWE3Y2U0N2JmMzk5MDM0Nzg2N2FhYjc0Mjo2OmMwNGM6MWMyMjkxNTFjYzk1MDRmY2M4ZjViNDRmNjFjZWIzMTJlZmYxNzE0OGJjMDFiZmNmYjAwNzVjNjg2ZmVkNDk4ZTpoOlQ, or unsubscrib ehttps://url.avanan.click/v2/___https:/github.com/notifications/unsubscribe-auth/AVXRA2O6PKXC466D35WGTLTXSOFKJANCNFSM6AAAAAA2TM6PHQ___.YXAzOm1hbmFnZWRzZXJ2aWNlc2l0OmE6bzplNzY2MzJlOWE3Y2U0N2JmMzk5MDM0Nzg2N2FhYjc0Mjo2OjUxY2U6NTA5NDZjZWE5ZDllYjIwNzI3MDA4MTBjZWRlY2FiMjkyNmIxMGY3NWExMGEyNmI4YjUyODdhYzhkYzU4MDg5NDpoOlQ.
You are receiving this because you authored the thread.Message ID: @.@.>>


This email has been scanned for spam and viruses by Proofpoint Essentials. Click herehttps://url.avanan.click/v2/___https:/us1.proofpointessentials.com/index01.php?mod_id=11&mod_option=logitem&report=1&type=easyspam&k=k1&payload=53616c7465645f5fa0117c2704300e826ab7be545c7c43b28b78f02f736a3d5f478cb8fffc485fadbdbeb29b661f18122d2816424907af78d3067dd360a8d36d01ee934dfb904d32e048318e7c30f45eb912a0f5467bf7c9ea4b1a9ce0cd445ace2361f4f7e7de83d0256695f276ea6bf3ce5010852fcaba556f4b5a6007938249eda3f89a9141a30e1c04ccb3b50d1caeedbfc72597f91d64fd9ef9fc849115&mail_id=1690538789-of3e7oKES3Qm&r_address=gherrera%40managedservicesit.com___.YXAzOm1hbmFnZWRzZXJ2aWNlc2l0OmE6bzplNzY2MzJlOWE3Y2U0N2JmMzk5MDM0Nzg2N2FhYjc0Mjo2OmIyYzE6MzgyY2JjZTY3MzU5NTZhOTY1N2NiNzI2ZTRkZmE3YTQ4ZTFiMTFhOTQ2ZmI3OTExMzM1MWFlNmZiZjBhN2U3NDpoOlQ to report this email as spam.

@BoomEarth commented on GitHub (Jul 28, 2023): I did add the shortcuts myself. I can switch to workspaces higher than 4, but I can’t move windows to workspaces higher than 4. [https://managedservicesit.com/wp-content/uploads/2021/06/MSIT-esig-logo.png]<https://managedservicesit.com> Gabriel Herrera • IT Technician Managed Services IT • 24/7 Support | Cloud 1st Managed Service Provider O: 215-355-3997 | C: 267-358-0288 E: ***@***.*** | W: managedservicesit.com<http://managedservicesit.com> [https://managedservicesit.com/wp-content/uploads/2021/06/linkedin.png]<https://www.linkedin.com/company/managedservicesit> [https://managedservicesit.com/wp-content/uploads/2021/06/facebook.png] <https://www.facebook.com/pages/category/Computer-Company/Managed-Services-It-1903185779991996/> From: Aaron Li ***@***.***> Sent: Friday, July 28, 2023 6:06 AM To: LGUG2Z/komorebi ***@***.***> Cc: Gabriel Herrera ***@***.***>; Author ***@***.***> Subject: Re: [LGUG2Z/komorebi] [BUG]: shortcuts for moving window to a workspace above 4 doesn't work (Issue #501) You can add the shortcuts yourself. # 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 + 9 : komorebic focus-workspace 8 alt + 0 : komorebic focus-workspace 9 # 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 alt + shift + 9 : komorebic move-to-workspace 8 alt + shift + 0 : komorebic move-to-workspace 9 — Reply to this email directly, view it on GitHub<https://url.avanan.click/v2/___https:/github.com/LGUG2Z/komorebi/issues/501%23issuecomment-1655428046___.YXAzOm1hbmFnZWRzZXJ2aWNlc2l0OmE6bzplNzY2MzJlOWE3Y2U0N2JmMzk5MDM0Nzg2N2FhYjc0Mjo2OmMwNGM6MWMyMjkxNTFjYzk1MDRmY2M4ZjViNDRmNjFjZWIzMTJlZmYxNzE0OGJjMDFiZmNmYjAwNzVjNjg2ZmVkNDk4ZTpoOlQ>, or unsubscrib e<https://url.avanan.click/v2/___https:/github.com/notifications/unsubscribe-auth/AVXRA2O6PKXC466D35WGTLTXSOFKJANCNFSM6AAAAAA2TM6PHQ___.YXAzOm1hbmFnZWRzZXJ2aWNlc2l0OmE6bzplNzY2MzJlOWE3Y2U0N2JmMzk5MDM0Nzg2N2FhYjc0Mjo2OjUxY2U6NTA5NDZjZWE5ZDllYjIwNzI3MDA4MTBjZWRlY2FiMjkyNmIxMGY3NWExMGEyNmI4YjUyODdhYzhkYzU4MDg5NDpoOlQ>. You are receiving this because you authored the thread.Message ID: ***@***.******@***.***>> ________________________________ This email has been scanned for spam and viruses by Proofpoint Essentials. Click here<https://url.avanan.click/v2/___https:/us1.proofpointessentials.com/index01.php?mod_id=11&mod_option=logitem&report=1&type=easyspam&k=k1&payload=53616c7465645f5fa0117c2704300e826ab7be545c7c43b28b78f02f736a3d5f478cb8fffc485fadbdbeb29b661f18122d2816424907af78d3067dd360a8d36d01ee934dfb904d32e048318e7c30f45eb912a0f5467bf7c9ea4b1a9ce0cd445ace2361f4f7e7de83d0256695f276ea6bf3ce5010852fcaba556f4b5a6007938249eda3f89a9141a30e1c04ccb3b50d1caeedbfc72597f91d64fd9ef9fc849115&mail_id=1690538789-of3e7oKES3Qm&r_address=gherrera%40managedservicesit.com___.YXAzOm1hbmFnZWRzZXJ2aWNlc2l0OmE6bzplNzY2MzJlOWE3Y2U0N2JmMzk5MDM0Nzg2N2FhYjc0Mjo2OmIyYzE6MzgyY2JjZTY3MzU5NTZhOTY1N2NiNzI2ZTRkZmE3YTQ4ZTFiMTFhOTQ2ZmI3OTExMzM1MWFlNmZiZjBhN2U3NDpoOlQ> to report this email as spam.
Author
Owner

@kxcrl commented on GitHub (Dec 9, 2023):

Stopped by for something else and saw this. It's working for me.
Just curious, did you add the named workspaces in your komorebi.json file?
The move-to workspace command seems to just go to the index in the array there, and if it isn't named at start up time, things get a bit strange, it seems.

I'm using the EnsureNamedWorkspaces command in AHK, which seems to be running:

RunWait("komorebic.exe ensure-named-workspaces " monitor " " names, , "Hide")

Maybe adding both of those to your setup would help?

@kxcrl commented on GitHub (Dec 9, 2023): Stopped by for something else and saw this. It's working for me. Just curious, did you add the named workspaces in your `komorebi.json` file? The `move-to workspace` command seems to just go to the index in the array there, and if it isn't named at start up time, things get a bit strange, it seems. I'm using the `EnsureNamedWorkspaces` command in AHK, which seems to be running: ``` RunWait("komorebic.exe ensure-named-workspaces " monitor " " names, , "Hide") ``` Maybe adding both of those to your setup would help?
Author
Owner

@LGUG2Z commented on GitHub (Feb 8, 2024):

Usually this is the case when new whkd options are added but whkd itself isn't restarted. Closing.

@LGUG2Z commented on GitHub (Feb 8, 2024): Usually this is the case when new `whkd` options are added but `whkd` itself isn't restarted. Closing.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/komorebi#230