Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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}
share|improve this question

1 Answer 1

up vote 1 down vote accepted

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

share|improve this answer
    
Thanks, text_buffer_size was what I needed. –  takeshin Apr 18 '10 at 18:45

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.