[BUG]: Windows Terminal with Administrator mode is unmanaged #566

Closed
opened 2026-01-05 14:51:38 +01:00 by adam · 3 comments
Owner

Originally created by @webmandman on GitHub (Jan 21, 2025).

Summary

When I open Windows Terminal as Administrator Komorebi doesn't manage the window, it opens as a free window. Without administrator mode, it does get tiled.

Version Information

OS Name: Microsoft Windows 11 Enterprise
OS Version: 10.0.22621 N/A Build 22621

komorebic 0.1.31
tag:v0.1.31
commit_hash:40c55dec
build_time:2024-12-14 00:54:06 +00:00
build_env:rustc 1.83.0 (90b35a623 2024-11-26),stable-x86_64-pc-windows-msvc

Komorebi Configuration

{
  "$schema": "https://raw.githubusercontent.com/LGUG2Z/komorebi/v0.1.22/schema.json",
  "app_specific_configuration_path": "$Env:USERPROFILE/applications.yaml",
  "window_hiding_behaviour": "Cloak",
  "cross_monitor_move_behaviour": "Insert",
  "default_float_width": 600,
  "default_float_heigth": 650,
  "default_workspace_padding": 10,
  "default_container_padding": 45,
  "border_padding": 0,
  "border_offset": 0,
  "active_window_border": true,
  "active_window_border_style": "Rounded",
  "active_window_border_colours": {
    "single": "#4c2b7a",
    "stack": "#40ff00",
    "monocle": "#bf00ff"
  },
  "border_width": 3,
  "monitors": [
    {
      "workspaces": [
        {
          "name": "Code",
          "layout": "Columns"
        },
        {
          "name": "Comms",
          "layout": "Columns",
          "workspace_rules": [
            {
              "id": "GoPro Player.exe",
              "kind": "Exe"
            },
            {
              "id": "Taskmgr.exe",
              "kind": "Exe"
            },
            {
              "id": "slack.exe",
              "kind": "Exe"
            },
            {
              "id": "ms-teams.exe",
              "kind": "Exe"
            },
            {
              "id": "olk.exe",
              "kind": "Exe"
            }
          ]
        },
        {
          "name": "Fun",
          "layout": "BSP"
        },
        {
          "name": "Config",
          "layout": "Columns"
        },
        {
          "name": "Free",
          "workspace_rules": [
            {
              "id": "GoPro Player.exe",
              "kind": "Exe"
            },
            {
              "id": "Taskmgr.exe",
              "kind": "Exe"
            }
          ]
        }
      ]
    }
  ]
}

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

Manipulate windows

alt + f : komorebic toggle-float
alt + m : komorebic toggle-monocle
alt + shift + r : komorebic retile
alt + p : komorebic toggle-pause

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

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

Layouts

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

Focus windows

alt + h : komorebic focus left
alt + j : komorebic focus down
alt + k : komorebic focus up
alt + l : komorebic focus right

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

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

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 ]

Output of komorebic check

No KOMOREBI_CONFIG_HOME detected, defaulting to C:\Users\daniel.mejia

Looking for configuration files in C:\Users\daniel.mejia

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

Your configuration file contains some options that have been renamed or deprecated:

"active_window_border" is now "border"
"applications.yaml" is now "applications.json"
"active_window_border_style" is now "border_style"
"active_window_border_colours" is now "border_colours"
Found C:\Users\daniel.mejia.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 @webmandman on GitHub (Jan 21, 2025). ### Summary When I open Windows Terminal as Administrator Komorebi doesn't manage the window, it opens as a free window. Without administrator mode, it does get tiled. ### Version Information OS Name: Microsoft Windows 11 Enterprise OS Version: 10.0.22621 N/A Build 22621 komorebic 0.1.31 tag:v0.1.31 commit_hash:40c55dec build_time:2024-12-14 00:54:06 +00:00 build_env:rustc 1.83.0 (90b35a623 2024-11-26),stable-x86_64-pc-windows-msvc ### Komorebi Configuration ```json { "$schema": "https://raw.githubusercontent.com/LGUG2Z/komorebi/v0.1.22/schema.json", "app_specific_configuration_path": "$Env:USERPROFILE/applications.yaml", "window_hiding_behaviour": "Cloak", "cross_monitor_move_behaviour": "Insert", "default_float_width": 600, "default_float_heigth": 650, "default_workspace_padding": 10, "default_container_padding": 45, "border_padding": 0, "border_offset": 0, "active_window_border": true, "active_window_border_style": "Rounded", "active_window_border_colours": { "single": "#4c2b7a", "stack": "#40ff00", "monocle": "#bf00ff" }, "border_width": 3, "monitors": [ { "workspaces": [ { "name": "Code", "layout": "Columns" }, { "name": "Comms", "layout": "Columns", "workspace_rules": [ { "id": "GoPro Player.exe", "kind": "Exe" }, { "id": "Taskmgr.exe", "kind": "Exe" }, { "id": "slack.exe", "kind": "Exe" }, { "id": "ms-teams.exe", "kind": "Exe" }, { "id": "olk.exe", "kind": "Exe" } ] }, { "name": "Fun", "layout": "BSP" }, { "name": "Config", "layout": "Columns" }, { "name": "Free", "workspace_rules": [ { "id": "GoPro Player.exe", "kind": "Exe" }, { "id": "Taskmgr.exe", "kind": "Exe" } ] } ] } ] } ``` ### 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 # Manipulate windows alt + f : komorebic toggle-float alt + m : komorebic toggle-monocle alt + shift + r : komorebic retile alt + p : komorebic toggle-pause # 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 # 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 # Layouts alt + x : komorebic flip-layout horizontal alt + y : komorebic flip-layout vertical # Focus windows alt + h : komorebic focus left alt + j : komorebic focus down alt + k : komorebic focus up alt + l : komorebic focus right # 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 # 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 # 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 ] ### Output of komorebic check No KOMOREBI_CONFIG_HOME detected, defaulting to C:\Users\daniel.mejia Looking for configuration files in C:\Users\daniel.mejia Found komorebi.json; this file can be passed to the start command with the --config flag Your configuration file contains some options that have been renamed or deprecated: "active_window_border" is now "border" "applications.yaml" is now "applications.json" "active_window_border_style" is now "border_style" "active_window_border_colours" is now "border_colours" Found C:\Users\daniel.mejia\.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:51:38 +01:00
adam closed this issue 2026-01-05 14:51:38 +01:00
Author
Owner

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

Not a bug; komorebi explicitly does not manage and will never manage windows above the privilege level it is run at. You are welcome to run komorebi using an Administrator account, as some users do, though this is something I discourage because it is not well tested.

@LGUG2Z commented on GitHub (Jan 22, 2025): Not a bug; komorebi explicitly does not manage and will never manage windows above the privilege level it is run at. You are welcome to run komorebi using an Administrator account, as some users do, though this is something I discourage because it is not well tested.
Author
Owner

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

  "$schema": "https://raw.githubusercontent.com/LGUG2Z/komorebi/v0.1.22/schema.json",

You should probably also update your schema to v0.1.33 to get the latest config option autocompletions!

@LGUG2Z commented on GitHub (Jan 22, 2025): ``` "$schema": "https://raw.githubusercontent.com/LGUG2Z/komorebi/v0.1.22/schema.json", ``` You should probably also update your schema to `v0.1.33` to get the latest config option autocompletions!
Author
Owner

@webmandman commented on GitHub (Jan 22, 2025):

Thank you!

@webmandman commented on GitHub (Jan 22, 2025): Thank you!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/komorebi#566