sites

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

index.md (1037B)


      1 autostarttags
      2 =============
      3 
      4 Description
      5 -----------
      6 Allow dwm to execute commands on specific tags during startup from an
      7 `autostarttaglist` array in your config.h file. The `rules` array is bypassed for
      8 commands in the `autostarttaglist` array. This allows you to initialize your session
      9 with applications on different tags without having to use any keybindings. 
     10 
     11 Example
     12 -------
     13 
     14 	static const char *browsercmd[]   = {"librewolf", NULL};
     15 	static const char *keepassxccmd[] = {"keepassxc", NULL};
     16 	static const char *emacscmd[]     = {"emacs",     NULL};
     17 	static const char *termcmd[]      = {"xterm",     NULL };
     18 
     19 	/* last cmd must be NULL! */
     20 	Autostarttag autostarttaglist[] = {
     21 		{.cmd = browsercmd,   .tags = 1 << 0 },
     22 		{.cmd = keepassxccmd, .tags = 1 << 4 },
     23 		{.cmd = emacscmd,     .tags = 1 << 7 },
     24 		{.cmd = termcmd,      .tags = 1 << 8 },
     25 		{.cmd = NULL,         .tags = 0 },
     26 	};
     27 
     28 Download
     29 --------
     30 * [dwm-autostarttags-6.4.diff](dwm-autostarttags-6.4.diff)
     31 
     32 Author
     33 ------
     34 * Christian Wills <cwills.dev+suckless@gmail.com>