You are not logged in.

#1 2013-10-12 02:23:33

pythonscript
Member
From: Edinburgh, Scotland
Registered: 2009-07-10
Posts: 68

[solved] dwm rule to launch IPython with a specific tag

I'm customizing rules for dwm in config.h, but I'm having trouble getting a rule to work with IPython3 qt console. I launched the app with "ipython3 qtconsole" (from dmenu), ran the shell script from dwm's site (http://dwm.suckless.org/customisation/rules) to get the properties:

xprop |awk '
    /^WM_CLASS/{sub(/.* =/, "instance:"); sub(/,/, "\nclass:"); print}
    /^WM_NAME/{sub(/.* =/, "title:"); print}'

which gives me these properties:

title: "IPython"
instance: ""
class: ""

I set my rule in config.h like this:

static const Rule rules[] = {
	{ "IPython",         NULL,       NULL,       1 << 3,       False,       -1 },
};

rebuilt dwm, and restarted my X-server. But, when I launch "ipython3 qtconsole", the console shows up on the currently viewed tag, not tag 4. Is this the correct rule? I've tried variations like IPython3, Ipython, ipython3, etc. to no avail.

Last edited by pythonscript (2013-10-12 12:42:35)


Lenovo SL510 Thinkpad / Asus EEEPC 1005HA
No hables a menos que puedas mejorar el silencio. - Neruda
La sabiduría nos llega cuando ya no nos sirve de nada. - Márquez

Offline

#2 2013-10-12 02:48:49

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [solved] dwm rule to launch IPython with a specific tag

Have you tried it using the title field?

{ NULL,         NULL,       "IPython",       1 << 3,       False,       -1 },

Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2013-10-12 03:28:07

pythonscript
Member
From: Edinburgh, Scotland
Registered: 2009-07-10
Posts: 68

Re: [solved] dwm rule to launch IPython with a specific tag

That did it, and in hindsight, that makes perfect sense. I glossed over the comment in config.h that spelled that out.


Lenovo SL510 Thinkpad / Asus EEEPC 1005HA
No hables a menos que puedas mejorar el silencio. - Neruda
La sabiduría nos llega cuando ya no nos sirve de nada. - Márquez

Offline

#4 2013-10-12 05:48:06

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [solved] dwm rule to launch IPython with a specific tag

Cool. Please remember to mark your thread as [Solved] by editing your first post and prepending it to the title...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

Board footer

Powered by FluxBB