Closed spavlovich001 closed 9 months ago
Yes.
In your case you are using a script to enable patches and your sed
command will replace "AUTOSTART_PATCH 0" with "AUTOSTART_PATCH 1", which also matches and enables this patch:
/* Allow dwm to execute commands from autostart array in your config.h file. When dwm exits
* then all processes from autostart array will be killed.
* https://dwm.suckless.org/patches/cool_autostart/
*/
#define COOL_AUTOSTART_PATCH 0
The cool autostart patch will automatically start st
as an example.
If you include "define " in your sed
expression then it should only enable the intended patch.
If you include "define " in your sed expression then it should only enable the intended patch.
sed -i -e "s/\b${i} 0/${i} 1/g" "${PATCH_OUT_FILE}" # fix this problem
Thanks =)
If I activate AUTOSTART_PATCH and make install clean and run dwm - I have opened terminal in 1st tag. 9869c22