About configuring slstatus in DWM

Just installed suckless’s DWM on arch, then I installed slstatus for viewing my system stats but I just can’t figure out a way to run it as a background process and make it launch at startup. I’ve tried putting exec slstatus in my .xinitrc but it just doesn’t work. please guide me through this, I’ve spent hours configuring it but can’t make it work :frowning:

exec replaces the running process, no commands after it will be called
& starts the program in the background

slstatus &
exec dwm
# this part is unreachable
1 Like