[BUG]: SSMS becomes unmanaged by Komorebi after some time #646

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

Originally created by @l-t-k on GitHub (Jul 14, 2025).

Summary

SQL Server Management Studio (SSMS) is initially managed by Komorebi as expected when the application starts. However, after a certain period of active use, Komorebi randomly loses its connection to the application, and SSMS becomes unmanaged.

I've tested multiple scenarios, and it doesn't appear to be triggered by any specific keyboard combination. At this point, I have no clear explanation for what's causing the issue.

Version Information

OS Name: Microsoft Windows 11 Pro
OS Version: 10.0.22631 N/A Build 22631

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.34/schema.json",
  "app_specific_configuration_path": "$Env:KOMOREBI_CONFIG_HOME/applications.json",
  "window_hiding_behaviour": "Cloak",
  "cross_monitor_move_behaviour": "Insert",
  "default_workspace_padding": 5,
  "default_container_padding": 5,
  "border": true,
  "border_width": 6,
  "border_offset": -1,
  "border_colours": {
    "single": "#cf348f",
    "stack": "#00a542",
    "monocle": "#00a542",
    "unfocused": "#808080",
    "floating": "#b9d421"
  },
  "display_index_preferences": {
    "0": "SDC4197-4&23edadc8&0&UID8388688",
    "1": "PHL098D-4&23edadc8&0&UID36935"
  },
  "stackbar": {
    "height": 40,
    "mode": "OnStack",
    "tabs": {
      "width": 300,
      "focused_text": "#00a542",
      "unfocused_text": "#b3b3b3",
      "background": "#141414"
    }
  },
  "monitors": [
    {
      "workspaces": [
        {
          "name": "I",
          "layout": "VerticalStack"
        },
        {
          "name": "II",
          "layout": "VerticalStack"
        },
        {
          "name": "III",
          "layout": "VerticalStack"
        },
        {
          "name": "IV",
          "layout": "VerticalStack"
        },
        {
          "name": "V",
          "layout": "VerticalStack"
        },
        {
          "name": "VI",
          "layout": "VerticalStack"
        },
        {
          "name": "VII",
          "layout": "VerticalStack"
        },
        {
          "name": "VIII"
        },
        {
          "name": "IX"
        }
      ]
    },
    {
      "window_based_work_area_offset": {
        "left": 750,
        "top": 0,
        "right": 1500,
        "bottom": 0
      },
      "workspaces": [
        {
          "name": "I",
          "layout": "UltrawideVerticalStack"
        },
        {
          "name": "II",
          "layout": "UltrawideVerticalStack"
        },
        {
          "name": "III",
          "layout": "UltrawideVerticalStack"
        },
        {
          "name": "IV",
          "layout": "UltrawideVerticalStack"
        },
        {
          "name": "V",
          "layout": "UltrawideVerticalStack"
        },
        {
          "name": "VI",
          "layout": "UltrawideVerticalStack"
        },
        {
          "name": "VII",
          "layout": "UltrawideVerticalStack"
        },
        {
          "name": "VIII"
        },
        {
          "name": "IX"
        }
      ]
    }
  ],
  "ignore_rules": [
    {
      "kind": "Title",
      "id": "QUAKE",
      "matching_strategy": "StartsWith"
    },
    {
      "kind": "Title",
      "id": "Connect to Server",
      "matching_strategy": "Equals"
    },
    {
      "kind": "Title",
      "id": "SSMS AAD Dialog Owner",
      "matching_strategy": "Equals"
    },
    {
      "kind": "Title",
      "id": "WindowsFormsParkingWindow",
      "matching_strategy": "Equals"
    },
    {
      "kind": "Exe",
      "id": "AME Wizard Beta.exe",
      "matching_strategy": "Equals"
    },
    {
      "kind": "Class",
      "id": "#32770",
      "matching_strategy": "Equals"
    },
    {
      "kind": "Class",
      "id": "WindowsForms10.Window.8.app.0.134a",
      "matching_strategy": "StartsWith"
    },
    {
      "kind": "Title",
      "id": "Get Data",
      "matching_strategy": "Equals"
    },
    {
      "kind": "Title",  
      "id": "Data source settings",
      "matching_strategy": "Equals"
    }
  ],
  "manage_rules": [
    {
      "kind": "Class",
      "id": "WindowsForms10.Window.8.app.0.2ebdbdf_r7_ad1",
      "matching_strategy": "Equals"
    },
    {
      "kind": "Title",
      "id": "Chat |",
      "matching_strategy": "StartsWith"
    },
    {
      "kind": "Title",
      "id": "Shifts |",
      "matching_strategy": "StartsWith"
    },
    {
      "kind": "Title",
      "id": "Remote Desktop Manager [Dashboard]",
      "matching_strategy": "Legacy"
    }
  ]
}

