open your browser to youtube; then use xprop to get WM_CLASS and WM_NAME for that window: $> xprop | grep -e "WM_CLASS(STRING)" -e "WM_NAME(STRING)"
in config.h put: { <value of WM_CLASS>, NULL, <value of WM_NAME>, 0, True, -1 }, hth, L. On Tue, Jan 12, 2010 at 7:04 AM, Deepanjan Kesh <deepk...@gmail.com> wrote: > Hi! > > I am new to dwm and maybe this question already has a wiki page, but > since I didn't find anything, I would like the help of the community. > > I want to do the following - I want to open my uzbl or iceweasel > browser in non-floating mode, but if I am visiting youtube.com, it > should become floating. So, I tried the following in the rules section > in config.h - > > { "Uzbl-core", NULL, "YouTube", 0, True, -1 }, > { "Iceweasel", NULL, "YouTube", 0, True, -1 } > > but it does not seem to work. Can anyone point out the problem? > > - Deepanjan > >