You are not logged in.
Howdy-ha, folks. I've been working to assign cli apps to appropriate tags in DWM, and I'm stumped. I've looked over threads here and here, and looked at the suckless.org info but I've hit a snag: WM_NAME reports precisely what it is I'm working on. For example:
WM_NAME(STRING) = "config.h (~/abs/dwm) - VIM"Without any open file, xprop returns
WM_NAME(STRING) = "[No Name] - VIM"Using xprop on ncmpcpp will also print the artist, album and title for the current song, and will otherwise just print version info. So it almost seems that a vim session with multiple files can't be tagged in this way--as I would need to write a rule for each file opened--nor can any other complex cli app. I know this can't be true--it should be possible , but the threads I linked to don't go into much detail.
Here's my current rules table:
static const Rule rules[] = {
/* class instance title tags mask isfloating monitor */
{ "Firefox", NULL, NULL, 1, False, -1 },
{ "Gvim", NULL, NULL, 2, False, -1 },
{ "Lyx", NULL, NULL, 2, False, -1 },
{ NULL, NULL, "vim", 3, False, -1 },
{ NULL, NULL, "ncmpcpp ver. 0.5.10", 3, False, -1 },
{ "urxvt", NULL, NULL, 3, False, -1 },
{ "Gparted", NULL, NULL, 3, False, -1 },
{ "Vlc", NULL, NULL, 4, False, -1 },
{ "Mcomix", NULL, NULL, 4, False, -1 },
{ "Easytag", NULL, NULL, 4, False, -1 },
{ "Gimp", NULL, NULL, 4, False, -1 },
{ "Soundkonverter", NULL, NULL, 4, False, -1 },
};Thanks in advance for tips and pointers.
SUPER FACE-PALM EDIT: Crap on a crutch, I completely forgot about the "1 << 3" business under the "tags" column. Reporting for dustbin.
Last edited by ANOKNUSA (2012-09-12 19:57:06)
Offline
With urxvt you can use the -title flag, and then create a rule in dwm for that instance. I launch mutt, for example, like so:
static const Rule rules[] = {
{ NULL, NULL, "mutt", 1 << 3, False, -1 },
...
static const char *mailcmd[] = { "urxvtc", "-title", "mutt", "-e", "mutt", NULL };Offline
Thanks, jasonwryan; I'll note that in the future. I solved this as you were typing, though (noticed the issue immediately after I posted), so I reported the thread for possible deletion.
Offline