Hotkey Configuration

==komorebic.ahk

#Requires AutoHotkey v2.0.2
#SingleInstance Force

; AHK HELP
; # Windows
; ! Alt
; ^ Ctrl
; + Shift

; my additions to komorebi
#Include ./my-fixes-default.ahk
#Include ./my-custom-mappings.ahk
#Include ./my-app-shortcuts-multiple-instances-allwowed.ahk
#Include ./my-app-shortcuts-one-instance-per-session.ahk
#Include ./my-app-shortcuts-one-instance-per-workspace.ahk

Komorebic(cmd) {
    RunWait(format("komorebic.exe {}", cmd), , "Hide")
}

; https://lgug2z.github.io/komorebi/cli/quickstart.html

; CTRL + WIN
; OVERRIDES DEFAULT WINDOWS PREVIOUS DESKTOP
#^Left::Komorebic("cycle-workspace previous")  ; Ctrl + Win + Left
#^Right::Komorebic("cycle-workspace next")     ; Ctrl + Win + Right

; WIN
; Focus
; Focus windows
#Left::Komorebic("focus left")                  ; Win + Left
#Up::Komorebic("focus up")                      ; Win + Up
#Right::Komorebic("focus right")                ; Win + Right
#Down::Komorebic("focus down")                  ; Win + Down
; Focus workspaces
#1::Komorebic("focus-workspace 0")              ; Win + 1
#2::Komorebic("focus-workspace 1")              ; Win + 2
#3::Komorebic("focus-workspace 2")              ; Win + 3
#4::Komorebic("focus-workspace 3")              ; Win + 4
#5::Komorebic("focus-workspace 4")              ; Win + 5
#6::Komorebic("focus-workspace 5")              ; Win + 6
#7::Komorebic("focus-workspace 6")              ; Win + 7
#8::Komorebic("focus-workspace 7")              ; Win + 8
#9::Komorebic("focus-workspace 8")              ; Win + 9
#PgUp::Komorebic("cycle-workspace previous")    ; Win + Up
#PgDn::Komorebic("cycle-workspace next")        ; Win + Down
#Tab::Komorebic("cycle-workspace next")         ; Win + Tab
; Cycle monitor
#Home::Komorebic("cycle-monitor previous")      ; Win + Home
#End::Komorebic("cycle-monitor next")           ; Win + End

; WIN + SHIFT
; Move
; Move windows
#+Left::Komorebic("move left")      ; Win + Shift Left
#+Up::Komorebic("move up")          ; Win + Shift Up
#+Right::Komorebic("move right")    ; Win + Shift Right
#+Down::Komorebic("move down")      ; Win + Shift Down
; Move windows across workspaces
#+1::Komorebic("move-to-workspace 0")                   ;Win + Shift + 1
#+2::Komorebic("move-to-workspace 1")                   ;Win + Shift + 2
#+3::Komorebic("move-to-workspace 2")                   ;Win + Shift + 3
#+4::Komorebic("move-to-workspace 3")                   ;Win + Shift + 4 
#+5::Komorebic("move-to-workspace 4")                   ;Win + Shift + 5
#+6::Komorebic("move-to-workspace 5")                   ;Win + Shift + 6
#+7::Komorebic("move-to-workspace 6")                   ;Win + Shift + 7
#+8::Komorebic("move-to-workspace 7")                   ;Win + Shift + 8
#+9::Komorebic("move-to-workspace 8")                   ;Win + Shift + 9
#+Tab::Komorebic("cycle-move-to-workspace next")        ;Win + Shift + Tab
#+PgDn::Komorebic("cycle-move-to-workspace next")       ;Win + Shift + Page Down
#+PgUp::Komorebic("cycle-move-to-workspace previous")   ;Win + Shift + Page Up
; Send to monitor
#+Home::Komorebic("cycle-move-to-monitor next")         ; Win + Shift + Home
#+End::Komorebic("cycle-move-to-monitor next")          ; Win + Shift + End
; SEND TO WORKSPACE?

