You are not logged in.

#1 2014-06-24 07:03:00

BThompson
Member
Registered: 2014-01-06
Posts: 12

DWM Tag Configuration Question

Hi there,

I am reasonably new to DWM and I am trying my hand at a bit of customization. Currently what i am trying to do is for one of the "Tags" (9 specifically) to be named "R" to be Red when in focus and to only have a terminal open. I am just wondering how i could achieve this?

I have gotten the tag name to change but that's it. Any ideas?

--Brendan

Offline

#2 2014-06-24 07:21:10

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

Re: DWM Tag Configuration Question

If you change the selfgcolor in config.h and recompile, the selected tag will be red.

You can add a rule to have a terminal assigned to that tagwhen it is opened, something like:

   {  NULL,         NULL,      "redterm",     0,       True,        -1 },
...
static const char   *redcmd[] = { "urxvtc", "-title", "redterm",  NULL }; 

Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2014-06-24 07:24:18

BThompson
Member
Registered: 2014-01-06
Posts: 12

Re: DWM Tag Configuration Question

Hey Jason,  Thanks for the speedy reply! Sorry to be a pain in the ass but would it be possible to give me an example on how one could do this my C is 110% non-existent sad

Offline

#4 2014-06-24 07:25:56

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

Re: DWM Tag Configuration Question

Have a look at my configs (in my signature). It is pretty straightforward once you play around with it for a bit...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#5 2014-06-24 07:28:54

BThompson
Member
Registered: 2014-01-06
Posts: 12

Re: DWM Tag Configuration Question

Okay will give it a go I'm just assuming this one: This one

Offline

#6 2014-06-24 07:47:37

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

Re: DWM Tag Configuration Question

Yep. Use the scratchpad as an example (it's just an empty terminal with a preconfigured geometry that I pull up with a keybind).


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#7 2014-06-27 05:17:45

BThompson
Member
Registered: 2014-01-06
Posts: 12

Re: DWM Tag Configuration Question

hey Jason,

your above stuff was SUPER helpful thanks heaps! I do however, have another question. As per the attached image is it possible to change the colour of the status bar (currently blue) depending on what tag you're in?

DWM Staus Bar

Offline

#8 2014-06-27 06:57:15

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

Re: DWM Tag Configuration Question

If by status bar you mean the area where 'st' is printed, no. There may be a patch for it, but I've not come across it...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#9 2014-06-27 07:11:09

BThompson
Member
Registered: 2014-01-06
Posts: 12

Re: DWM Tag Configuration Question

Ahh damn! Yeah that's where I meant. What about where the actual tag is shown?

Offline

#10 2014-06-27 07:19:05

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

Re: DWM Tag Configuration Question

Well, you can change the four variables in config.h, but that is about it. Otherwise, you are looking at patching, or hacking something yourself.

If you are really set on it, look at Awesome or Xmonad; both were inspired by dwm but cater for more bling...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

Board footer

Powered by FluxBB