mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-01-11 14:40:25 +01:00
Is there any way to make a window handled by komorebi manually? #16
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 @crosstyan on GitHub (Aug 19, 2021).
Originally assigned to: @LGUG2Z on GitHub.
I have several programs that can't be handle by komorebi. The window of certain program always keeps floating and
komorebic statedoesn't show that window.I assume that komorebi can handle a window by passing a
hwnd, which I can easily get with AHK or other script, as parameter. If I'm right, I believe a komorebic subcommand likekomorebic force-window-tiling <hwnd>would be helpful for komorebi to handle that window manually.Besides, it would be better if a command like
komorebic manage-window <hwnd> <do-something-to-that-window>..., which is helpful for scripting.@LGUG2Z commented on GitHub (Aug 19, 2021):
To have a
komorebiccommand that forces tiling of a window is a great idea, I will add this soon.I'm curious to know which windows are not getting managed by default.
This is the hook that decides whether or not to try to handle a WinEvent, first by trying to create a WindowManagerEvent from known WinEvents and then by applying some heuristics to see if the window should be managed.
Ideally, all windows should be tiled by default unless there is a specific rule configured to float them.
Can you give me some examples of apps, their window classes and styles that are failing to tile automatically?
@crosstyan commented on GitHub (Aug 19, 2021):
TXGuiFoundation(TX is the company created this app) and exe isTIM.exe#32770and exe isIDMan.exeA command to add rule like
float-rulewill be a good idea indeed, I can add the window class or exe to that rule.@LGUG2Z commented on GitHub (Aug 19, 2021):
@crosstyan I have added
komorebic manageandkomorebic unmanageto forcibly manage and unmanage windows that don't automatically get tiled. Technically, you could also forcibly unmanage any window, but any window that is automatically registered for tiling at startup would just be tiled again on the next WinEvent.@crosstyan commented on GitHub (Aug 19, 2021):
@LGUG2Z That's really quick.
However when I try out the latest commit
8ffe6f78b7I get error from komorebiI think this error is concerning
74811fbe13because the error keeps appearing until rolling back to209cd82892(and it's aboutvirtual desktop)@LGUG2Z commented on GitHub (Aug 19, 2021):
This was some bad error handling on my part. 😅 Should hopefully be fixed in the latest commit on master, and the commit before that includes support for
komorebi manage-rule exe TIM.exeetc.@LGUG2Z commented on GitHub (Aug 20, 2021):
@crosstyan Is the latest commit on
masterworking out for you now?@crosstyan commented on GitHub (Aug 20, 2021):
@LGUG2Z Sorry for the late reply. I was busy dealing with other stuff today, and yes, the new
manage-ruleis wonderfulFor some reason Internet Download Manager is still floating though. I think it's because its weird window class
#32770, which means dialog box. It's not a big issue because I prefer it floating anyway.komorebiis quite perfect for my daily life now, thank you.Issue closed!