; WIN + ALT
; Resize / manipulate
#!Left::Komorebic("resize-axis horizontal increase")    ; Win + Alt + Left
#!Up::Komorebic("resize-axis vertical decrease")        ; Win + Alt + Up
#!Right::Komorebic("resize-axis horizontal decrease")   ; Win + Alt + Right
#!Down::Komorebic("resize-axis vertical increase")      ; Win + Alt + Down
; General
#!r::Komorebic("reload-configuration")  ; Win + Alt + R
#!f::Komorebic("toggle-float")          ; Win + Alt + F
#!s::Komorebic("toggle-monocle")        ; Win + Alt + S
#!m::Komorebic("manage")                ; Win + Alt + M
#!u::Komorebic("unmanage")              ; Win + Alt + U

; Layouts
;!x::Komorebic("flip-layout horizontal")
;!y::Komorebic("flip-layout vertical")

; Stack windows
;!Left::Komorebic("stack left")
;!Down::Komorebic("stack down")
;!Up::Komorebic("stack up")
;!Right::Komorebic("stack right")
;!;::Komorebic("unstack")
;![::Komorebic("cycle-stack previous")
;!]::Komorebic("cycle-stack next")

==my-fixes-default.ahk

; Sourced by komorebi.ahk

; Fix for obsidian bug (alt+enter not working)
; !Enter::Send "!{Enter}"

==my-custom-mappings.ahk

; Sourced by komorebi.ahk

; Custom mappings
#q::Send "!{F4}"    ; Win + Q   = Alt + F4
#f::Send "^!1"      ; Win + F   = Alt + Ctrl + 1 (= Everything shortcut)

==my-app-shortcuts-one-instance-per-workspace.ahk

; Sourced by komorebi.ahk

; 
; App shortcuts, focus or open on current workspace
;
; Firefox focus or open
#b:: {
    If WinExist("ahk_exe Firefox.exe"){
        WinActivate
    }
    Else Run "C:\Program Files\Mozilla Firefox\firefox.exe"
}

; File Explorer focus or open
#e:: {
    If WinExist("ahk_class CabinetWClass"){
        WinActivate
    }
    Else Run "C:\Windows\explorer.exe"
}

; Code focus or open
#c:: {
    If WinExist("ahk_exe Code.exe"){
        WinActivate
    }
    Else Run "C:\Program Files\Microsoft VS Code\Code.exe"
}

; SSMS focus or open
#s:: {
    If WinExist("ahk_exe Ssms.exe"){
        WinActivate
    }
    Else Run "C:\Program Files (x86)\Microsoft SQL Server Management Studio 20\Common7\IDE\Ssms.exe"
}

; Visual Studio focus or open
#v:: {
    If WinExist("ahk_exe devenv.exe"){
        WinActivate
    }
    Else Run "C:\Program Files\Microsoft Visual Studio\2022\Professional\Common7\IDE\devenv.exe"
}

; Proton pass focus or open
#p:: {
    If WinExist("ahk_exe ProtonPass.exe"){
        WinActivate
    }
    Else Run "C:\Users\leon\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Proton AG\Proton Pass.lnk"
}

; Remote Deskopt Manager (rdm) focus or open
#r:: {
    If WinExist("ahk_exe ProtonPass.exe"){
        WinActivate
    }
    Else Run "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Remote Desktop Manager\Remote Desktop Manager (RDM).lnk"
}

==my-app-shortcuts-one-instance-per-session.ahk

; Sourced by komorebi.ahk

;
; App shortcuts, start only once on whole session
;
; Teams focus or open

;
; At the moment, this isn't working as expected
; See 
;

#t:: {
    If WinExist("ahk_exe ms-teams.exe"){
        WinActivate
    }
    Else Run "C:\Users\leon\AppData\Local\Microsoft\WindowsApps\ms-teams.exe"
}

