Текстовое обертывание конки: как обернуть длинные линии из вывода команды EXEC в пределах Maximum_WidthLinux

Ответить
Anonymous
 Текстовое обертывание конки: как обернуть длинные линии из вывода команды EXEC в пределах Maximum_Width

Сообщение Anonymous »

Я новичок в конусе.
Я использую его для отображения случайных кавычек на моем рабочем столе, но длинные линии отрезают на правом краю экрана вместо правильной обертывания.conky.config = {
alignment = 'top_right',
background = false,
border_width = 0,
default_color = 'antiquewhite',
draw_borders = false,
draw_outline = false,
draw_shades = false,
use_xft = true,
font = 'Georgia:size=11',
gap_x = 50,
gap_y = 100,
minimum_height = 5,
maximum_width = 400,
minimum_width = 400,
no_buffers = true,
out_to_console = false,
out_to_stderr = false,
extra_newline = false,
own_window = true,
own_window_class = 'Conky',
own_window_type = 'desktop',
own_window_transparent = true,
own_window_argb_visual = true,
own_window_argb_value = 0,
stippled_borders = 0,
update_interval = 3600,
uppercase = false,
use_spacer = 'none',
double_buffer = true,
text_buffer_size = 2048,
}

conky.text = [[
${font Georgia:italic:size=11}${exec shuf -n 320 ~/quotes.txt}${font}
]]

Вот мои quotes.txt file -
1. Study the past, if you would divine the future. Confucius
2. Humility is the solid foundation of all virtues. Confucius
3. The superior man thinks always of virtue; the common man thinks of comfort. Confucius
4. A superior man is modest in his speech, but exceeds in his actions. Confucius
5. There are three methods to gaining wisdom. The first is reflection, which is the highest. The second is imitation, which is the easiest. The third is experience, which is the bitterest. Confucius
6. The wise man does at once what the fool does finally. Niccolo Machiavelli
7. The first method for estimating the intelligence of a ruler is to look at the men he has around him. Niccolo Machiavelli


Подробнее здесь: https://stackoverflow.com/questions/796 ... ithin-maxi
Ответить

Быстрый ответ

Изменение регистра текста: 
Смайлики
:) :( :oops: :roll: :wink: :muza: :clever: :sorry: :angel: :read: *x)
Ещё смайлики…
   
К этому ответу прикреплено по крайней мере одно вложение.

Если вы не хотите добавлять вложения, оставьте поля пустыми.

Максимально разрешённый размер вложения: 15 МБ.

Вернуться в «Linux»