Monday 4 February 2013

DWM Tips

Start DWM at specific tag and select multiple tags with a key bind.
  • Start DWM v6 at specific tag: in dwm.c in createmon(void) function definition
    
    m->tagset[0] = m->tagset[1] = 1<<2; /* start DWM at tag 3 */
    
    or
    
    m->tagset[0] = m->tagset[1] = 1 << 1 | 1 << 2 | 1<<3; /* to start DWM at tags 2, 3, and 4 */
    
  • Select multiple tags with a key bind: in config.h
    
    /* key definitions */
    #define MODKEY Mod4Mask
    #define WORKSPACE(KEY,TAG) \
        { MODKEY, KEY, view, {.ui = TAG} },
    
    /* modifier   key     function   argument */
    WORKSPACE(    XK_z,              1 << 1 | 1 << 2 | 1<<3 ) /* select tags 2, 3 and 4 with Mod4 + z key combination */
    
  • Links:
    start tag
    multiple tag selection
    multiple tag selection