[dev] [dwm] adding WM_WINDOW_ROLE rule

From: David DEMELIER <demelier.david_AT_gmail.com>
Date: Mon, 26 Jul 2010 23:32:25 +0200

Hello dear dwm users,

There is something that make me sad with dwm, there is a lack of role
rules for clients. I explain : clients have instance and name using
WM_CLASS, but there is also WM_WINDOW_ROLE which is really important
and useful.

Example : you want your firefox window tiled but not the download
manager or not the preference client you could make a rule that catch

-> xprop WM_WINDOW_ROLE on the firefox windows and sub-windows
--> xprop WM_WINDOW_ROLE
--> WM_WINDOW_ROLE(STRING) = "Preferences" # this is preferences
--> xprop WM_WINDOW_ROLE
--> WM_WINDOW_ROLE(STRING) = "browser" # the main window
--> xprop WM_WINDOW_ROLE
--> WM_WINDOW_ROLE(STRING) = "Manager" # the download window

Why is this so important? Because you can make more rules to specifig
windows, I personally like to have the main browser window tiled but
not the download window. This is also the same thing with pidgin,
pidgin has a conversation window and a buddy list that have differents

Of coure we could use the `title' rules but it's different on each
locale you are using so it sucks as well.

I would like to write a patch but for the moment I don't find the good
function that handle WM_WINDOW_ROLE.

With kind regards.

Demelier David
Received on Mon Jul 26 2010 - 23:32:25 CEST

This archive was generated by hypermail 2.2.0 : Mon Jul 26 2010 - 23:36:02 CEST