You are not logged in.

#1 2025-10-08 14:54:37

at4rka
Member
Registered: 2025-10-08
Posts: 3

[SOLVED] dwm tag mask for firefox not working as intended?

I never really cared for it until now, but I decided I wanted Firefox to only start on a specific tag. As I understand it from their own documentation here, my config should produce the wanted result of opening a new Firefox window in tag 9. Unfortunately, it always just opens in the current tab.

I haven't installed dmenu yet and always start Firefox through the terminal. Don't know if that makes a difference for dwm.

What the tagging section of my config(.def).h looks like (afaict, it is the same as suckless's example):

/* tagging */
static const char *tags[] = { "1", "2", "3", "4", "5", "6", "7", "8", "9" };

static 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 },
};

I have also searched in the code for the class definition or other mentions of Firefox, but found nothing. Also changed the monitor to 0 for good measure but that didn't help either.

Pastebin of my entire config(.def).h can be found here. It has been patched a bit, so it definitely is not vanilla.

Last edited by at4rka (2025-10-11 10:23:49)


sry, am noob

Offline

#2 2025-10-09 08:21:24

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 14,312

Re: [SOLVED] dwm tag mask for firefox not working as intended?

Welcome to the forum

For clarity : you are using https://aur.archlinux.org/packages/dwm and have updated it to the latest version ?

Moderator Note :
dwm is an aur package and issues with those are put in AUR Issues, Discussion & PKGBUILD Requests .

Moving to AUR Issues, Discussion & PKGBUILD Requests


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#3 2025-10-09 14:12:17

at4rka
Member
Registered: 2025-10-08
Posts: 3

Re: [SOLVED] dwm tag mask for firefox not working as intended?

Lone_Wolf wrote:

For clarity : you are using https://aur.archlinux.org/packages/dwm and have updated it to the latest version ?

not quite. I cloned and built it locally, but I am at version 6.6, which is the latest version.

Lone_Wolf wrote:

Moderator Note :
dwm is an aur package and issues with those are put in AUR Issues, Discussion & PKGBUILD Requests .

Moving to AUR Issues, Discussion & PKGBUILD Requests

Thanks, my bad... I saw other dwm topics in this thread and thought nothing more of it.


sry, am noob

Offline

#4 2025-10-10 12:13:37

lmn
Member
Registered: 2021-05-09
Posts: 86
Website

Re: [SOLVED] dwm tag mask for firefox not working as intended?

The WM_CLASS property has to match exactly. I suspect that it should be a lowercase "firefox".
You can check the class unsing xprop

xprop WM_CLASS

and then selecting the relevant window with the pointer.

Offline

#5 2025-10-11 10:22:10

at4rka
Member
Registered: 2025-10-08
Posts: 3

Re: [SOLVED] dwm tag mask for firefox not working as intended?

lmn wrote:

The WM_CLASS property has to match exactly. I suspect that it should be a lowercase "firefox".

Now I feel stupid for not trying that... it worked! Thank you


sry, am noob

Offline

Board footer

Powered by FluxBB