[FEAT]: Using window title for stackbar tab #377

Closed
opened 2026-01-05 14:50:08 +01:00 by adam · 1 comment
Owner

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

Is your feature request related to a problem? Please describe.
I sometimes can have the same program stacked multiple times with different titles. It would be nice to have the option to use the window title to differentiate the windows on the stackbar.


Describe the solution you'd like
The komorebi.json setting for the stackbar can have optional properties to set which value to use from the window as the title or as a tooltip of the tab on mouse hover.

  "stackbar": {
    "height": 40,
    "mode": "OnStack",
    "tabs": {
      "title": "WindowExe | WindowTitle",
      "tooltip": "WindowExe | WindowTitle",
      "width": 300,
      "focused_text": "#bfaa69",
      "unfocused_text": "#f2bdf3",
      "background": "#121826"
    }
  },
Screenshot 2024-05-16 085051

komorebic state

{
  "hwnd": 132316,
  "title": "Teams and Channels | General | Microsoft Teams",
  "exe": "ms-teams.exe",
  "class": "TeamsWebView",
  "rect": {
	"left": 3857,
	"top": 107,
	"right": 3806,
	"bottom": 1964
  }
},
{
  "hwnd": 198794,
  "title": "komorebi - Microsoft Visual Studio",
  "exe": "devenv.exe",
  "class": "HwndWrapper[DefaultDomain;;d6598a44-aa98-4635-962c-a223add23116]",
  "rect": {
	"left": 3857,
	"top": 107,
	"right": 3806,
	"bottom": 1964
  }
},
{
  "hwnd": 67862,
  "title": "zebar - Microsoft Visual Studio",
  "exe": "devenv.exe",
  "class": "HwndWrapper[DefaultDomain;;512823ca-20af-46de-9a59-89d338d3cea5]",
  "rect": {
	"left": 3857,
	"top": 107,
	"right": 3806,
	"bottom": 1964
  }
}

Additional context
It can prove to be complicated if the window title is being used in the setting, as that can change often. It could perhaps be easier and less demanding to load the title of the window only when hovering over the tabs (and only have the tooltip option in the settings).

Originally created by @CtByte on GitHub (May 16, 2024). **Is your feature request related to a problem? Please describe.** I sometimes can have the same program stacked multiple times with different titles. It would be nice to have the option to use the window title to differentiate the windows on the stackbar. --- **Describe the solution you'd like** The `komorebi.json` setting for the stackbar can have optional properties to set which value to use from the window as the `title` or as a `tooltip` of the tab on mouse hover. ``` "stackbar": { "height": 40, "mode": "OnStack", "tabs": { "title": "WindowExe | WindowTitle", "tooltip": "WindowExe | WindowTitle", "width": 300, "focused_text": "#bfaa69", "unfocused_text": "#f2bdf3", "background": "#121826" } }, ``` <img width="582" alt="Screenshot 2024-05-16 085051" src="https://github.com/LGUG2Z/komorebi/assets/165908630/e6f36008-02a7-4cc5-89ec-ce86330ad2e8"> `komorebic state` ``` { "hwnd": 132316, "title": "Teams and Channels | General | Microsoft Teams", "exe": "ms-teams.exe", "class": "TeamsWebView", "rect": { "left": 3857, "top": 107, "right": 3806, "bottom": 1964 } }, { "hwnd": 198794, "title": "komorebi - Microsoft Visual Studio", "exe": "devenv.exe", "class": "HwndWrapper[DefaultDomain;;d6598a44-aa98-4635-962c-a223add23116]", "rect": { "left": 3857, "top": 107, "right": 3806, "bottom": 1964 } }, { "hwnd": 67862, "title": "zebar - Microsoft Visual Studio", "exe": "devenv.exe", "class": "HwndWrapper[DefaultDomain;;512823ca-20af-46de-9a59-89d338d3cea5]", "rect": { "left": 3857, "top": 107, "right": 3806, "bottom": 1964 } } ``` --- **Additional context** It can prove to be complicated if the window title is being used in the setting, as that can change often. It could perhaps be easier and less demanding to load the title of the window only when hovering over the tabs (and only have the `tooltip` option in the settings).
adam added the enhancement label 2026-01-05 14:50:08 +01:00
adam closed this issue 2026-01-05 14:50:08 +01:00
Author
Owner

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

moving discussion to #826

@CtByte commented on GitHub (May 16, 2024): moving discussion to #826
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/komorebi#377