From 402a4862ae3e35de45217a0aac10867233f5700b Mon Sep 17 00:00:00 2001 From: Jason Woofenden Date: Wed, 10 Dec 2014 14:27:29 -0500 Subject: [PATCH] export WORKSPACE_NUMBER instead of _SWM_WS --- config.def.h | 6 +++--- dwm.c | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/config.def.h b/config.def.h index fdc227f..4e0c71c 100644 --- a/config.def.h +++ b/config.def.h @@ -15,7 +15,7 @@ static const Bool topbar = True; /* False means bottom bar */ /* tagging */ static const char *tags[] = { "1", "2", "3", "4", "5", "6", "7", "8", "9" }; -static const char *swm_tags[] = { "0", "1", "2", "3", "4", "5", "6", "7", "8" }; +static const char *workspace_numbers_str[] = { "0", "1", "2", "3", "4", "5", "6", "7", "8" }; static const Rule rules[] = { /* xprop(1): @@ -53,8 +53,8 @@ static const Layout layouts[] = { /* commands */ static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn() */ static const char *dmenucmd[] = { "dmenu_run", "-m", dmenumon, "-fn", font, "-nb", normbgcolor, "-nf", normfgcolor, "-sb", selbgcolor, "-sf", selfgcolor, NULL }; -char _SWM_WS[] = "_SWM_WS=00"; -static const char *termcmd[] = { "env", (const char *)(&(_SWM_WS[0])), "lilyterm", NULL }; +char WORKSPACE_NUMBER[] = "WORKSPACE_NUMBER=00"; +static const char *termcmd[] = { "env", (const char *)(&(WORKSPACE_NUMBER[0])), "lilyterm", NULL }; static Key keys[] = { /* modifier key function argument */ diff --git a/dwm.c b/dwm.c index 71ab0f2..f8234ce 100644 --- a/dwm.c +++ b/dwm.c @@ -1692,8 +1692,8 @@ spawn(const Arg *arg) { break; } } - _SWM_WS[8] = swm_tags[tag][0]; - _SWM_WS[9] = swm_tags[tag][1]; + WORKSPACE_NUMBER[17] = workspace_numbers_str[tag][0]; + WORKSPACE_NUMBER[18] = workspace_numbers_str[tag][1]; } if(arg->v == dmenucmd) dmenumon[0] = '0' + selmon->num; -- 1.7.10.4