Hey Titus, not an issue per se, but using xsetroot (and trap) is a pretty clunky way of getting a status bar inside dwm. I'd recommend using dwmblocks-async, which allows for each block to have a separate update interval, clickable status messages, and signalling via kill for immediate updates (like a volume percentage).
For some examples you can see my statusbar scripts here, as well as my custom build of dwmblocks-async here. Luke Smith and the creator of dwmblocks-async both also have some status bar scripts you could take a look at.
I've also gotten togglable scripts that let you see different things working using temp files, with a script that looks something like this:
Hey Titus, not an issue per se, but using
xsetroot
(andtrap
) is a pretty clunky way of getting a status bar inside dwm. I'd recommend using dwmblocks-async, which allows for each block to have a separate update interval, clickable status messages, and signalling viakill
for immediate updates (like a volume percentage).For some examples you can see my statusbar scripts here, as well as my custom build of dwmblocks-async here. Luke Smith and the creator of dwmblocks-async both also have some status bar scripts you could take a look at.
I've also gotten togglable scripts that let you see different things working using temp files, with a script that looks something like this: