Sway: [Feature request] Windows titlebar icons

Created on 5 Jan 2020  ·  7Comments  ·  Source: swaywm/sway

I generally find it hard to distinguish the type of window just based on the title. I'm wasting time reading titles and being confused about whether I'm switching to a console, browser window or something else. Workspaces alone don't fix it, they are only useful to group windows, not distinguish them visually. Icons fix this easily with little visual overhead.

There were several i3 window titlebar icon patches. Also see the screenshot.

I wasn't able to find an existing issue report about this.

All 7 comments

Sorry, this isn't something we're interested in.

Sorry, this isn't something we're interested in.

Why?

We try to keep Sway simple. You're free to add this feature to a fork of Sway if you want it.

We try to keep Sway simple.

What is simple and what isn't? How is showing a text simpler than showing an icon?

Icon lookup is far from simple. Sway would need to implement it, then load the image (supporting multiple file formats), and render it.

Wondering what https://github.com/swaywm/sway/issues/307 was about then

@hasufell you could try something like this:

for_window    [app_id="(?i)firefox"]            title_format "<span foreground='#FF6611'><tt></tt></span> %title"
for_window    [app_id="Alacritty"]              title_format "<span foreground='#00FF00'><tt></tt></span> %title"
for_window    [app_id="telegramdesktop"]        title_format "<span foreground='#84b3ff'><tt></tt></span> %title"
Was this page helpful?
0 / 5 - 0 ratings

Related issues

mcmfb picture mcmfb  ·  3Comments

RyanDwyer picture RyanDwyer  ·  3Comments

emersion picture emersion  ·  4Comments

Olie440 picture Olie440  ·  4Comments

emersion picture emersion  ·  4Comments