The i3 FAQ has migrated to https://github.com/i3/i3/discussions. All content here is read-only.
Ask Your Question
1

Match window which has no title

asked Apr 28 '13

tab3 gravatar image

updated Apr 28 '13

I'm having trouble matching a window without title:

% xprop| grep NAME
WM_LOCALE_NAME(STRING) = "en_US.UTF-8"
WM_ICON_NAME(STRING) = 
_NET_WM_ICON_NAME(UTF8_STRING) = 
WM_NAME(STRING) = 
_NET_WM_NAME(UTF8_STRING) =

In both assign and for_window:

  • title="" gives an error
  • "^$" don't match

Comments

1

Have you tried [class="..."] in the assign? Maybe your window has a WM_CLASS property that you can use?

mschaefer gravatar imagemschaefer (Apr 29 '13)edit

mschaefer, yep, I'm aware of `class`. I have few windows with the same class and instance, but one of which has no title. (Eclipse)

tab3 gravatar imagetab3 (Apr 29 '13)edit

1 answer

Sort by » oldest newest most voted
0

answered Apr 29 '13

Michael gravatar image

Please fix this upstream, i.e. in the application itself. This is trivial if you have written it, and just a bug report in the right place if you didn’t.

Plus, fixing this upstream will benefit all users of all window managers who ever want to match such a window.

Comments

iirc `class=".*"` wouln't match windows having no class. is this a expected behaviour?

dosimple gravatar imagedosimple (May 12 '13)edit

Question Tools

Stats

Asked: Apr 28 '13

Seen: 231 times

Last updated: Apr 29 '13