mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-01-11 14:40:25 +01:00
[BUG]: Opening new windows does not append from other not focused workspace #590
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @jeeeem on GitHub (Mar 27, 2025).
Summary
I have a chrome on the 1st workspace as
initial workspace ruleso the chrome will always open on the 1st workspace, if I open another chrome window on the 1st workspace, it append properly to a stack since I have"window_container_behaviour": "Append"config on the 1st workspace, but If I open another chrome from another workspace, it doesn't to append to it. It opened in a new tile. Im expecting the window to append in a stack. and take note, all the workspace has "window_container_behaviour": "Append"` config.Version Information
komorebic 0.1.36
branch:master
commit_hash:a8c687d3
build_time:2025-03-23 17:20:57 +08:00
build_env:rustc 1.85.0 (4d91de4e4 2025-02-17),stable-x86_64-pc-windows-msvc
Komorebi Configuration
Hotkey Configuration
#Requires AutoHotkey v2.0.2
#SingleInstance Force
; Show a notification when this script has been started
SoundBeep 300,150
; TrayTip "Komorebi", "Komorebi script has been started" ; For some reason, Traytip does not working properly
ToolTip "Komorebi script has been started"
SetTimer ToolTip, -2000
HideTrayTip() {
ToolTip
}
; CONTROLS
; # Win (Windows logo key)
; ! Alt
; ^ Ctrl
; + Shift
; & An ampersand may be used between any two keys or mouse buttons to combine them into a custom hotkey.
Komorebic(cmd) {
RunWait(format("komorebic.exe {}", cmd), , "Hide")
}
AutoHotkey(cmd) {
RunWait(format("autohotkey.exe {}", cmd), , "Hide")
}
Nushell(cmd) {
RunWait(format("nu --config ~/.config/nushell/init.nu --env-config ~/.config/nushell/env.nu -c {}", cmd), , "Hide")
}
; etc (ctrl+alt+shift)
#SuspendExempt ; Exempt the following hotkey from Suspend.
^!+r::Reload ; Reload this script
^!+p::Suspend ; Disable all komorebic hotkeys except for suspending key
^!+w::AutoHotkey("./WindowSpy.ahk") ; To update this, just copy the latest version in autohotkey folder, overwrite this script to the latest "WindowSpy.ahk" script
^!+s::Nushell("start-wm") ; Restart komorebi process
^!+x::Nushell("stop-wm") ; Stop komorebi process
#SuspendExempt False ; Suspend for any hotkeys/hotstrings that are below this.
; ^!+p::Komorebic("toggle-pause") ; Stop komorebic tiling
^!+g::Komorebic("gui")
^!+f::Komorebic("enforce-workspace-rules")
^!+d::Komorebic("restore-windows")
; Focus windows (alt) + (alt+shift)
!h::Komorebic("focus left")
!j::Komorebic("focus down")
!k::Komorebic("focus up")
!l::Komorebic("focus right")
!+[::Komorebic("cycle-focus previous")
!+]::Komorebic("cycle-focus next")
; Move windows (alt)
!+h::Komorebic("move left")
!+j::Komorebic("move down")
!+k::Komorebic("move up")
!+l::Komorebic("move right")
!+Enter::Komorebic("promote")
; Stack windows (ctrl+alt)
^!Left::Komorebic("stack left")
^!Right::Komorebic("stack right")
^!Up::Komorebic("stack up")
^!Down::Komorebic("stack down")
^!;::Komorebic("unstack")
^!s::Komorebic("stack-all")
^!x::Komorebic("unstack-all")
^![::Komorebic("cycle-stack previous")
^!]::Komorebic("cycle-stack next")
^!q::Komorebic("cycle-stack previous")
^!e::Komorebic("cycle-stack next")
^!+q::Komorebic("cycle-stack-index previous")
^!+e::Komorebic("cycle-stack-index next")
; Resize (alt) / (alt+shift)
!=::Komorebic("resize-axis horizontal increase")
!-::Komorebic("resize-axis horizontal decrease")
!+=::Komorebic("resize-axis vertical increase")
!+-::Komorebic("resize-axis vertical decrease")
; Window manager options (alt) / (alt+shift)
!f::Komorebic("toggle-maximize") ; Fullscreen
!m::Komorebic("toggle-window-based-work-area-offset") ; Maximize work area offset
!+f::Komorebic("toggle-monocle") ; Expand the window in the whole layout
!e::Komorebic("manage") ; Manage window
!+e::Komorebic("unmanage") ; Unmanage window
!t::Komorebic("toggle-float") ; Move the window on the top of all windows
!+t::Komorebic("toggle-tiling") ; Toggle tiling of windows
!;::Komorebic("toggle-workspace-layer") ; Toggle workspace layer (Floating or Tiling)
!+r::Komorebic("retile") ; Organize the tiling windows
!w::Komorebic("toggle-workspace-window-container-behaviour") ; Toggle dynamic or stacking tiling)
!.::Komorebic("toggle-lock") ; Toggle lock container
; Close window (alt+shift)
!+q::Komorebic("close")
!q::Komorebic("minimize")
; KOMOREBI LAYOUTS
; BSP
; +-------+-----+
; | | |
; | +--+--+
; | | |--|
; +-------+--+--+
; Vertical Stack
; +-------+-----+
; | | |
; | +-----+
; | | |
; +-------+-----+
; RightMainVerticalStack
; +-----+-------+
; | | |
; +-----+ |
; | | |
; +-----+-------+
; Horizontal Stack
; +------+------+
; | |
; |------+------+
; | | |
; +------+------+
; Columns
; +--+--+--+--+
; | | | | |
; | | | | |
; | | | | |
; +--+--+--+--+
; Rows
; +-----------+
; |-----------|
; |-----------|
; |-----------|
; +-----------+
; Ultrawide Vertical Stack
; +-----+-----------+-----+
; | | | |
; | | +-----+
; | | | |
; | | +-----+
; | | | |
; +-----+-----------+-----+
; Grid
; +-----+-----+ +---+---+---+ +---+---+---+ +---+---+---+
; | | | | | | | | | | | | | | |
; | | | | | | | | | | | | | +---+
; +-----+-----+ | +---+---+ +---+---+---+ +---+---| |
; | | | | | | | | | | | | | +---+
; | | | | | | | | | | | | | | |
; +-----+-----+ +---+---+---+ +---+---+---+ +---+---+---+
; 4 windows 5 windows 6 windows 7 windows
; Change layout (alt+shift) / (ctrl+alt+shift)
; ^!+x::Komorebic("cycle-layout previous")
; ^!+c::Komorebic("cycle-layout next")
!+b::Komorebic("change-layout bsp")
!+x::Komorebic("change-layout rows")
!+c::Komorebic("change-layout columns")
!+u::Komorebic("change-layout ultrawide-vertical-stack")
; Flip Layouts (alt)
!x::Komorebic("flip-layout horizontal")
!c::Komorebic("flip-layout vertical")
!v::Komorebic("flip-layout horizontal-and-vertical")
; WORKSPACES
; Focus workspaces (alt)
#Tab::Komorebic("focus-last-workspace")
^!h::Komorebic("cycle-workspace previous")
^!l::Komorebic("cycle-workspace next")
!1::Komorebic("focus-monitor-workspace 0 0")
!2::Komorebic("focus-monitor-workspace 0 1")
!3::Komorebic("focus-monitor-workspace 0 2")
!4::Komorebic("focus-monitor-workspace 0 3")
!5::Komorebic("focus-monitor-workspace 0 4")
!6::Komorebic("focus-monitor-workspace 0 5")
!7::Komorebic("focus-monitor-workspace 0 6")
!8::Komorebic("focus-monitor-workspace 0 7")
; Focus other monitor workspaces (alt)
^!c::Komorebic("cycle-monitor next")
^!1::Komorebic("focus-monitor-workspace 1 0")
^!2::Komorebic("focus-monitor-workspace 1 1")
^!3::Komorebic("focus-monitor-workspace 1 2")
^!4::Komorebic("focus-monitor-workspace 1 3")
^!5::Komorebic("focus-monitor-workspace 1 4")
^!6::Komorebic("focus-monitor-workspace 1 5")
^!7::Komorebic("focus-monitor-workspace 1 6")
^!8::Komorebic("focus-monitor-workspace 1 7")
; Send windows across workspaces (alt + shift)
!+1::Komorebic("send-to-monitor-workspace 0 0")
!+2::Komorebic("send-to-monitor-workspace 0 1")
!+3::Komorebic("send-to-monitor-workspace 0 2")
!+4::Komorebic("send-to-monitor-workspace 0 3")
!+5::Komorebic("send-to-monitor-workspace 0 4")
!+6::Komorebic("send-to-monitor-workspace 0 5")
!+7::Komorebic("send-to-monitor-workspace 0 6")
!+8::Komorebic("send-to-monitor-workspace 0 7")
; Send windows across monitor workspace (ctrl + alt + shift)
^!+c::Komorebic("cycle-move-to-monitor next")
^!+1::Komorebic("send-to-monitor-workspace 1 0")
^!+2::Komorebic("send-to-monitor-workspace 1 1")
^!+3::Komorebic("send-to-monitor-workspace 1 2")
^!+4::Komorebic("send-to-monitor-workspace 1 3")
^!+5::Komorebic("send-to-monitor-workspace 1 4")
^!+6::Komorebic("send-to-monitor-workspace 1 5")
^!+7::Komorebic("send-to-monitor-workspace 1 6")
^!+8::Komorebic("send-to-monitor-workspace 1 7")
Output of komorebic check
KOMOREBI_CONFIG_HOME detected: C:\Users\jberen/.config/komorebi/
Looking for configuration files in C:\Users\jberen/.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
@LGUG2Z commented on GitHub (Apr 4, 2025):
This is expected behaviour;
window_container_behaviouronly applies to windows opened on the workspace with that configuration now, not to windows moved to that workspace (ie. through workspace rules).I'm open to accepting a PR which puts the desired behaviour you're talking about behind a separate opt-in configuration option if you or anyone else wants this enough to work on it.