Conky Lines

Conky

Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net

1
6.1
Description:

Conky Lines displays information about your system.
In the lua file you can change the color scheme used by Conky Lines and set background color
You can also choose what to display, only CPU, storage, memory

Installation
- unpack source file
- copy the file .conkylines to your home directory
- copy the file .conkylines_c110 to your home directory
- copy the lines folder into ~/.lua

Start conky via 'conky -c .conkylines -q'
If you are using Conky version 1.10.0 start conky via 'conky -c .conkylines_c110 -q'
Last changelog:

Version 0.6 2 years ago

Removed basic_get_cpu_sensors functionality as this gives problems on certain hardware configurations

C

Moob

2 years ago

Yes, when you do not display the CPU info the spacing changes. I will see if I can fix that.
You could check if you run the sensors command, with a commandline as shown in the code, to see what you get back.

Report

9

autocrosser1

2 years ago

Sensors looks like:

dean@debian:~$ sensors
it8792-isa-0a60
Adapter: ISA adapter
in0: +1.89 V (min = +0.00 V, max = +2.78 V)
in1: +1.49 V (min = +0.00 V, max = +2.78 V)
in2: +2.78 V (min = +0.00 V, max = +2.78 V) ALARM
+3.3V: +1.68 V (min = +0.00 V, max = +2.78 V)
in4: +1.21 V (min = +0.00 V, max = +2.78 V)
in5: +1.21 V (min = +0.00 V, max = +2.78 V)
in6: +2.78 V (min = +0.00 V, max = +2.78 V) ALARM
3VSB: +1.67 V (min = +0.00 V, max = +2.78 V)
Vbat: +1.60 V
fan1: 3835 RPM (min = 10 RPM)
fan2: 3571 RPM (min = 10 RPM)
fan3: 0 RPM (min = 0 RPM)
temp1: +48.0°C (low = +0.0°C, high = +70.0°C) sensor = Intel PECI
temp2: +36.0°C (low = +127.0°C, high = +127.0°C) sensor = thermistor
temp3: +43.0°C (low = +127.0°C, high = +127.0°C) sensor = thermistor
intrusion0: ALARM

coretemp-isa-0000
Adapter: ISA adapter
Package id 0: +46.0°C (high = +84.0°C, crit = +94.0°C)
Core 0: +38.0°C (high = +84.0°C, crit = +94.0°C)
Core 1: +42.0°C (high = +84.0°C, crit = +94.0°C)
Core 2: +39.0°C (high = +84.0°C, crit = +94.0°C)
Core 3: +41.0°C (high = +84.0°C, crit = +94.0°C)
Core 4: +40.0°C (high = +84.0°C, crit = +94.0°C)
Core 5: +38.0°C (high = +84.0°C, crit = +94.0°C)

it8620-isa-0a40
Adapter: ISA adapter
in0: +1.08 V (min = +0.00 V, max = +3.06 V)
in1: +2.51 V (min = +0.00 V, max = +3.06 V)
in2: +2.02 V (min = +0.00 V, max = +3.06 V)
in3: +2.03 V (min = +0.00 V, max = +3.06 V)
in4: +1.06 V (min = +0.00 V, max = +3.06 V)
in5: +1.06 V (min = +0.00 V, max = +3.06 V)
in6: +2.50 V (min = +0.00 V, max = +3.06 V)
3VSB: +3.38 V (min = +0.00 V, max = +6.12 V)
Vbat: +3.02 V
fan1: 0 RPM (min = 0 RPM)
fan2: 0 RPM (min = 0 RPM)
fan3: 0 RPM (min = 0 RPM)
fan4: 0 RPM (min = 0 RPM)
fan5: 0 RPM (min = 0 RPM)
temp1: +34.0°C (low = +127.0°C, high = +127.0°C) sensor = thermistor
temp2: +42.0°C (low = +127.0°C, high = +127.0°C) sensor = thermistor
temp3: +127.0°C (low = +127.0°C, high = +127.0°C) sensor = thermistor
temp4: +51.0°C
temp5: +46.0°C
temp6: +46.0°C
intrusion0: ALARM

Report

9

autocrosser1

2 years ago

And:

dean@debian:~$ sensors | grep -iw core
Core 0: +51.0°C (high = +84.0°C, crit = +94.0°C)
Core 1: +60.0°C (high = +84.0°C, crit = +94.0°C)
Core 2: +54.0°C (high = +84.0°C, crit = +94.0°C)
Core 3: +58.0°C (high = +84.0°C, crit = +94.0°C)
Core 4: +58.0°C (high = +84.0°C, crit = +94.0°C)
Core 5: +49.0°C (high = +84.0°C, crit = +94.0°C)

Report

C

Moob

2 years ago

I have uploaded version v0.5 which has the fix for the layout when CPU is not shown.
If you perform a cli of the lines 1063,1065,1324 and 1325 do you get a correct output ?

