moetunes / Nextwm

snapwm is an easy to configure, dynamic, tiling window manager. Built on dminiwm with a desktop switcher, info bar and reloadable rc file.
53 stars 5 forks source link

WINDOW_NAME & instance request #8

Closed ghost closed 11 years ago

ghost commented 11 years ago

hi, would it be possible to be abble to identify windows by their WINDOW_NAME and instance properties in the apps.conf file ?

moetunes commented 11 years ago

I don't know what you mean by "instance properties" . Can you give me an example of the window you want to manage from the apps file and what part from xprop matches how you want it identified? Do you want to manage the size of the window or the desktop it opens on?

The currently focused window has it's name shown in the bar, which with something like firefox is always changing with every new web page that's opened. In xprop, that's matched by the WM_NAME line and a couple of others. If the name of the window shown in the bar is what you want to watch for then that should be simple enough to do.

ghost commented 11 years ago

the "instance" is the first part of the WINDOW_CLASS property (ex for mplayer: class= Mplayer, instance= x11 or xv) the WM_NAME is for cli apps like weechat, irssi, screen etc ... when i launch "xterm -T irc -e weechat-curses", i would like to be able to identify the window by its WM_NAME ('irc' in my ex) so that i could open it in a specific desktop.

the most important is the identification with the WM_NAME for me (instance is really optional).

very good little wm btw, just rediscover it... really love it, thx for your work :)

moetunes commented 11 years ago

Does this help https://bbs.archlinux.org/viewtopic.php?pid=1268772#p1268772 ?

ghost commented 11 years ago

omg .. didn't saw this one .. thx a lot :)