title: dwm arch linux. How to make key bindings to run Terminal programs
body: <p>I was using i3. Now I want to see dwm. Made keybidings to run firefox on <code>Modkey+w</code>. It works well, but now when I want to do similar commands for nvim, ranger, cmus (all terminal programs) it isn't working. Can't run them from dmenu also. Is it ok, or I just fiddled with my config files?</p>
  <pre><code>static const Rule rules[] = {
      /* xprop(1):
       *  WM_CLASS(STRING) = instance, class
       *  WM_NAME(STRING) = title
       */
      /* class      instance    title       tags mask     isfloating   monitor */
      { &quot;Gimp&quot;,     NULL,       NULL,       0,            1,           -1 },
      { &quot;Firefox&quot;,  NULL,       NULL,       1 &lt;&lt; 8,       0,           -1 },
      { &quot;nvim&quot;,       NULL,       NULL,       1 &lt;&lt; 8,       0,           -1 },
      { &quot;ranger&quot;,     NULL,       NULL,       1 &lt;&lt; 8,       0,           -1 },
  
  };
  static const char *web[]  = { &quot;/usr/bin/firefox&quot;, NULL };
  static const char *nvim[]  = { &quot;/usr/share/nvim&quot;, NULL };
  static const char *ranger[]  = { &quot;/usr/bin/ranger&quot;, NULL };
  
  { MODKEY,                       XK_w,        spawn,                  {.v = web } },
  { MODKEY,                       XK_r,        spawn,                  {.v = ranger } },
  { MODKEY|ShiftMask,                       XK_v,          spawn,                  {.v = nvim } },
  </code></pre>