Since we utilize a lot of Conky in Tiling WM Tutorial, we need to find a way to debug, just in case we encounter undesired result.
Have fun with this cheap trick.
Suppose that you have an original code as below that need to be debugged.
All you need to do is to inject
tput cup 0 0 in the terminal
to put terminal cursor in top left, for each time conky interval.
The issue is how to transform this tput executable into conky text.
All we need to do is to exec this tput in terminal environment.
We need to alter this code a bit.
The debug code after injection of additional debugging utilities is as below
Now you can run on terminal.
And get each conky result, always running from top left terminal.
Real Life Example
Since the code above just dump too simple date. We need to something more complex. Something error prone in need of debugging.
Here is another example of Conky as a feed to Dzen2
Now you can see the raw text before it become feed to dzen2.
Just another cheap tool to have fun with. That is all for now. Thank you for reading.