; Outlook
; Activate if on another workspace is not working for OUTLOOK, use shortcut of teams
; or go workspace 1 with other shortcut

#m:: {
    If WinExist("ahk_exe OUTLOOK.exe"){
        WinActivate
    }
    Else Run "C:\Program Files\Microsoft Office\root\Office16\OUTLOOK.EXE"
}

; Obsidian focus or open
#o:: {
    If WinExist("ahk_exe Obsidian.exe"){
        WinActivate
    }
    Else Run "C:\Users\leon\AppData\Local\Programs\Obsidian\Obsidian.exe"
}

; ChatGPT focus or open
#a:: {
    If WinExist("ahk_exe ChatGPT.exe"){
        WinActivate
    }
    Else Run "C:\Program Files\ChatGPT\ChatGPT.exe"
}

; Whatsapp focus or open
#w:: {
    If WinExist("ahk_exe WhatsApp.exe"){
        WinActivate
    }
    Else Run "C:\Program Files\WindowsApps\5319275A.WhatsAppDesktop_2.2517.4.0_x64__cv1g1gvanyjgm\WhatsApp.exe"
}

==my-app-shortcuts-multiple-instances-allwowed.ahk

; Sourced by komorebi.ahk

;
; App shortcuts, start multiple instances
;
; Terminal force new
#Enter::Run "C:\Program Files\PowerShell\7\pwsh.exe -WorkingDirectory ~"

Output of komorebic check

❯ komorebic check
KOMOREBI_CONFIG_HOME detected: C:\Users\leon.config\komorebi

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

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

No ~/.config/whkdrc found; you may not be able to control komorebi with your keyboard

