[FEAT]: Window title as stackbar label #375

Closed
opened 2026-01-05 14:50:07 +01:00 by adam · 4 comments
Owner

Originally created by @RaptDept on GitHub (May 16, 2024).

Is your feature request related to a problem? Please describe.
I use stacks and the stackbar a lot. The stackbar currently uses process names to label each item in the stack. But sometimes, process names aren't very useful in identifying a specific window, especially when the stack contains multiple instances of a process that can have different window titles (see screenshot for an example).

Describe the solution you'd like
Have an option to use window titles instead of process names in stackbar labels.
I don't know if it should be a global setting, or managed with window rules.

Describe alternatives you've considered
N/A

Additional context
A stackbar containing 3 different progressive web apps, all based on the same browser (Edge). In this instance, the stackbar isn't helpful in identifying which window is which.
image

Originally created by @RaptDept on GitHub (May 16, 2024). **Is your feature request related to a problem? Please describe.** I use stacks and the stackbar a lot. The stackbar currently uses process names to label each item in the stack. But sometimes, process names aren't very useful in identifying a specific window, especially when the stack contains multiple instances of a process that can have different window titles (see screenshot for an example). **Describe the solution you'd like** Have an option to use window titles instead of process names in stackbar labels. I don't know if it should be a global setting, or managed with window rules. **Describe alternatives you've considered** N/A **Additional context** A stackbar containing 3 different progressive web apps, all based on the same browser (Edge). In this instance, the stackbar isn't helpful in identifying which window is which. ![image](https://github.com/LGUG2Z/komorebi/assets/2009188/70f61766-640b-405a-b43f-16a9ee19ffb1)
adam added the enhancement label 2026-01-05 14:50:07 +01:00
adam closed this issue 2026-01-05 14:50:07 +01:00
Author
Owner

@CtByte commented on GitHub (May 16, 2024):

@RaptDept 😆 I swear I did not see this when I created #827

I'll just close mine as it is now mentioned here.

@CtByte commented on GitHub (May 16, 2024): @RaptDept 😆 I swear I did not see this when I created #827 I'll just close mine as it is now mentioned here.
Author
Owner

@CtByte commented on GitHub (May 17, 2024):

@LGUG2Z I really like this feature so I did quickly test this and I was wondering if it would be possible to have a tooltip in case the text cannot fit on the tab?

image


Also, the tab updates when it loses focus, I dont know if there is an event that fires when the window title updates (can try to clicking on like firefox tabs and the windows title bar updates)

I update the title

image

image

I click the notepad

image

@CtByte commented on GitHub (May 17, 2024): @LGUG2Z I really like this feature so I did quickly test this and I was wondering if it would be possible to have a tooltip in case the text cannot fit on the tab? ![image](https://github.com/LGUG2Z/komorebi/assets/165908630/e8b46f1e-fe8b-41c7-9aef-8807c32768bd) --- Also, the tab updates when it loses focus, I dont know if there is an event that fires when the window title updates (can try to clicking on like firefox tabs and the windows title bar updates) I update the title ![image](https://github.com/LGUG2Z/komorebi/assets/165908630/9e3d7387-9815-4db1-b080-b6066b1aff7e) ![image](https://github.com/LGUG2Z/komorebi/assets/165908630/94f77d73-2569-4e49-a2ca-e2bccfc4758e) I click the notepad ![image](https://github.com/LGUG2Z/komorebi/assets/165908630/bd18c47d-0e51-489f-8cc2-aa399e1a222e)
Author
Owner

@LGUG2Z commented on GitHub (May 17, 2024):

I pushed a change to add real-time label updates when StackbarLabel::Title, but I don't think that tooltips are going to be added anytime soon because it seems very involved and possibly like it would require changing the stackbar implementation to create a new Win32 window for each tab (vs. one Win32 window for multiple tabs which we have atm): https://learn.microsoft.com/en-us/windows/win32/controls/create-a-tooltip-for-a-rectangular-area

@LGUG2Z commented on GitHub (May 17, 2024): I pushed a change to add real-time label updates when `StackbarLabel::Title`, but I don't think that tooltips are going to be added anytime soon because it seems very involved and possibly like it would require changing the stackbar implementation to create a new Win32 window for each tab (vs. one Win32 window for multiple tabs which we have atm): https://learn.microsoft.com/en-us/windows/win32/controls/create-a-tooltip-for-a-rectangular-area
Author
Owner

@CtByte commented on GitHub (May 17, 2024):

Thank you! The real-time update works nicely.

It does sound unreasonable to rework the stackbar just to show tooltips.

The only other option that could work is to track the mouse position and update the tooltip of the single Win32 window when the mouse is over a tab. That however feel like an overkill solution for something so small.

I am more than happy with the current implementation, it is a great addition to the stackbar! 🎉

@CtByte commented on GitHub (May 17, 2024): Thank you! The real-time update works nicely. It does sound unreasonable to rework the stackbar just to show tooltips. The only other option that could work is to track the mouse position and update the tooltip of the single Win32 window when the mouse is over a tab. That however feel like an overkill solution for something so small. I am more than happy with the current implementation, it is a great addition to the stackbar! 🎉
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/komorebi#375