
Conky Lines
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
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'
Version 0.6 2 years ago
Removed basic_get_cpu_sensors functionality as this gives problems on certain hardware configurations
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.
autocrosser1
2 years ago
All the term output looks good:
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
Also changed the "connections" box 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)
Report
Moob
2 years ago
Report
autocrosser1
2 years ago
conky: llua_do_call: function conky_check_network_interfaces execution failed: /home/dean/.conky/lines/lines.lua:1073: attempt to perform arithmetic on local 's' (a nil value)
Not sure why a cpu test function would cause this line error.
Report
autocrosser1
2 years ago
Report
Moob
2 years ago
Report
autocrosser1
2 years ago
Report
autocrosser1
2 years ago
Report
Moob
2 years ago
Report
Moob
2 years ago
Report
Moob
2 years ago
Report
autocrosser1
2 years ago
Just tried to use your new version...Have not used the old version in quite a while & it looks like Debian Testing will not work with ifconfig anymore....Since my config is purely a desktop--I don't need to do a lot with interfaces--could you head me in the right direction to just hardwire the network interface?
Report
Moob
2 years ago
Report
autocrosser1
2 years ago
conky: llua_do_call: function conky_check_network_interfaces execution failed: /home/dean/.conky/lines/lines.lua:1062: attempt to perform arithmetic on local 's' (a nil value)
grep: invalid argument ‘0’ for ‘--directories’
Valid arguments are:
- ‘read’
- ‘recurse’
- ‘skip’
Usage: grep [OPTION]... PATTERN [FILE]...
Try 'grep --help' for more information.
Report
autocrosser1
2 years ago
dean@debian:~$ ip addr
1: lo: mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: enp7s0: mtu 1500 qdisc pfifo_fast master bond0 state UP group default qlen 1000
link/ether 00:e0:4c:68:0f:bf brd ff:ff:ff:ff:ff:ff
3: eno1: mtu 1500 qdisc pfifo_fast master bond0 state UP group default qlen 1000
link/ether 42:be:e4:df:ca:38 brd ff:ff:ff:ff:ff:ff
4: bond0: mtu 1500 qdisc noqueue state UP group default qlen 1000
link/ether 42:be:e4:df:ca:38 brd ff:ff:ff:ff:ff:ff
Report
Moob
2 years ago
Report
autocrosser1
2 years ago
Report
Moob
2 years ago
Report
autocrosser1
2 years ago
conky: llua_do_call: function conky_main execution failed: attempt to call a nil value
Report
Moob
2 years ago
So, I did not observe any strange things. ConkyLines start correctly on both systems.
Report
autocrosser1
2 years ago
Report
autocrosser1
2 years ago
conky: llua_do_call: function conky_check_network_interfaces execution failed: /home/dean/.conky/lines/lines.lua:1067: attempt to perform arithmetic on local 's' (a nil value)
So, it looks like the same problem still.....
Report
Moob
2 years ago
As for bonding, seem to work now but I can't ping to the outside world. Still investigating why.
Report
autocrosser1
2 years ago
Report
autocrosser1
2 years ago
Report
Moob
2 years ago
You could check if you run the sensors command, with a commandline as shown in the code, to see what you get back.
Report