index.md - sites - public wiki contents of suckless.org
 (HTM) git clone git://git.suckless.org/sites
 (DIR) Log
 (DIR) Files
 (DIR) Refs
       ---
       index.md (1186B)
       ---
            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 * [dwm-cool_autostart-6.5.diff](dwm-cool_autostart-6.5.diff)
           33 
           34 Authors
           35 -------
           36 * bit6tream <bit6tream@cock.li> [bit6tream's gitlab](https://gitlab.com/bit9tream)
           37 * zsugabubus <zsugabubus@national.shitposting.agency>
           38 * Son Phan Trung <phantrungson17@gmail.com>
           39 * Luis Dolorier <lusedou@gmail.com>