sites

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

index.md (1089B)


      1 Cool autostart
      2 ==============
      3 
      4 Description
      5 -----------
      6 Allow dwm to execute commands from `autostart` array in your config.h file.
      7 And when you exit dwm all processes from `autostart` array will be killed.
      8 
      9 Example
     10 -------
     11 
     12 	static const char *const autostart[] = {
     13 		"mpd-notification", NULL,
     14 		"hsetroot", "-center", "/usr/home/bit6tream/pic/wallapper.png", NULL,
     15 		"xrdb", "/usr/home/bit6tream/.config/X/Xresources", NULL,
     16 		"sh", "-c", "while :; do dwmstatus.sh -; sleep 60; done", NULL,
     17 		"dunst", NULL,
     18 		"picom", NULL,
     19 		NULL
     20 	};
     21 
     22 Attention
     23 ---------
     24 Commands from array are executed using execvp().
     25 So if you need to execute shell command you need to prefix it with
     26 `"sh", "-c"` (change `sh` to any shell you like).
     27 
     28 Download
     29 --------
     30 * [dwm-cool-autostart-6.2.diff](dwm-cool-autostart-6.2.diff)
     31 * [dwm-cool-autostart-20240312-9f88553.diff](dwm-cool-autostart-20240312-9f88553.diff)
     32 
     33 Authors
     34 -------
     35 * bit6tream <bit6tream@cock.li> [bit6tream's gitlab](https://gitlab.com/bit9tream)
     36 * zsugabubus <zsugabubus@national.shitposting.agency>
     37 * Son Phan Trung <phantrungson17@gmail.com>