Originally created by @l-t-k on GitHub (Jul 14, 2025). ### Summary SQL Server Management Studio (SSMS) is initially managed by Komorebi as expected when the application starts. However, after a certain period of active use, Komorebi randomly loses its connection to the application, and SSMS becomes unmanaged. I've tested multiple scenarios, and it doesn't appear to be triggered by any specific keyboard combination. At this point, I have no clear explanation for what's causing the issue. ### Version Information OS Name: Microsoft Windows 11 Pro OS Version: 10.0.22631 N/A Build 22631 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.34/schema.json", "app_specific_configuration_path": "$Env:KOMOREBI_CONFIG_HOME/applications.json", "window_hiding_behaviour": "Cloak", "cross_monitor_move_behaviour": "Insert", "default_workspace_padding": 5, "default_container_padding": 5, "border": true, "border_width": 6, "border_offset": -1, "border_colours": { "single": "#cf348f", "stack": "#00a542", "monocle": "#00a542", "unfocused": "#808080", "floating": "#b9d421" }, "display_index_preferences": { "0": "SDC4197-4&23edadc8&0&UID8388688", "1": "PHL098D-4&23edadc8&0&UID36935" }, "stackbar": { "height": 40, "mode": "OnStack", "tabs": { "width": 300, "focused_text": "#00a542", "unfocused_text": "#b3b3b3", "background": "#141414" } }, "monitors": [ { "workspaces": [ { "name": "I", "layout": "VerticalStack" }, { "name": "II", "layout": "VerticalStack" }, { "name": "III", "layout": "VerticalStack" }, { "name": "IV", "layout": "VerticalStack" }, { "name": "V", "layout": "VerticalStack" }, { "name": "VI", "layout": "VerticalStack" }, { "name": "VII", "layout": "VerticalStack" }, { "name": "VIII" }, { "name": "IX" } ] }, { "window_based_work_area_offset": { "left": 750, "top": 0, "right": 1500, "bottom": 0 }, "workspaces": [ { "name": "I", "layout": "UltrawideVerticalStack" }, { "name": "II", "layout": "UltrawideVerticalStack" }, { "name": "III", "layout": "UltrawideVerticalStack" }, { "name": "IV", "layout": "UltrawideVerticalStack" }, { "name": "V", "layout": "UltrawideVerticalStack" }, { "name": "VI", "layout": "UltrawideVerticalStack" }, { "name": "VII", "layout": "UltrawideVerticalStack" }, { "name": "VIII" }, { "name": "IX" } ] } ], "ignore_rules": [ { "kind": "Title", "id": "QUAKE", "matching_strategy": "StartsWith" }, { "kind": "Title", "id": "Connect to Server", "matching_strategy": "Equals" }, { "kind": "Title", "id": "SSMS AAD Dialog Owner", "matching_strategy": "Equals" }, { "kind": "Title", "id": "WindowsFormsParkingWindow", "matching_strategy": "Equals" }, { "kind": "Exe", "id": "AME Wizard Beta.exe", "matching_strategy": "Equals" }, { "kind": "Class", "id": "#32770", "matching_strategy": "Equals" }, { "kind": "Class", "id": "WindowsForms10.Window.8.app.0.134a", "matching_strategy": "StartsWith" }, { "kind": "Title", "id": "Get Data", "matching_strategy": "Equals" }, { "kind": "Title", "id": "Data source settings", "matching_strategy": "Equals" } ], "manage_rules": [ { "kind": "Class", "id": "WindowsForms10.Window.8.app.0.2ebdbdf_r7_ad1", "matching_strategy": "Equals" }, { "kind": "Title", "id": "Chat |", "matching_strategy": "StartsWith" }, { "kind": "Title", "id": "Shifts |", "matching_strategy": "StartsWith" }, { "kind": "Title", "id": "Remote Desktop Manager [Dashboard]", "matching_strategy": "Legacy" } ] } ``` ### Hotkey Configuration ==komorebic.ahk ``` #Requires AutoHotkey v2.0.2 #SingleInstance Force ; AHK HELP ; # Windows ; ! Alt ; ^ Ctrl ; + Shift ; my additions to komorebi #Include ./my-fixes-default.ahk #Include ./my-custom-mappings.ahk #Include ./my-app-shortcuts-multiple-instances-allwowed.ahk #Include ./my-app-shortcuts-one-instance-per-session.ahk #Include ./my-app-shortcuts-one-instance-per-workspace.ahk Komorebic(cmd) { RunWait(format("komorebic.exe {}", cmd), , "Hide") } ; https://lgug2z.github.io/komorebi/cli/quickstart.html ; CTRL + WIN ; OVERRIDES DEFAULT WINDOWS PREVIOUS DESKTOP #^Left::Komorebic("cycle-workspace previous") ; Ctrl + Win + Left #^Right::Komorebic("cycle-workspace next") ; Ctrl + Win + Right ; WIN ; Focus ; Focus windows #Left::Komorebic("focus left") ; Win + Left #Up::Komorebic("focus up") ; Win + Up #Right::Komorebic("focus right") ; Win + Right #Down::Komorebic("focus down") ; Win + Down ; Focus workspaces #1::Komorebic("focus-workspace 0") ; Win + 1 #2::Komorebic("focus-workspace 1") ; Win + 2 #3::Komorebic("focus-workspace 2") ; Win + 3 #4::Komorebic("focus-workspace 3") ; Win + 4 #5::Komorebic("focus-workspace 4") ; Win + 5 #6::Komorebic("focus-workspace 5") ; Win + 6 #7::Komorebic("focus-workspace 6") ; Win + 7 #8::Komorebic("focus-workspace 7") ; Win + 8 #9::Komorebic("focus-workspace 8") ; Win + 9 #PgUp::Komorebic("cycle-workspace previous") ; Win + Up #PgDn::Komorebic("cycle-workspace next") ; Win + Down #Tab::Komorebic("cycle-workspace next") ; Win + Tab ; Cycle monitor #Home::Komorebic("cycle-monitor previous") ; Win + Home #End::Komorebic("cycle-monitor next") ; Win + End ; WIN + SHIFT ; Move ; Move windows #+Left::Komorebic("move left") ; Win + Shift Left #+Up::Komorebic("move up") ; Win + Shift Up #+Right::Komorebic("move right") ; Win + Shift Right #+Down::Komorebic("move down") ; Win + Shift Down ; Move windows across workspaces #+1::Komorebic("move-to-workspace 0") ;Win + Shift + 1 #+2::Komorebic("move-to-workspace 1") ;Win + Shift + 2 #+3::Komorebic("move-to-workspace 2") ;Win + Shift + 3 #+4::Komorebic("move-to-workspace 3") ;Win + Shift + 4 #+5::Komorebic("move-to-workspace 4") ;Win + Shift + 5 #+6::Komorebic("move-to-workspace 5") ;Win + Shift + 6 #+7::Komorebic("move-to-workspace 6") ;Win + Shift + 7 #+8::Komorebic("move-to-workspace 7") ;Win + Shift + 8 #+9::Komorebic("move-to-workspace 8") ;Win + Shift + 9 #+Tab::Komorebic("cycle-move-to-workspace next") ;Win + Shift + Tab #+PgDn::Komorebic("cycle-move-to-workspace next") ;Win + Shift + Page Down #+PgUp::Komorebic("cycle-move-to-workspace previous") ;Win + Shift + Page Up ; Send to monitor #+Home::Komorebic("cycle-move-to-monitor next") ; Win + Shift + Home #+End::Komorebic("cycle-move-to-monitor next") ; Win + Shift + End ; SEND TO WORKSPACE? ; WIN + ALT ; Resize / manipulate #!Left::Komorebic("resize-axis horizontal increase") ; Win + Alt + Left #!Up::Komorebic("resize-axis vertical decrease") ; Win + Alt + Up #!Right::Komorebic("resize-axis horizontal decrease") ; Win + Alt + Right #!Down::Komorebic("resize-axis vertical increase") ; Win + Alt + Down ; General #!r::Komorebic("reload-configuration") ; Win + Alt + R #!f::Komorebic("toggle-float") ; Win + Alt + F #!s::Komorebic("toggle-monocle") ; Win + Alt + S #!m::Komorebic("manage") ; Win + Alt + M #!u::Komorebic("unmanage") ; Win + Alt + U ; Layouts ;!x::Komorebic("flip-layout horizontal") ;!y::Komorebic("flip-layout vertical") ; Stack windows ;!Left::Komorebic("stack left") ;!Down::Komorebic("stack down") ;!Up::Komorebic("stack up") ;!Right::Komorebic("stack right") ;!;::Komorebic("unstack") ;![::Komorebic("cycle-stack previous") ;!]::Komorebic("cycle-stack next") ``` ==my-fixes-default.ahk ``` ; Sourced by komorebi.ahk ; Fix for obsidian bug (alt+enter not working) ; !Enter::Send "!{Enter}" ``` ==my-custom-mappings.ahk ``` ; Sourced by komorebi.ahk ; Custom mappings #q::Send "!{F4}" ; Win + Q = Alt + F4 #f::Send "^!1" ; Win + F = Alt + Ctrl + 1 (= Everything shortcut) ``` ==my-app-shortcuts-one-instance-per-workspace.ahk ``` ; Sourced by komorebi.ahk ; ; App shortcuts, focus or open on current workspace ; ; Firefox focus or open #b:: { If WinExist("ahk_exe Firefox.exe"){ WinActivate } Else Run "C:\Program Files\Mozilla Firefox\firefox.exe" } ; File Explorer focus or open #e:: { If WinExist("ahk_class CabinetWClass"){ WinActivate } Else Run "C:\Windows\explorer.exe" } ; Code focus or open #c:: { If WinExist("ahk_exe Code.exe"){ WinActivate } Else Run "C:\Program Files\Microsoft VS Code\Code.exe" } ; SSMS focus or open #s:: { If WinExist("ahk_exe Ssms.exe"){ WinActivate } Else Run "C:\Program Files (x86)\Microsoft SQL Server Management Studio 20\Common7\IDE\Ssms.exe" } ; Visual Studio focus or open #v:: { If WinExist("ahk_exe devenv.exe"){ WinActivate } Else Run "C:\Program Files\Microsoft Visual Studio\2022\Professional\Common7\IDE\devenv.exe" } ; Proton pass focus or open #p:: { If WinExist("ahk_exe ProtonPass.exe"){ WinActivate } Else Run "C:\Users\leon\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Proton AG\Proton Pass.lnk" } ; Remote Deskopt Manager (rdm) focus or open #r:: { If WinExist("ahk_exe ProtonPass.exe"){ WinActivate } Else Run "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Remote Desktop Manager\Remote Desktop Manager (RDM).lnk" } ``` ==my-app-shortcuts-one-instance-per-session.ahk ``` ; Sourced by komorebi.ahk ; ; App shortcuts, start only once on whole session ; ; Teams focus or open ; ; At the moment, this isn't working as expected ; See ; #t:: { If WinExist("ahk_exe ms-teams.exe"){ WinActivate } Else Run "C:\Users\leon\AppData\Local\Microsoft\WindowsApps\ms-teams.exe" } ; Outlook ; Activate if on another workspace is not working for OUTLOOK, use shortcut of teams ; or go workspace 1 with other shortcut #m:: { If WinExist("ahk_exe OUTLOOK.exe"){ WinActivate } Else Run "C:\Program Files\Microsoft Office\root\Office16\OUTLOOK.EXE" } ; Obsidian focus or open #o:: { If WinExist("ahk_exe Obsidian.exe"){ WinActivate } Else Run "C:\Users\leon\AppData\Local\Programs\Obsidian\Obsidian.exe" } ; ChatGPT focus or open #a:: { If WinExist("ahk_exe ChatGPT.exe"){ WinActivate } Else Run "C:\Program Files\ChatGPT\ChatGPT.exe" } ; Whatsapp focus or open #w:: { If WinExist("ahk_exe WhatsApp.exe"){ WinActivate } Else Run "C:\Program Files\WindowsApps\5319275A.WhatsAppDesktop_2.2517.4.0_x64__cv1g1gvanyjgm\WhatsApp.exe" } ``` ==my-app-shortcuts-multiple-instances-allwowed.ahk ``` ; Sourced by komorebi.ahk ; ; App shortcuts, start multiple instances ; ; Terminal force new #Enter::Run "C:\Program Files\PowerShell\7\pwsh.exe -WorkingDirectory ~" ``` ### Output of komorebic check ❯ komorebic check KOMOREBI_CONFIG_HOME detected: C:\Users\leon\.config\komorebi Looking for configuration files in C:\Users\leon\.config\komorebi Found komorebi.json; this file can be passed to the start command with the --config flag No ~/.config/whkdrc found; you may not be able to control komorebi with your keyboard
adam added the bug label 2026-01-05 14:52:11 +01:00
adam closed this issue 2026-01-05 14:52:11 +01:00
Author
Owner

