You are not logged in.

#1 2010-06-17 17:03:28

aleks223
Member
Registered: 2010-03-27
Posts: 178
Website

DWM and tags assignements

Hey,

I'm now playing a bit with DWM, but one thing resists to me yikes.

I want to force program to appear on the corresponding tag, but I think my syntax is wrong.

Here is the main excerpt :

static const char *tags[] = { "term", "www", "media", "tex", "tor", "mess", "view", "sys" };
static const Rule rules[] = { 
    /* class              instance    title       tags mask     isfloating   monitor */ 
    { "Chromium-browser",    NULL,       NULL,    2<<0,        False,    -1},
    { "Vlc",        NULL,       NULL,    3<<0,        True,    -1},
    { "Deluge-gtk",        NULL,       NULL,    5<<0,        False,    -1},
    { "Empathy",        NULL,       NULL,    6<<0,        True,    -1},
    { "Evince",        NULL,       NULL,    7<<0,        False,  -1},
    { "Stalonetray",    NULL,       NULL,    8<<0,        False,    -1},
};

I precise that chomium behaves correctly with that syntax.

Feel free to share the rest of the config.

Offline

#2 2010-06-17 17:12:31

rb
Member
From: Argentina
Registered: 2010-05-07
Posts: 143

Re: DWM and tags assignements

1<<n, where n is the tag

0, if you want to specify some rule but no predefined tag.


Sorry for my English. Feel free to point out my errors.

Offline

#3 2010-06-17 17:19:02

aleks223
Member
Registered: 2010-03-27
Posts: 178
Website

Re: DWM and tags assignements

so for example :

stalonetray 1<<8 ??

and if you have any better possibility to replace stalonetray ??

Offline

#4 2010-06-17 17:21:58

rb
Member
From: Argentina
Registered: 2010-05-07
Posts: 143

Re: DWM and tags assignements

Keep in mind that the tag count starts at 0, so that would start the stalonetray app in the 9th tag.

I don't know a replacement to that app, I do not use any tray bar or something like that.

Last edited by rb (2010-06-17 17:25:04)


Sorry for my English. Feel free to point out my errors.

Offline

#5 2010-06-17 17:36:12

aleks223
Member
Registered: 2010-03-27
Posts: 178
Website

Re: DWM and tags assignements

thanks works fine now....

even better than before !

Offline

#6 2010-06-17 19:40:26

rb
Member
From: Argentina
Registered: 2010-05-07
Posts: 143

Re: DWM and tags assignements

Glad it help

You might want to check the following threads: Show off your Dwm configuration!, The dwm thread and DWM Hackers Unite! Share (or request) dwm patches. Really useful information in those threads.


Sorry for my English. Feel free to point out my errors.

Offline

Board footer

Powered by FluxBB