JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
export WORKSPACE_NUMBER instead of _SWM_WS
authorJason Woofenden <jason@jasonwoof.com>
Wed, 10 Dec 2014 19:27:29 +0000 (14:27 -0500)
committerJason Woofenden <jason@jasonwoof.com>
Wed, 10 Dec 2014 19:27:29 +0000 (14:27 -0500)
config.def.h
dwm.c

index fdc227f..4e0c71c 100644 (file)
@@ -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 (file)
--- 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;