This patch will make dwm run "~/.dwm/autostart_blocking.sh" and "~/.dwm/autostart.sh &" before entering the handler loop. One or both of these files can be ommited.
Be aware that dwm will not startup as long as autostart_blocking.sh is running and will stay completely unresponsive. For obvious reasons it is generally a bad idea to start X-applications here :)
This patch modifies the dwm autostart feature to conform to the XDG Base Directory specification.
The files listed above are looked up in the directories "$XDG_DATA_HOME/dwm", "$HOME/.local/share/dwm", and "$HOME/.dwm" respectively. The first existing directory is used, no matter if it actually contains any file.
- Pulled from: https://github.com/axelGschaider/dwm-patch-autostart.sh/
- Adapted to recent version Simon Bremer firstname.lastname@example.org
- XDG Base Directory conformance additions Gan Ainm email@example.com