#3 Rules for DWM

Closed
opened 2 years ago by gmarx · 1 comments
gmarx commented 2 years ago
Owner
There is no content yet.
gmarx commented 2 years ago
Poster
Owner

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

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/)
gmarx closed this issue 2 years ago
Sign in to join this conversation.
Loading…
There is no content yet.