diff options
Diffstat (limited to 'tag.c')
| -rw-r--r-- | tag.c | 26 |
1 files changed, 4 insertions, 22 deletions
| @@ -21,15 +21,16 @@ typedef struct { | |||
| 21 | /* CUSTOMIZE */ | 21 | /* CUSTOMIZE */ |
| 22 | static Rule rule[] = { | 22 | static Rule rule[] = { |
| 23 | /* class:instance tags isfloat */ | 23 | /* class:instance tags isfloat */ |
| 24 | { "Firefox.*", { [Twww] = "www" }, False }, | 24 | { "Firefox.*", { [Tnet] = "net" }, False }, |
| 25 | { "Gimp.*", { 0 }, True}, | 25 | { "Gimp.*", { 0 }, True}, |
| 26 | }; | 26 | }; |
| 27 | 27 | ||
| 28 | char *tags[TLast] = { | 28 | char *tags[TLast] = { |
| 29 | [Tscratch] = "scratch", | 29 | [Tfnord] = "fnord", |
| 30 | [Tdev] = "dev", | 30 | [Tdev] = "dev", |
| 31 | [Twww] = "www", | 31 | [Tnet] = "net", |
| 32 | [Twork] = "work", | 32 | [Twork] = "work", |
| 33 | [Tmisc] = "misc", | ||
| 33 | }; | 34 | }; |
| 34 | 35 | ||
| 35 | void (*arrange)(Arg *) = dotile; | 36 | void (*arrange)(Arg *) = dotile; |
| @@ -148,25 +149,6 @@ getprev(Client *c) | |||
| 148 | } | 149 | } |
| 149 | 150 | ||
| 150 | void | 151 | void |
| 151 | heretag(Arg *arg) | ||
| 152 | { | ||
| 153 | int i; | ||
| 154 | Client *c; | ||
| 155 | |||
| 156 | if(arg->i == tsel) | ||
| 157 | return; | ||
| 158 | |||
| 159 | if(!(c = getnext(clients, arg->i))) | ||
| 160 | return; | ||
| 161 | |||
| 162 | for(i = 0; i < TLast; i++) | ||
| 163 | c->tags[i] = NULL; | ||
| 164 | c->tags[tsel] = tags[tsel]; | ||
| 165 | pop(c); | ||
| 166 | focus(c); | ||
| 167 | } | ||
| 168 | |||
| 169 | void | ||
| 170 | replacetag(Arg *arg) | 152 | replacetag(Arg *arg) |
| 171 | { | 153 | { |
| 172 | int i; | 154 | int i; |
