You are not logged in.

#1 2010-10-15 00:32:06

Mazur
Member
Registered: 2009-06-10
Posts: 103
Website

DWM - Few questions while moving ..

Hello,

I decided to give up on Gnome and to try Dwm, I have installed slim so now I am automatically logged in to my awesome desktop. There are few things I wanted to ask, how can I configure dwm so if I run chromium then it will appear in Desktop "2" and not in Desktop "1". How can I run Chromium, irssi, ncmpcpp and rtorrent at start (I guess .xinitrc) but they will appear at different Desktops? I mean those numbers at the top "1" "2" "3" "4" etc.

Thank You,
Mazur

Offline

#2 2010-10-15 01:39:16

schen
Member
Registered: 2009-06-06
Posts: 468

Re: DWM - Few questions while moving ..

Configure them in your rules area in the config.h.

For example, the tagsmask 1<<8 will make the window spawn in tag 9.

http://dwm.suckless.org/customisation/tagmask

Offline

#3 2010-10-15 15:36:46

Mazur
Member
Registered: 2009-06-10
Posts: 103
Website

Re: DWM - Few questions while moving ..

I have done something like this:

/* tagging */
static const char *tags[] = { "Desktop", "Internet", "Anime", "C++", "PHP", "Chat", "Music", "Download" };

static const Rule rules[] = {
        /* class      instance    title       tags mask     isfloating   monitor */
        { "pidgin",   NULL,       NULL,       1 << 6,            False,        -1 },
        { "chromium", NULL,       NULL,       1 << 2,            False,        -1 },
        { "urxvt",    NULL,       NULL,       1,                 False,        -1 },
        { "mplayer",  NULL,       NULL,       1 << 3,            False,        -1 },
};

And I am using commands in .xinitrc "chromium & pidgin & urxvt ..." to run them but they appear in first one "Desktop" and not in "Internet" or "Chat". What I done wrong?

Offline

#4 2010-10-15 16:31:26

ber_t
Member
From: Berlin, Germany
Registered: 2010-03-10
Posts: 214
Website

Re: DWM - Few questions while moving ..

You have to specify the class, instance or title string associated with a window, not the command's name.
To get the instance/class name, use xprop, and find the line beginning with "WM_CLASS(STRING)" in it's output. The first value is the instance, the second is the class. The title is in the line starting with "WM_NAME(STRING)".

Offline

#5 2010-10-15 18:28:00

Mazur
Member
Registered: 2009-06-10
Posts: 103
Website

Re: DWM - Few questions while moving ..

It's done and it works. Thank You ber_t and schen big_smile.

Offline

#6 2011-01-30 22:21:08

litemotiv
Forum Fellow
Registered: 2008-08-01
Posts: 5,026

Re: DWM - Few questions while moving ..

Please mark your thread solved Mazur. smile


ᶘ ᵒᴥᵒᶅ

Offline

Board footer

Powered by FluxBB