First we need the xprop command. The xprop utility can be used to get this information: WM_CLASS is (instance, class) WM_NAME (or _NET_WM_NAME) is the title.
Then, this information can be used, E.G. to send all instances if Allacritty to tag 3:
First we need the `xprop` command. The `xprop` utility can be used to get this information: WM_CLASS is (instance, class) WM_NAME (or _NET_WM_NAME) is the title.
Then, this information can be used, E.G. to send all instances if Allacritty to tag 3:
```
static const Rule rules[] = {
/* xprop(1):
* WM_CLASS(STRING) = instance, class
* WM_NAME(STRING) = title
*/
/* class instance title tags mask isfloating monitor */
{ "Gimp", NULL, NULL, 0, 1, -1 },
{ "Firefox", NULL, NULL, 1 << 8, 0, -1 },
{ "imagej", NULL, NULL, 0, 1, -1 },
{ "eclipse", NULL, NULL, 0, 1, -1 },
{ "Alacritty", NULL, NULL, 1 << 2, 0, -1 },
};
```
more information [here](https://dwm.suckless.org/customisation/rules/)
First we need the
xprop
command. Thexprop
utility can be used to get this information: WM_CLASS is (instance, class) WM_NAME (or _NET_WM_NAME) is the title.Then, this information can be used, E.G. to send all instances if Allacritty to tag 3:
more information here