You are not logged in.

#1 2014-01-23 09:15:43

rabcor
Banned
Registered: 2013-02-09
Posts: 500

Limiting string length in conky

In conky, i know 1 method for shortening strings to display the parts of them i want to see, that method is called cut.

It works great if i'm using the execi function in conky.

However i have a slight problem, i use:

${top_mem name 1}${offest -50} ${top_mem mem 1 mem_res 6}

to display process name and memory usage (in Mb) however the process name is too long and overlaps with the usage number, how can i shorten it to just 10 letters of the output?

Last edited by rabcor (2014-01-23 09:16:16)

Offline

#2 2014-01-23 10:24:00

skunktrader
Member
From: Brisbane, Australia
Registered: 2010-02-14
Posts: 1,681

Re: Limiting string length in conky

Did you try setting top_name_width to 10

Offline

#3 2014-01-23 10:35:51

rabcor
Banned
Registered: 2013-02-09
Posts: 500

Re: Limiting string length in conky

Thanks, that did it. After doing that though i had to increase offest from  -50 to -10 tongue

Last edited by rabcor (2014-01-23 10:36:02)

Offline

Board footer

Powered by FluxBB