@CtByte commented on GitHub (Jul 14, 2025):

Happens to me all the time as well. I usually minimize it then when it gets restored, it also gets managed again.

I could not find a pattern, and I end up dealing with it as SSMS will never be updated.

@CtByte commented on GitHub (Jul 14, 2025): Happens to me all the time as well. I usually minimize it then when it gets restored, it also gets managed again. I could not find a pattern, and I end up dealing with it as SSMS will never be updated.
Author
Owner

@l-t-k commented on GitHub (Jul 15, 2025):

I'm not 100% sure, but I do think this strange behavior started after the upgrade to 0.1.35. Was hoping that the update to 0.1.37 would fix it but that wasn't the case

@l-t-k commented on GitHub (Jul 15, 2025): I'm not 100% sure, but I do think this strange behavior started after the upgrade to 0.1.35. Was hoping that the update to 0.1.37 would fix it but that wasn't the case
Author
Owner

@CtByte commented on GitHub (Jul 15, 2025):

I really think that the problem is with the SSMS mainly. Komorebi could be a bit more "aggressive" but there is a fine balance to that I am sure (else it might take up too much of the system's resources perhaps)

There is a v21 for SSMS (I could not bother to update from v18 yet), but I do not think it would be any different.

Many apps are implemented in an unconventional way, which does not only apply to old apps. A very "fine" example is the new and shiny Microsoft Teams, I wish I could get rid of it.

EDIT: Ok v21 has Dark theme, I might need to update 😆

@CtByte commented on GitHub (Jul 15, 2025): I really think that the problem is with the SSMS mainly. Komorebi could be a bit more "aggressive" but there is a fine balance to that I am sure (else it might take up too much of the system's resources perhaps) There is a [v21 for SSMS](https://learn.microsoft.com/en-us/ssms/release-notes-21) (I could not bother to update from v18 yet), but I do not think it would be any different. Many apps are implemented in an unconventional way, which does not only apply to old apps. A very "fine" example is the new and shiny Microsoft Teams, I wish I could get rid of it. EDIT: Ok v21 has Dark theme, I might need to update 😆
Author
Owner

@CtByte commented on GitHub (Jul 15, 2025):

The main window for v21 does not seem to be managed. I am not sure why. I will try to see if it needs a new manage rule or something.

{
  "should_manage": true,
  "is_window": true,
  "has_minimum_width": true,
  "has_minimum_height": true,
  "has_title": true,
  "is_cloaked": false,
  "allow_cloaked": false,
  "allow_layered_transparency": false,
  "window_style": "BORDER | CAPTION | CLIPCHILDREN | CLIPSIBLINGS | GROUP | MAXIMIZEBOX | OVERLAPPEDWINDOW | VISIBLE",
  "extended_window_style": "APPWINDOW | WINDOWEDGE",
  "title": "Microsoft SQL Server Management Studio",
  "exe_name": "SSMS.exe",
  "class": "HwndWrapper[DefaultDomain;;51b21c5d-ed0e-41a2-844c-476db8eaed1d]",
  "path": "C:\\Program Files\\Microsoft SQL Server Management Studio 21\\Release\\Common7\\IDE\\SSMS.exe",
  "matches_permaignore_class": null,
  "matches_ignore_identifier": null,
  "matches_managed_override": null,
  "matches_layered_whitelist": null,
  "matches_floating_applications": null,
  "matches_wsl2_gui": null,
  "matches_no_titlebar": null
}

Edit: it seems to work if I add a rule (I prefer it to be floating, but adding this to manage_rules should also work)

  "floating_applications": [
    {
      "kind": "Exe",
      "id": "SSMS.exe",
      "matching_strategy": "Equals"
    }
  ]

Now let's see if this issue happens with the new version as well

@CtByte commented on GitHub (Jul 15, 2025): The main window for v21 does not seem to be managed. I am not sure why. I will try to see if it needs a new manage rule or something. ```json { "should_manage": true, "is_window": true, "has_minimum_width": true, "has_minimum_height": true, "has_title": true, "is_cloaked": false, "allow_cloaked": false, "allow_layered_transparency": false, "window_style": "BORDER | CAPTION | CLIPCHILDREN | CLIPSIBLINGS | GROUP | MAXIMIZEBOX | OVERLAPPEDWINDOW | VISIBLE", "extended_window_style": "APPWINDOW | WINDOWEDGE", "title": "Microsoft SQL Server Management Studio", "exe_name": "SSMS.exe", "class": "HwndWrapper[DefaultDomain;;51b21c5d-ed0e-41a2-844c-476db8eaed1d]", "path": "C:\\Program Files\\Microsoft SQL Server Management Studio 21\\Release\\Common7\\IDE\\SSMS.exe", "matches_permaignore_class": null, "matches_ignore_identifier": null, "matches_managed_override": null, "matches_layered_whitelist": null, "matches_floating_applications": null, "matches_wsl2_gui": null, "matches_no_titlebar": null } ``` Edit: it seems to work if I add a rule (I prefer it to be floating, but adding this to `manage_rules` should also work) ```json "floating_applications": [ { "kind": "Exe", "id": "SSMS.exe", "matching_strategy": "Equals" } ] ``` Now let's see if this issue happens with the new version as well
Author
Owner

@l-t-k commented on GitHub (Jul 15, 2025):

Thanks for the update. I'm now testing v21 as well. Will report my findings.

@l-t-k commented on GitHub (Jul 15, 2025): Thanks for the update. I'm now testing v21 as well. Will report my findings.
Author
Owner

@CtByte commented on GitHub (Jul 17, 2025):

I think that v21 is a lot more stable for me

@CtByte commented on GitHub (Jul 17, 2025): I think that v21 is a lot more stable for me
Author
Owner

@l-t-k commented on GitHub (Jul 20, 2025):

Can confirm, almost completely stable. Will close this one.

@l-t-k commented on GitHub (Jul 20, 2025): Can confirm, almost completely stable. Will close this one.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/komorebi#646