Issues with Resizing Focused Window and Teams Notifications #72

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

Originally created by @xSTUDDSx on GitHub (Jan 6, 2022).

Originally assigned to: @LGUG2Z on GitHub.

I have a couple issues I've been encountering.

The first issue is in regards to resizing a focused window. I have the following command set at the top of the ahk file...

; Set the resize delta
Run, komorebic.exe resize-delta 20, , Hide

Then down below I have the following commands set...

; Resize the focused window, Win + Ctrl + Vim direction keys
#^h::
Run, komorebic.exe resize-edge left, , Hide
return

#^j::
Run, komorebic.exe resize-edge down, , Hide
return

#^k::
Run, komorebic.exe resize-edge up, , Hide
return

#^l::
Run, komorebic.exe resize-edge right, , Hide
return

However, when trying to resize a focused window with the hot key combo it does nothing. I'm only able to resize by using the mouse and dragging a window. Is this a bug or do I have the configuration setup incorrectly?

The other issue I've encountered is with the MS Teams Notifications. Whenever I get a notification popup, komorebi treats it as a window and even after the notification disappears it just shows a blank area where it thinks the window is. So if I have only one application open, it takes up half the screen rather than the full screen. If I stop komorebi, a blue transparent box appears on the desktop which is registered to MS Teams Notifications and I can then close it but that doesn't show if komorebi is running. If I do that I can start komorebi and it works again. The other option is to completely close MS Teams and then re-open it which also fixes the issue. However, this isn't very feasible.

I'd like to set the MS Teams Notification as float always so it doesn't do this, but I have no idea how to target it as I still want the MS Teams window to be tiled, just not interpreting the notification popup as a window. Does anyone have a solution to this?

Originally created by @xSTUDDSx on GitHub (Jan 6, 2022). Originally assigned to: @LGUG2Z on GitHub. I have a couple issues I've been encountering. The first issue is in regards to resizing a focused window. I have the following command set at the top of the ahk file... ``` ; Set the resize delta Run, komorebic.exe resize-delta 20, , Hide ``` Then down below I have the following commands set... ``` ; Resize the focused window, Win + Ctrl + Vim direction keys #^h:: Run, komorebic.exe resize-edge left, , Hide return #^j:: Run, komorebic.exe resize-edge down, , Hide return #^k:: Run, komorebic.exe resize-edge up, , Hide return #^l:: Run, komorebic.exe resize-edge right, , Hide return ``` However, when trying to resize a focused window with the hot key combo it does nothing. I'm only able to resize by using the mouse and dragging a window. Is this a bug or do I have the configuration setup incorrectly? The other issue I've encountered is with the MS Teams Notifications. Whenever I get a notification popup, komorebi treats it as a window and even after the notification disappears it just shows a blank area where it thinks the window is. So if I have only one application open, it takes up half the screen rather than the full screen. If I stop komorebi, a blue transparent box appears on the desktop which is registered to MS Teams Notifications and I can then close it but that doesn't show if komorebi is running. If I do that I can start komorebi and it works again. The other option is to completely close MS Teams and then re-open it which also fixes the issue. However, this isn't very feasible. I'd like to set the MS Teams Notification as float always so it doesn't do this, but I have no idea how to target it as I still want the MS Teams window to be tiled, just not interpreting the notification popup as a window. Does anyone have a solution to this?
adam closed this issue 2026-01-05 14:48:04 +01:00
Author
Owner

@LGUG2Z commented on GitHub (Jan 7, 2022):

komorebic.exe-resize-edge
Resize the focused window in the specified direction

USAGE:
    komorebic.exe resize-edge <EDGE> <SIZING>

ARGS:
    <EDGE>      [possible values: left, right, up, down]
    <SIZING>    [possible values: increase, decrease]

OPTIONS:
    -h, --help    Print help information

For your resize-edge binds you are missing the final argument which should be either increase or decrease

@LGUG2Z commented on GitHub (Jan 7, 2022): ``` komorebic.exe-resize-edge Resize the focused window in the specified direction USAGE: komorebic.exe resize-edge <EDGE> <SIZING> ARGS: <EDGE> [possible values: left, right, up, down] <SIZING> [possible values: increase, decrease] OPTIONS: -h, --help Print help information ``` For your `resize-edge` binds you are missing the final argument which should be either `increase` or `decrease`
Author
Owner

