Last edited by CantankRus; January 18th, 2015 at 12:22 PM.
Have a look here if you want to do it yourself.
http://www.webupd8.org/2013/05/get-w...o-on-your.html
or
http://ubuntuforums.org/showthread.p...1#post13054131
Last edited by CantankRus; January 18th, 2015 at 12:00 PM.
Hi all. I'm new to this thread (and linux, for that matter). Using Lubuntu 14.04 on an older-than-dirt Dell Latitude D830. Anyway, I've just gotten my .conkyrc to something I like and figured I would post. It's not much to look at, but I've always been more about functionality than design.
I custom wrote a Python script which pulls my calendar (in from .ics file) and parses any events for the current and next days (crontab does this for me every half-hour). These are written to file and read in by conky. Everything else in the .conkyrc was pulled from a NoobsLab's Gotham Conky at http://www.noobslab.com/2012/09/inst...untulinux.html (minus the silly fonts).
My .conkyrc:
Example calendar output file:Code:use_xft yes xftfont 123:size=8 xftalpha 0.1 update_interval 3 total_run_times 0 own_window yes own_window_transparent yes own_window_type normal own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager own_window_argb_visual yes own_window_argb_value 0 gap_x 1650 gap_y 20 double_buffer yes minimum_size 650 1000 maximum_width 700 draw_shades yes draw_outline no draw_borders no draw_graph_borders no default_color e0e0e0 default_shade_color black default_outline_color green alignment tr gap_x 15 gap_y 25 no_buffers yes uppercase no cpu_avg_samples 2 net_avg_samples 1 override_utf8_locale yes use_spacer right background yes text_buffer_size 1024 TEXT ${voffset 10}${color #dddddd}${font Ubuntu:pixelsize=120}${time %H:%M}${font}${voffset -84}${offset 29}${color #FCD97B}${font Ubuntu:pixelsize=42}${time %d}${voffset -10}${color #dddddd}${font Ubuntu:pixelsize=22} ${time %B} ${time %Y}${font}${voffset 24}${font Ubuntu:pixelsize=58}${offset -165}${time %A}${font} ${voffset 22}${offset 12}${font Ubuntu:pixelsize=12}${color #FCD97B}HD ${offset 5}${color #dddddd}${fs_free /home} / ${fs_size /home}${offset 15}${color #FCD97B}RAM ${offset 5}${color #dddddd}$mem / $memmax${offset 15}${color #FCD97B}CPU ${offset 5}${color #dddddd}${cpu}%${offset 15}${color #FCD97B}DOWN${color #dddddd}${offset 5}${if_existing /proc/net/route wlan0}${downspeed wlan0}${else}${if_existing /proc/net/route eth0}${downspeed eth0}${else}${if_existing /proc/net/route eth0}${downspeed eth0}${endif}${endif}${endif}${offset 15}${color #FCD97B}UP${color #dddddd}${offset 5}${if_existing /proc/net/route wlan0}${upspeed wlan0}${else}${if_existing /proc/net/route eth0}${upspeed eth0}${else}${if_existing /proc/net/route eth0}${upspeed eth0}${endif}${endif}${endif} ${execpi 10 cat ~/.conky-config/conky_text}
It has a slight problem when there is too much stuff to display for a certain day's events and just truncates the output, but I don't know what it is. I tried setting the text buffer limit to something higher, but it doesn't help. Anyway, feel free to criticize.Code:${alignr 250}${color #FCD97B}TODAY: ${alignr 220}${color #FCD97B}Gas Dynamics: ${alignr 200}${color #dddddd}544 Baldwin ${alignr 200}11:00-12:20 ${alignr 200} ${alignr 220}${color #FCD97B}Solid Mechanics I: ${alignr 200}${color #dddddd}3200 CRC ${alignr 200}14:00-15:20 ${alignr 200} ${alignr 220}${color #FCD97B}Numerical Methods: ${alignr 200}${color #dddddd}3220 CRC ${alignr 200}15:30-17:20 ${alignr 200} ${alignr 250}${color #FCD97B}TOMORROW: ${alignr 220}${color #FCD97B}Modeling and Simulation of Engineering Dynamics: ${alignr 200}${color #dddddd}3230 CRC ${alignr 200}11:15-12:10 ${alignr 200} ${alignr 220}${color #FCD97B}Integrated Aircraft Design: ${alignr 200}${color #dddddd}3200 CRC ${alignr 200}13:25-14:20 ${alignr 200}
@ nicklas3
Try adding these settings above "TEXT" in your config and increasing default values.
From man conky...Code:max_specials 1024 max_user_text 32768
max_specials
Maximum number of special things, e.g. fonts, offsets, aligns, etc. (default is 512)max_user_text bytes
Maximum size of user text buffer, i.e. layout below TEXT line in config file (default is 16384 bytes)
Looking for correct place to find script code needed to output lm sensors to conkyrc. Specifically i want to read motherboard voltages. I am suspicious of the +5 volt value. I don't things would be working that well if it really was that low.
sensors output in terminal mode:
ed@ed-G41MT-S2PT:~$ sensors
coretemp-isa-0000
Adapter: ISA adapter
Core 0: +37.0°C (high = +78.0°C, crit = +100.0°C)
Core 1: +32.0°C (high = +78.0°C, crit = +100.0°C)
it8720-isa-0290
Adapter: ISA adapter
in0: +1.12 V (min = +0.00 V, max = +4.08 V)
in1: +1.52 V (min = +0.00 V, max = +4.08 V)
in2: +3.26 V (min = +0.00 V, max = +4.08 V)
+5V: +2.96 V (min = +0.00 V, max = +4.08 V)
in4: +0.45 V (min = +0.00 V, max = +2.10 V)
in5: +3.14 V (min = +0.00 V, max = +4.08 V)
in6: +2.14 V (min = +0.00 V, max = +4.08 V)
5VSB: +2.14 V (min = +0.00 V, max = +4.08 V)
Vbat: +3.30 V
fan1: 950 RPM (min = 10 RPM)
fan2: 2616 RPM (min = 10 RPM)
temp1: -55.0°C (low = +127.0°C, high = +127.0°C) sensor = thermistor
temp2: -2.0°C (low = +127.0°C, high = +127.0°C) sensor = thermistor
temp3: +27.0°C (low = +127.0°C, high = +60.0°C) sensor = thermal diode
cpu0_vid: +1.150 V
intrusion0: ALARM
You need to use sed or awk to filter the text you want to see from your sensors output.
eg test the command in terminal...
To use in conky...Code:sensors | awk '/+5V:/{print $2}'
PS Don't know what the voltages mean but my output has no +5VCode:${exec sensors | awk '/+5V:/{print $2}'}
Code:glen@Trusty:~$ sensors it8728-isa-0228 Adapter: ISA adapter in0: +0.84 V (min = +0.00 V, max = +3.06 V) in1: +1.49 V (min = +0.00 V, max = +3.06 V) in2: +1.98 V (min = +0.00 V, max = +3.06 V) +3.3V: +3.22 V (min = +0.00 V, max = +6.12 V) in4: +1.92 V (min = +0.00 V, max = +3.06 V) in5: +2.21 V (min = +0.00 V, max = +3.06 V) in6: +2.21 V (min = +0.00 V, max = +3.06 V) 3VSB: +3.26 V (min = +0.00 V, max = +6.12 V) Vbat: +3.24 V fan1: 2896 RPM (min = 0 RPM) fan2: 1147 RPM (min = 0 RPM) fan3: 0 RPM (min = 0 RPM) temp1: +36.0°C (low = +127.0°C, high = +127.0°C) sensor = thermistor temp2: +43.0°C (low = +127.0°C, high = +127.0°C) sensor = thermal diode temp3: +47.0°C (low = +127.0°C, high = +127.0°C) sensor = Intel PECI intrusion0: ALARM k10temp-pci-00c3 Adapter: PCI adapter temp1: +31.2°C (high = +70.0°C) (crit = +80.0°C, hyst = +77.0°C) fam15h_power-pci-00c4 Adapter: PCI adapter power1: 87.59 W (crit = 95.06 W)
Last edited by CantankRus; February 2nd, 2015 at 09:03 AM.
CantankRus,
Here is what test result gave:
ed@ed-G41MT-S2PT:~$ sensors
coretemp-isa-0000
Adapter: ISA adapter
Core 0: +37.0°C (high = +78.0°C, crit = +100.0°C)
Core 1: +32.0°C (high = +78.0°C, crit = +100.0°C)
it8720-isa-0290
Adapter: ISA adapter
in0: +1.12 V (min = +0.00 V, max = +4.08 V)
in1: +1.54 V (min = +0.00 V, max = +4.08 V)
in2: +3.28 V (min = +0.00 V, max = +4.08 V)
+5V: +2.96 V (min = +0.00 V, max = +4.08 V)
in4: +0.43 V (min = +0.00 V, max = +2.10 V)
in5: +3.14 V (min = +0.00 V, max = +4.08 V)
in6: +2.14 V (min = +0.00 V, max = +4.08 V)
5VSB: +2.14 V (min = +0.00 V, max = +4.08 V)
Vbat: +3.30 V
fan1: 852 RPM (min = 10 RPM)
fan2: 2419 RPM (min = 10 RPM)
temp1: -55.0°C (low = +127.0°C, high = +127.0°C) sensor = thermistor
temp2: -2.0°C (low = +127.0°C, high = +127.0°C) sensor = thermistor
temp3: +19.0°C (low = +127.0°C, high = +60.0°C) sensor = thermal diode
cpu0_vid: +1.150 V
intrusion0: ALARM
ed@ed-G41MT-S2PT:~$ sensors | awk '/+5V:/{print $2}'
awk: line 1: regular expression compile failed (missing operand)
+5V:
ed@ed-G41MT-S2PT:~$
Try this one...may have to escape"\" the "+"....
Code:sensors | awk '/\+5V:/{print $2}'
CantankRus,
The suggested change worked!
ed@ed-G41MT-S2PT:~$ sensors | awk '/\+5V:/{print $2}'
+2.96
ed@ed-G41MT-S2PT:~$
Now I need to see if I can embed this code in the conky file and get things rolling.....I appreciate the advice and may need to pick your cantankerous brain again.....thanks much! ed
Bookmarks