Conky script help

I’ve been playing with a conky script, I have most of what I require on it now, mainly though trial and error, with lots of errors!

There is however some more information that I can’t seem to add, so I would like to ask for some help with this if possible.

Most important is to be able to see total capacity and free space on any USB device that I insert

Unfortunately I can only seem to get this to work with a full path to the USB device, like this:-

fs_used /media/chris/8A7D-AA77

which obviously is no use, as when I insert another USB device, it won’t have the same identifier

Is what I require possible, is there a “wild card” that can be substituted for the USB unique identifier?

I would also like to have running total of network traffic upload and download for the current log in session, also is it possible to get grid lines with values on the network graph, as the graph is pretty much redundant without relative values, the code I have for the graphs is ....

${color lightgray}${downspeedgraph enp4s0 80,130 } ${alignr}${upspeedgraph enp4s0 80,130 }$color

Hard disk and SSD health would be nice to have as well

Finally (for now!) I would like to see disk activity, not capacity and used space as I already have that working.

1 Like

I have Core but your default software and procedures should be almost the same.

Click the button similar to this :arrow_up_small: that you see on the taskbar when you plug a USB device > click either the USB device name or Open File > right-click the device name on the left panel > Properties. You can see used space on Disks and Disk Usage Analyzer, too.

Disks > click your hard disks > Unit Options (on the left of Minimize) > Data and SMART Test….

Right-click taskbar > System Monitor.

Yes, what I am using is:

${tcp_portmon 1 65535 count} ] connections    
${tcp_portmon 1 32767 count} ] in / locale    
${tcp_portmon 32768 61000 count} ] out / remote   
${upspeed wlp3s0} k/s ] up
${upspeedgraph wlp3s0 8,120 DC143C DC143C} 
${downspeed wlp3s0} k/s ] down    
${downspeedgraph wlp3s0 8,120 DC143C DC143C}

I removed the 'align' and 'color' values so that you can graph, color, align etc. as needed.

1 Like

Thanks for the reply but I'm afraid you misunderstood what I was after, I was after adding that information to my conky app. I have the information now.

Just what I wanted, most grateful for the link to dynamically add the USB devices, many thanks for that.

I already had something similar to what you have for network traffic, what I was after was totals of network traffic, at least for the session, which I now have, I found another conky online which had this in, and I had to install vnstat, but now it is working.
I'm not sure if weekly and monthly will work though, they may be empty at present because I've only had this working for today so far.
I've attached a image for you to see it working and (blocked out the IP


addresses, they are there normally!
I'll close this as well.

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.