I recently made the switch to dwm as the default window-manager on my laptop. It being a no frills software, I had to configure a few things that I usually don't have to worry about.
While I got most things to work, I can't seem to figure out a foolproof way to lock the screen on the laptop. Currently, I have a partially working solution using a program called
xautolock. Which manages to lock the screen after a specified timeout. But it fails to lock the screen after wake-up. Which is important to me.
xautolock -time 10 -locker slock