Conky truncates text loaded from file

1

I'm trying to configure conky on Ubuntu, because I need to display my todo list on the desktop.

The the file is displayed, but the text is truncated (not rectangular, just after some character limit).

How to display the whole file?

Here is my setup:

# Text alignment, other possible values are commented
alignment top_right

# Gap between borders of screen and text
gap_x 10
gap_y 10

# Maximum size of buffer for user text, i.e. below TEXT line.
max_user_text 16384

# stuff after 'TEXT' will be formatted on screen
TEXT
${execi 30 cat /home/user/Documents/todo.txt}

takeshin

Posted 2010-04-18T17:10:24.330

Reputation: 1 385

Answers

2

Pipe the text to the fold command:

${execi 30 cat /home/user/Documents/todo.txt | fold -w N}

where N is the number of columns of text that you want to display.

Try also changing the values of the options text_buffer_size and/or max_user_text before the TEXT line in your conkyrc file

mrucci

Posted 2010-04-18T17:10:24.330

Reputation: 8 398

Thanks, text_buffer_size was what I needed. – takeshin – 2010-04-18T18:45:48.290