Report

9

autocrosser1

2 years ago

First--noticed that connections box is a bit short--changed by 20px to accommodate long addresses: conky_wired_tab_connections(tabwidth+40,starty+tabheight/2+190,300,200,"Arial",10,themes.tred,themes.tgreen,themes.tblue)

Term output:

dean@debian:~$ sensors | grep -iw core
Core 0: +53.0°C (high = +84.0°C, crit = +94.0°C)
Core 1: +51.0°C (high = +84.0°C, crit = +94.0°C)
Core 2: +47.0°C (high = +84.0°C, crit = +94.0°C)
Core 3: +58.0°C (high = +84.0°C, crit = +94.0°C)
Core 4: +51.0°C (high = +84.0°C, crit = +94.0°C)
Core 5: +45.0°C (high = +84.0°C, crit = +94.0°C)
dean@debian:~$ sensors | grep -iwE 'core.*high'
Core 0: +44.0°C (high = +84.0°C, crit = +94.0°C)
Core 1: +43.0°C (high = +84.0°C, crit = +94.0°C)
Core 2: +50.0°C (high = +84.0°C, crit = +94.0°C)
Core 3: +44.0°C (high = +84.0°C, crit = +94.0°C)
Core 4: +61.0°C (high = +84.0°C, crit = +94.0°C)
Core 5: +40.0°C (high = +84.0°C, crit = +94.0°C)
dean@debian:~$ cat /proc/cpuinfo | grep 'model name'
model name : Intel(R) Core(TM) i7-5820K CPU @ 3.30GHz
model name : Intel(R) Core(TM) i7-5820K CPU @ 3.30GHz
model name : Intel(R) Core(TM) i7-5820K CPU @ 3.30GHz
model name : Intel(R) Core(TM) i7-5820K CPU @ 3.30GHz
model name : Intel(R) Core(TM) i7-5820K CPU @ 3.30GHz
model name : Intel(R) Core(TM) i7-5820K CPU @ 3.30GHz
model name : Intel(R) Core(TM) i7-5820K CPU @ 3.30GHz
model name : Intel(R) Core(TM) i7-5820K CPU @ 3.30GHz
model name : Intel(R) Core(TM) i7-5820K CPU @ 3.30GHz
model name : Intel(R) Core(TM) i7-5820K CPU @ 3.30GHz
model name : Intel(R) Core(TM) i7-5820K CPU @ 3.30GHz
model name : Intel(R) Core(TM) i7-5820K CPU @ 3.30GHz
dean@debian:~$ cat /proc/cpuinfo | grep 'processor'
processor : 0
processor : 1
processor : 2
processor : 3
processor : 4
processor : 5
processor : 6
processor : 7
processor : 8
processor : 9
processor : 10
processor : 11


Report

C

Moob

2 years ago

Hmm I have noticed the same thing right now, strange. I will pull the v0.4 update back and see what the problem is.

Report

9

autocrosser1

2 years ago

I guess that I should have noted that I got the output after removing the "-q" after the startline--wanted to see terminal output. It just prints that line for as long as the terminal is open.

Report

C

Moob

2 years ago

My guess is that ifconfig is not installed when performing a standard installation of Debian Testing. This also is the case with Ubuntu 18.04. There you can install ifconfig with the ' sudo apt install net-tools' command. Alternative is to rewrite the code to use 'ip addr' which is always available.

Report

9

autocrosser1

2 years ago

Yes--that is correct--but even after installing it, can't be used without root.

Report

9

autocrosser1

4 years ago

Looks very good my friend!!! I'm going to set it up & play with it a bit.

Cheers!!!!

Report

C

Moob

4 years ago

Thanks autocrosser. That's were it's for, to tinker with it :)

Report

Version 0.6 2 years ago

Removed basic_get_cpu_sensors functionality as this gives problems on certain hardware configurations

Version 0.5 2 years ago

Fixed layout when show_cpu is "no"

Version 0.4 2 years ago

Removed the use of ifconfig due to depreciation on newer Linux distributions
Changed disk detection so a CD/DVD is seen correctly
Corrected typo on NIC detection
Added bond NIC detection

Version 0.3 2 years ago

Changed network detection so enp* network interfaces are found.

12345678910
12
product-maker papont Mar 22 2021 6 okay
Забыл спасибо сказать.
product-maker autocrosser1 Nov 20 2016 9 excellent
product-maker dshdsh Nov 03 2016 9 excellent
Be the first to comment
hanoi
Sep 05 2018
File (click to download) Version Description Downloads Date Filesize DL OCS-Install MD5SUM
*Needs pling-store or ocs-url to install things
Pling
0 Affiliates
Details
license
version
Version 0.6
updated Sep 11 2018
added Nov 02 2016
downloads 24h
0
mediaviews 24h 0
pageviews 24h 7