I'm running Ubuntu Edgy and have replaced Gnome's default window manager Metacity with OpenBox. Now I want to apply different window manager handles on gnome-terminals. For example different designs for specific purposes.
Generally window managers are using X Properties to differ between applications and their windows. One can take a look at the X Properties of a window by typing 'xprop' in the console and clicking on the window. OpenBox (like most window managers) uses especially the property WM_CLASS.
I have been able to apply different handles on xterms handles by specifying the name of the application:
xterm -name Test1 &
and xprop says:
WM_CLASS(STRING) = "Test1", "XTerm"
But unfortunately using --name in the command:
gnome-terminal --name Test1 &
doesn't change anything in WM_CLASS:
WM_CLASS(STRING) = "gnome-terminal", "Gnome-terminal"
So I'm not able to differ between gnome-terminals?
"--name" is a gtk+ command and I read that the gnome-settings-daemon should synchronize the properties with X. The daemon seems to be running on my system but I still cannot change the WM_CLASS property of gtk+ applications using "--name" or "--class".
1. Does anybody know something about that?
One can also set X properties using xprop:
xprop -f WM_CLASS 8s -set WM_CLASS Test1
So the property changes to:
WM_CLASS(STRING) = "Test1"
But this seems to be invalid and is not recognized by the window manager. The property should always contain of two strings, like:
WM_CLASS(STRING) = "Test1", "Gnome-terminal"
I have read the xprop man pages but still cannot figure out how to format and correctly pass two strings. And the few hits on Google are telling me, that this seems to be either a trivial or a quite unusual problem.
2. Does anybody know how to get things right?