@LGUG2Z commented on GitHub (Jan 7, 2022):

I don't use MS Teams myself, but if you can use the AHK Window Spy (you can open this by right clicking on any AHK script running in the tray and selecting "Window Spy") to isolate the class of the MS Teams Notification window that keeps taking up space, you should be able to add a float rule that targets that class.

@LGUG2Z commented on GitHub (Jan 7, 2022): I don't use MS Teams myself, but if you can use the AHK Window Spy (you can open this by right clicking on any AHK script running in the tray and selecting "Window Spy") to isolate the class of the MS Teams Notification window that keeps taking up space, you should be able to add a float rule that targets that class.
Author
Owner

@xSTUDDSx commented on GitHub (Jan 8, 2022):

@LGUG2Z Thanks for your quick response. To follow up on both items...

  1. Forgive me as I didn't think to check for a help menu. I'm on version 0.1.6 and 'resize-edge' sub-command doesn't exist so I had to switch to 'resize' which was my first issue. The second, as you mentioned was that I did not include the sizing. I'm use to bismuth which I use on my Arch machine and it seems to operate a little differently. I'm used to using left and right and based on the window position it would automatically determine if it should be increasing or decreasing (ie. if you have two windows and hover over the right window, Win + Ctrl + h would expand it, but if I did that same command hovering over the left window then it would shrink it.). Based on what I can deduce from this, it doesn't look like I can achieve the exact same functionality since I can't share key bindings from AHK, however I have come very close by just making sure I always resize either the left or upper windows in the tiling. My final key bindings...
; Resize the focused window, Win + Ctrl + Vim direction keys
#^h::
Run, komorebic.exe resize right decrease, , Hide
return

#^j::
Run, komorebic.exe resize down increase, , Hide
return

#^k::
Run, komorebic.exe resize down decrease, , Hide
return

#^l::
Run, komorebic.exe resize right increase, , Hide
return
  1. For the MS Teams Notifications, that's exactly what I needed. Although the class, exe and pid are the same, the title is unique and I managed to permanently float it that way.
; Always float Teams Notifications, matching on title
Run, komorebic.exe float-rule title "Microsoft Teams Notifications", , Hide

All in all, amazing job with this tool! So glad to see we've finally got some tilling options out there for Windows. Also glad to see it's in Rust. Hoping this language continues to gain traction.

@xSTUDDSx commented on GitHub (Jan 8, 2022): @LGUG2Z Thanks for your quick response. To follow up on both items... 1. Forgive me as I didn't think to check for a help menu. I'm on version 0.1.6 and 'resize-edge' sub-command doesn't exist so I had to switch to 'resize' which was my first issue. The second, as you mentioned was that I did not include the sizing. I'm use to [bismuth](https://github.com/Bismuth-Forge/bismuth) which I use on my Arch machine and it seems to operate a little differently. I'm used to using left and right and based on the window position it would automatically determine if it should be increasing or decreasing (ie. if you have two windows and hover over the right window, Win + Ctrl + h would expand it, but if I did that same command hovering over the left window then it would shrink it.). Based on what I can deduce from this, it doesn't look like I can achieve the exact same functionality since I can't share key bindings from AHK, however I have come very close by just making sure I always resize either the left or upper windows in the tiling. My final key bindings... ``` ; Resize the focused window, Win + Ctrl + Vim direction keys #^h:: Run, komorebic.exe resize right decrease, , Hide return #^j:: Run, komorebic.exe resize down increase, , Hide return #^k:: Run, komorebic.exe resize down decrease, , Hide return #^l:: Run, komorebic.exe resize right increase, , Hide return ``` 2. For the MS Teams Notifications, that's exactly what I needed. Although the class, exe and pid are the same, the title is unique and I managed to permanently float it that way. ``` ; Always float Teams Notifications, matching on title Run, komorebic.exe float-rule title "Microsoft Teams Notifications", , Hide ``` All in all, amazing job with this tool! So glad to see we've finally got some tilling options out there for Windows. Also glad to see it's in Rust. Hoping this language continues to gain traction.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/komorebi#72