sites

public wiki contents of suckless.org
git clone git://git.suckless.org/sites
Log | Files | Refs

index.md (952B)


      1 switchtotag
      2 ===========
      3 
      4 Description
      5 -----------
      6 Adds a rule option to switch to the configured tag when a window opens, then
      7 switch back when it closes.
      8 
      9 The patch modifies `config.def.h`. Make sure to update `config.h` accordingly,
     10 if the file exists.
     11 
     12 Example Configuration
     13 ---------------------
     14 
     15     static const Rule rules[] = {
     16         /* class      instance title tags mask switchtotag isfloating monitor */
     17         { "Gimp",     NULL,    NULL, 0,        0,          1,         -1 },
     18         { "Firefox",  NULL,    NULL, 1 << 8,   1,          0,         -1 },
     19     };
     20 
     21 In this example, since Firefox is configured to start with tag 9 and switchtotag
     22 is enabled, as soon as the application starts, dwm will switch to tag 9. When
     23 Firefox closes, dwm will switch back to the tags which were active before the
     24 application started.
     25 
     26 Download
     27 --------
     28 * [dwm-switchtotag-6.2.diff](dwm-switchtotag-6.2.diff)
     29 
     30 Author
     31 ------
     32 * rid9 <rid99@protonmail.com>