I am trying to display the contents of a large log file on the desktop using conky. I would like the 'window' to occupy the upper half of the desktop, and show the 20 most recent lines.
I use the line ${execi 3 tail -n20 ~/myfile.txt}
in my conky script file but the results get truncated when conky displays them on the desktop. I have measured this to exactly 256 bytes (including spaces).
So I get 2 or 3 lines worth of contents only instead of 20. How do I get conky to display the full results of a command that comes out nicely in a terminal, such as a call to tail?
I would also like to grep the results, and keep grep highlighting colors on the desktop display if possible.
Anyone can help? Many thanks!