Page 1 of 1

conky 1.9.0

Posted: 12 Nov 2011, 15:16
by Kriss
Update (2014-03-12) Since I've lost my usb flash, I decided to rebuild everything from scratch:
conky-1.9.0-nolua.xzm
conky-1.9.0.xzm (depends on lua at least, didn't test it though)
lua-5.1.5-x86_64-1cf.xzm (example lua module)
Compiled from official sources on clean porteus 3.0 (+devel)

Code: Select all

./configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --disable-lua
mkdir /new
make && make install DESTDIR=/new
--disable-lua flag was used for "nolua version"
added "/usr/share/autostart/conky.desktop" script

P.S. I tried to use version, created by freestyler, but didn't want to install dependancies like imlib, so I compiled it like this.
Update (2012-04-12) re-upload conky-1.8.1-2.xzm

Hello all!
Here's a little something I use: conky 1.8.1, system monitor, a fork ot torsmo.
It looks like this (bottom right corner).
This version doesn't requre lua and probably other deps unlike Slackware package.
Configured with options "--prefix=/usr --sysconfdir=/etc --disable-lua --enable-wlan"

About dependencies: feh is used if you don't want to see black rectangle under conky, giblib and imlib2 are used by feh

Here's example config file I use (place it in /etc/conky/conky.conf)

Code: Select all

alignment bottom_right
background yes
border_inner_margin 8
border_width 2
color1 white
# light blue
color2 red
color3 brown
color4 green
color5 pink
color6 yellow
color7 cyan
cpu_avg_samples 2
# Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes
draw_borders no
draw_graph_borders yes
draw_outline yes
draw_shades no
default_shade_color 000000
extra_newline no
# Gap between borders of screen and text
gap_x 5
gap_y 5
maximum_width 335 0
#minimum_size 5 5
net_avg_samples 2
no_buffers no
out_to_console no
out_to_stderr no
override_utf8_locale yes
own_window yes
own_window_colour black
own_window_class Conky
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
own_window_transparent yes
#own_window_type override
#own_window_argb_130
show_graph_range no
show_graph_scale no
stippled_borders 4
text_buffer_size 2048
update_interval 3.0
uppercase no
# adds spaces around certain objects to stop them from moving other things around
use_spacer right
#use_xft yes
#xftalpha 0.8
#xftfont DejaVu Sans Mono:size=8
#font -misc-fixed-medium-r-semicondensed-*-*-100-*-*-c-*-iso8859-1
font -misc-fixed-medium-r-semicondensed-*-*-*-*-*-*-*-*
#font -misc-fixed-medium-r-semicondensed-*-*-100-*-*-c-*-utf8


TEXT
${texeci 24 feh --bg-fill "`grep 'wallpaper=/' ~/.kde4/share/config/plasma-desktop-appletsrc | sed  's/wallpaper=//' | sed q`"}
${color5}$nodename/$kernel $machine Uptime: $uptime
${color4}CPU ${freq}MHz x ${execi 18000 cat /proc/cpuinfo | grep processor | wc -l}${alignr}${if_match "${cpu cpu0}" > "85" }${color2}${endif}${cpubar cpu0 2,235}
${color1}Core1${color} ${cpu cpu1}% ${if_match "${execi 18000 sensors | grep Core0 -c}"=="2"}${execi 3 sensors | grep Core0 | tail +15c | head -2c}(~${execi 3 sensors | grep Core0 | sed -n '/Core0 Temp/ {n;p}' | tail +15c|head -2c})'C${color1}${if_match "${cpu cpu1}" > "95" }${color2}${endif} ${alignr}${cpubar cpu1 2,210}${else}${alignr}${cpubar cpu1 2,235}${endif}${if_existing /sys/devices/system/cpu/cpu1}
${color1}Core2${color} ${cpu cpu2}% ${if_match "${execi 18000 sensors | grep Core1 -c}"=="2"}${execi 3 sensors | grep Core1 | tail +15c | head -2c}(~${execi 3 sensors | grep Core1 | sed -n '/Core1 Temp/ {n;p}' | tail +15c|head -2c})'C${color1}${if_match "${cpu cpu2}" > "95" }${color2}${endif} ${alignr}${cpubar cpu2 2,210}${else}${alignr}${cpubar cpu2 2,235}${endif}${endif}${if_existing /sys/devices/system/cpu/cpu2}
${color1}Core3${color} ${cpu cpu3}% ${if_match "${execi 18000 sensors | grep Core2 -c}"=="2"}${execi 3 sensors | grep Core2 | tail +15c | head -2c}(~${execi 3 sensors | grep Core2 | sed -n '/Core2 Temp/ {n;p}' | tail +15c|head -2c})'C${color1}${if_match "${cpu cpu3}" > "95" }${color2}${endif} ${alignr}${cpubar cpu3 2,210}${else}${alignr}${cpubar cpu3 2,235}${endif}${endif}${if_existing /sys/devices/system/cpu/cpu3}
${color1}Core4${color} ${cpu cpu4}% ${if_match "${execi 18000 sensors | grep Core3 -c}"=="2"}${execi 3 sensors | grep Core3 | tail +15c | head -2c}(~${execi 3 sensors | grep Core3 | sed -n '/Core3 Temp/ {n;p}' | tail +15c|head -2c})'C${color1}${if_match "${cpu cpu4}" > "95" }${color2}${endif} ${alignr}${cpubar cpu4 2,210}${else}${alignr}${cpubar cpu4 2,235}${endif}${endif}${if_existing /sys/devices/system/cpu/cpu4}
${color1}Core5${color} ${cpu cpu5}% ${if_match "${execi 18000 sensors | grep Core4 -c}"=="2"}${execi 3 sensors | grep Core4 | tail +15c | head -2c}(~${execi 3 sensors | grep Core4 | sed -n '/Core4 Temp/ {n;p}' | tail +15c|head -2c})'C${color1}${if_match "${cpu cpu5}" > "95" }${color2}${endif} ${alignr}${cpubar cpu5 2,210}${else}${alignr}${cpubar cpu5 2,235}${endif}${endif}${if_existing /sys/devices/system/cpu/cpu5}
${color1}Core6${color} ${cpu cpu6}% ${if_match "${execi 18000 sensors | grep Core5 -c}"=="2"}${execi 3 sensors | grep Core5 | tail +15c | head -2c}(~${execi 3 sensors | grep Core5 | sed -n '/Core5 Temp/ {n;p}' | tail +15c|head -2c})'C${color1}${if_match "${cpu cpu6}" > "95" }${color2}${endif} ${alignr}${cpubar cpu6 2,210}${else}${alignr}${cpubar cpu6 2,235}${endif}${endif}
${cpugraph 000000 ffffff}
${color1}Load:${color} ${loadavg}    ${color1}Processes:${color} $processes  ${alignr}${color1}Running:${color} $running_processes
${color1}NAME         ${alignr 64}PID ${alignr 32}MEM% ${alignr}CPU%
${color5}${top name 1} ${alignr 32}${top pid 1} ${alignr 16}${top mem 1}  ${alignr}${top cpu 1}${color}
${top name 2} ${alignr 32}${top pid 2} ${alignr 16}${top mem 2}  ${alignr}${top cpu 2}
${top name 3} ${alignr 32}${top pid 3} ${alignr 16}${top mem 3}  ${alignr}${top cpu 3}
${top name 4} ${alignr 32}${top pid 4} ${alignr 16}${top mem 4}  ${alignr}${top cpu 4}
${color4}RAM $memperc%, $mem of $memmax / DISK ${fs_free}${alignr}${fs_bar 2,70 /}${color1}
#${color1}swap:${color} $swapperc%  $swap / $swapmax ${alignr}${swapbar 6,164}
${diskiograph_read 25,165} ${alignr}${diskiograph_write 25,165}
${color1}Read: ${color}${diskio_read}${alignc -64}${color1}Write: ${color}${diskio_write}
${color5}${if_match "$gw_iface" == "eth0"}${color5}${endif}${if_existing /proc/net/route eth0}eth0 ${addr eth0}${endif}${color4}${if_match "$gw_iface" == "wlan0"}${color5}${endif}${if_existing /proc/net/route wlan0}wlan0 ${addr wlan0} ${endif}${if_gw}${color5}(${execi 300 wget http://automation.whatismyip.com/n09230945.asp -O - -q})${color4}${endif}${hr 2}${color1}
${if_existing /proc/net/route eth0}eth0 ${addr eth0} Up:${upspeed eth0} Down:${downspeed eth0}${endif}${if_existing /proc/net/route wlan0}wlan0 ${wireless_essid wlan0} Up:${upspeed wlan0}(${totalup wlan0})  Down:${downspeed wlan0}(${totaldown wlan0})${endif}
${if_existing /sys/class/power_supply/BAT1}${color4}BAT1 ${if_existing /sys/class/power_supply/BAT1/manufacturer}${execi 120 cat /sys/class/power_supply/BAT1/manufacturer}/${endif}${if_existing /sys/class/power_supply/BAT1/technology}${execi 120 cat /sys/class/power_supply/BAT1/technology}${endif} ${if_existing /sys/class/power_supply/BAT1/status Discharging}${color2}${endif}${if_existing /sys/class/power_supply/BAT1/status}(${execi 3 cat /sys/class/power_supply/BAT1/status}) ${endif}${color4}${hr 2}${color1}
${if_existing /sys/class/power_supply/BAT1/charge_now}${execi 3 cat /sys/class/power_supply/BAT1/charge_now | sed 's/...$//'}${endif}/${if_existing /sys/class/power_supply/BAT1/charge_full}${execi 120 cat /sys/class/power_supply/BAT1/charge_full | sed 's/...$//'}mAh${endif}${if_existing /sys/class/power_supply/BAT1/charge_full_design} (Factory ${execi 120 cat /sys/class/power_supply/BAT1/charge_full_design | sed 's/...$//'}mAh)${endif} ${if_existing /sys/class/power_supply/BAT1/voltage_now}${execi 3 cat /sys/class/power_supply/BAT1/voltage_now | sed -e :a -e 's/\(.*[0-9]\)\([0-9]\{6\}\)/\1,\2/;ta' | sed 's/...$//'}V${endif}${if_existing /sys/class/power_supply/BAT1/voltage_min_design} (min ${execi 120 cat /sys/class/power_supply/BAT1/voltage_min_design | sed -e :a -e 's/\(.*[0-9]\)\([0-9]\{6\}\)/\1,\2/;ta' | sed 's/...$//'}V)${endif}${endif}
In this config file it is assumed that your wallpaper placed with original proportions.
Also here I tried to automatically detect some things (number of cores, presence of battery, information from sensors) so there is probability that not everything will be seen on other systems/distros/Porteus versions. Please tell me if everything's Ok or if you don't see something.
Especially I'd like to know about CPU temperature(s).

Re: conky 1.8.1 + deps

Posted: 12 Nov 2011, 16:23
by Hamza
Hello,
On the screenshot you can notice numbers after each core (like 59-55 and 57-53), these are from temperature sensors. I didn't understand why there were two temperatures for each core, so just added both of them.
The Actual temperature and Average temperature.

Good Stuff.

Re: conky 1.8.1 + deps

Posted: 12 Nov 2011, 21:55
by Kriss
Thank you Hamza!
First one is Actual temperature and second one is for Average temperature?

I've reuploaded archive with something a little bit more normal (no /usr/local anymore and more options for WiFi) and will update cofiguration file later (when I'll be satisfied with it myself)

Re: conky 1.8.1 + deps

Posted: 12 Nov 2011, 22:36
by Hamza
First one is Actual temperature and second one is for Average temperature?
I cannot remember which is the actual temperature and which one is the average.

Re: conky 1.8.1 + deps

Posted: 13 Dec 2011, 09:59
by Kriss
I'm tinkering with configuration from time to time, here's newer one.
No dependencies needed because I switched from pseudo-transparency to real transparency...

Code: Select all

alignment bottom_right
background yes
border_inner_margin 8
border_width 2
color1 white
# light blue
color2 red
color3 brown
color4 green
color5 pink
color6 yellow
color7 cyan
color8 707070
color9 red
cpu_avg_samples 2
# Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes
draw_borders no
draw_graph_borders no
draw_outline yes
draw_shades yes
#default_shade_color 333333
extra_newline no
# Gap between borders of screen and text
gap_x 5
gap_y 5
maximum_width 235 0
#minimum_size 235 5
net_avg_samples 2
no_buffers no
out_to_console no
out_to_stderr no
#override_utf8_locale yes
own_window yes
own_window_transparent yes
own_window_argb_visual yes
#own_window_argb_value 255
#own_window_argb_130
own_window_type normal
own_window_class conky
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
own_window_colour black
show_graph_range yes
show_graph_scale yes
stippled_borders 4
text_buffer_size 2048
update_interval 3.0
uppercase no
short_units yes
#if_up_strictness address
if_up_strictness up
# adds spaces around certain objects to stop them from moving other things around
use_spacer right
#use_xft no
#xftalpha 0.8
#xftfont DejaVu Sans Mono:size=7
#font -misc-fixed-medium-r-semicondensed-*-*-100-*-*-c-*-iso8859-1
#font -misc-fixed-medium-r-semicondensed-*-*-*-*-*-*-*-*
#font -misc-fixed-medium-r-semicondensed-*-*-100-*-*-c-*-utf8


TEXT
$kernel $machine Uptime: $uptime_short
${color4}CPU ${freq_g}GHz X${pre_exec cat /proc/cpuinfo | grep processor | wc -l} ${cpu cpu0}% ${if_match "${pre_exec sensors | grep 'CPU Temperature' -c}">"0"}${execi 3 sensors | grep 'CPU Temperature' | tail +22c | head -2c}°C${alignr}${cpubar cpu0 2,95}${else}${alignr}${cpubar cpu0 2,115}${endif}${color}\
${if_existing /sys/devices/system/cpu/cpu0}
${cpu cpu1}% ${if_match "${pre_exec sensors | grep Core0 -c}">"0"}${execi 3 sensors | grep Core0 | tail +15c | head -2c}°C${alignr}${cpubar cpu1 2,175}${else}${alignr}${cpubar cpu1 2,210}${endif}${endif}\
${if_existing /sys/devices/system/cpu/cpu1}
${cpu cpu2}% ${if_match "${pre_exec sensors | grep Core1 -c}">"0"}${execi 3 sensors | grep Core1 | tail +15c | head -2c}°C${alignr}${cpubar cpu2 2,175}${else}${alignr}${cpubar cpu2 2,210}${endif}${endif}\
${if_existing /sys/devices/system/cpu/cpu2}
${cpu cpu3}% ${if_match "${pre_exec sensors | grep Core2 -c}">"0"}${execi 3 sensors | grep Core2 | tail +15c | head -2c}°C${alignr}${cpubar cpu2 2,175}${else}${alignr}${cpubar cpu3 2,210}${endif}${endif}\
${if_existing /sys/devices/system/cpu/cpu3}
${cpu cpu4}% ${alignr}${cpubar cpu4 2,210}${endif}\
${if_existing /sys/devices/system/cpu/cpu4}
${cpu cpu5}% ${alignr}${cpubar cpu5 2,210}${endif}\
${if_existing /sys/devices/system/cpu/cpu5}
${cpu cpu6}% ${alignr}${cpubar cpu6 2,210}${endif}
#${color1}${cpugraph 000000 ffffff}
\
\
${color1}Processes:${color} $processes  ${alignr}${color1}Running:${color} $running_processes
${color1}NAME         ${alignr 32}PID ${alignr 12}MEM% ${alignr}CPU%${color5}
${top name 1} ${alignr}${top pid 1} ${alignr}${top mem 1} ${alignr}${top cpu 1}${color}
${top name 2} ${alignr}${top pid 2} ${alignr}${top mem 2} ${alignr}${top cpu 2}
${top name 3} ${alignr}${top pid 3} ${alignr}${top mem 3} ${alignr}${top cpu 3}
${top name 4} ${alignr}${top pid 4} ${alignr}${top mem 4} ${alignr}${top cpu 4}
\
\
${color4}RAM $memperc%, $mem/$memmax ${alignr}${membar 2,105}${color1}
#${pre_exec cat /var/log/porteus-livedbg | grep "# Porteus boot device:" -A1 | tail --lines=1} ${fs_free}/${fs_size}${alignr}${fs_bar 2,115}${color1}
#${color1}swap:${color} $swapperc%  $swap / $swapmax ${alignr}${swapbar 6,164}
#${diskiograph_read 25,165} ${alignr}${diskiograph_write 25,165}
HDD ${color1}read: ${color}${diskio_read}${alignc -64}${color1}write: ${color}${diskio_write}
\
\
${color4}${pre_exec echo `lspci -vv | grep 'VGA compatible' -A50 | grep 'Kernel modules' | sed -e 's/.*Kernel modules: //' | sed q`}${hr 2}${color1}
${pre_exec echo `lspci | grep 'VGA compatible' | sed -e 's/.*controller: //' -e 's/Corporation //' -e 's/Technologies Inc //' -e 's/(rev /(/'` `lspci -v | grep 'VGA compatible' -A10 | grep ' prefetchable' | sed -e 's/.*\[size=//' -e 's/\]//'`}
${color4}${if_match "${pre_exec lspci -v | grep Audio -A18 | grep 'Kernel modules' | grep snd-hda-intel -c}">="2"}${pre_exec echo 'snd-hda-intel' \(x`lspci -v | grep Audio -A18 | grep 'Kernel modules' | grep snd-hda-intel -c`\)} ${pre_exec echo `lspci -v | grep Audio -A18 | grep 'Kernel modules' | sed -e 's/.*Kernel modules: //' | grep snd-hda-intel -v`}${else}${pre_exec echo `lspci -v | grep Audio -A18 | grep 'Kernel modules' | sed -e 's/.*Kernel modules: //'`}${endif}${hr 2}${color1}
${pre_exec echo `lspci | grep Audio | sed -e 's/.*device: //' -e 's/Corporation //' -e 's/Technologies Inc //' -e 's/ Audio//' -e 's/ Controller//' -e 's/High Definition/HD/' -e 's/000/k/' -e 's/(rev /(/' | head -1`}${if_match "${pre_exec lspci | grep Audio -c}">"1"}
${pre_exec echo `lspci | grep Audio | sed -e 's/.*device: //' -e 's/Corporation //' -e 's/Technologies Inc //' -e 's/ Audio//' -e 's/ Controller//' -e 's/High Definition/HD/' -e 's/000/k/' -e 's/(rev /(/' | tail -1`}${endif}${if_match "${pre_exec lspci | grep 'Multimedia audio controller' -c}">"0"}
${pre_exec echo `lspci | grep 'Multimedia audio controller' | sed -e 's/.*Multimedia audio controller: //' -e 's/Corporation //' -e 's/Technologies Inc //' -e 's/ Audio//' -e 's/ Controller//' -e 's/High Definition Audio/HDA/' -e 's/(rev /(/' | head -1`}${endif}
\
\
${if_match "${pre_exec ifconfig | grep HWaddr -c}">"0"}${if_up eth0}${color8}${if_existing /proc/net/route eth0}${color1}${if_match "$gw_iface"=="eth0"}${color4}${endif}${endif}eth0 ${endif}${if_up wlan0}${color8}${if_existing /proc/net/route wlan0}${color1}${if_match "$gw_iface"=="wlan0"}${color4}${endif}${endif}wlan0${endif}${color4}${if_gw}${execi 300 wget http://automation.whatismyip.com/n09230945.asp -O - -q}${endif}${hr 2}${color1}
${if_up eth0}${color8}${if_match "$gw_iface"=="eth0"}${color4}${endif}eth0 ${if_existing /proc/net/route eth0}${addrs eth0}${endif}
${pre_exec cat /sys/class/net/eth0/device/uevent | grep 'DRIVER=' | tail +8c} \
${pre_exec lspci -vv | grep `cat /sys/class/net/eth0/device/uevent | grep 'PCI_SLOT_NAME=' | tail +20c` | sed -e 's/.*Ethernet controller: //' -e 's/Technology //' -e 's/Group //' -e 's/Ltd. //' -e 's/Inc. //' -e 's/Corp. //' -e 's/Communications //' -e 's/Semiconductor //' -e 's/Ethernet //' -e 's/Controller //' -e 's/Adapter//' -e 's/(rev /(/'}${endif}${color}${if_existing /proc/net/route eth0}
Up:${upspeed eth0} ${totalup eth0} Down:${downspeed eth0} ${totaldown eth0}${endif}${color}
${if_up wlan0}${color8}${if_match "$gw_iface"=="wlan0"}${color4}${endif}wlan0 ${if_existing /proc/net/route wlan0}${addrs wlan0} ${wireless_essid wlan0} ${wireless_mode wlan0}${endif}
${pre_exec cat /sys/class/net/wlan0/device/uevent | grep 'DRIVER=' | tail +8c} \
${if_match "${pre_exec cat /sys/class/net/wlan0/device/uevent | grep usb_interface -c}">"0"}\
${pre_exec lsusb | grep Wireless | tail +34c | sed -e 's/.*Ethernet controller: //' -e 's/Technology //' -e 's/Group //' -e 's/Ltd. //' -e 's/Inc. //' -e 's/Corp. //' -e 's/Communications //' -e 's/Semiconductor //' -e 's/Fast //' -e 's/Ethernet //' -e 's/Controller //' -e 's/Adapter//' -e 's/(rev /(/'}(USB)${endif}
${pre_exec lspci -vv | grep `cat /sys/class/net/wlan0/device/uevent | grep 'PCI_SLOT_NAME=' | tail +20c` | sed -e 's/.*Ethernet controller: //' -e 's/Technology //' -e 's/Group //' -e 's/Ltd. //' -e 's/Inc. //' -e 's/Corp. //' -e 's/Communications //' -e 's/Semiconductor //' -e 's/Fast //' -e 's/Ethernet //' -e 's/Controller //' -e 's/Adapter//' -e 's/(rev /(/'}${endif}${if_existing /proc/net/route wlan0}
Up:${upspeed wlan0} ${totalup wlan0} Down:${downspeed wlan0} ${totaldown wlan0}${endif}${color}
\
\
${if_existing /sys/class/power_supply/BAT0}${color4}BAT0 ${if_existing /sys/class/power_supply/BAT0/manufacturer}${pre_exec cat /sys/class/power_supply/BAT0/manufacturer}/${endif}${if_existing /sys/class/power_supply/BAT0/technology}${pre_exec cat /sys/class/power_supply/BAT0/technology}${endif}${if_existing /sys/class/power_supply/BAT0/charge_full_design} ${pre_exec cat /sys/class/power_supply/BAT0/charge_full_design | head -c -4}mAh${endif} ${if_existing /sys/class/power_supply/BAT0/status Discharging}${color2}${endif}${if_existing /sys/class/power_supply/BAT0/status}(${execi 6 cat /sys/class/power_supply/BAT0/status})${endif}${color4}${hr 2}${color1}
${if_existing /sys/class/power_supply/BAT0/charge_now}${execi 6 cat /sys/class/power_supply/BAT0/charge_now | head -c -4}${endif}/${if_existing /sys/class/power_supply/BAT0/charge_full}${pre_exec cat /sys/class/power_supply/BAT0/charge_full | head -c -4 }mAh${endif} ${if_existing /sys/class/power_supply/BAT0/voltage_now}${execi 6 cat /sys/class/power_supply/BAT0/voltage_now | sed -e :a -e 's/\(.*[0-9]\)\([0-9]\{6\}\)/\1,\2/;ta' -e 's/...$//'}V${endif}${if_existing /sys/class/power_supply/BAT0/voltage_min_design} (min ${pre_exec cat /sys/class/power_supply/BAT0/voltage_min_design | sed -e :a -e 's/\(.*[0-9]\)\([0-9]\{6\}\)/\1,\2/;ta' -e 's/...$//'}V)${endif}${endif}\
\
${if_existing /sys/class/power_supply/BAT1}${color4}BAT1 ${if_existing /sys/class/power_supply/BAT1/manufacturer}${pre_exec cat /sys/class/power_supply/BAT1/manufacturer}/${endif}${if_existing /sys/class/power_supply/BAT1/technology}${pre_exec cat /sys/class/power_supply/BAT1/technology}${endif}${if_existing /sys/class/power_supply/BAT1/charge_full_design} ${pre_exec cat /sys/class/power_supply/BAT1/charge_full_design | head -c -4}mAh${endif} ${if_existing /sys/class/power_supply/BAT1/status Discharging}${color2}${endif}${if_existing /sys/class/power_supply/BAT1/status}(${execi 6 cat /sys/class/power_supply/BAT1/status})${endif}${color4}${hr 2}${color1}
${if_existing /sys/class/power_supply/BAT1/charge_now}${execi 6 cat /sys/class/power_supply/BAT1/charge_now | head -c -4}${endif}/${if_existing /sys/class/power_supply/BAT1/charge_full}${pre_exec cat /sys/class/power_supply/BAT1/charge_full | head -c -4 }mAh${endif} ${if_existing /sys/class/power_supply/BAT1/voltage_now}${execi 6 cat /sys/class/power_supply/BAT1/voltage_now | sed -e :a -e 's/\(.*[0-9]\)\([0-9]\{6\}\)/\1,\2/;ta' -e 's/...$//'}V${endif}${if_existing /sys/class/power_supply/BAT1/voltage_min_design} (min ${pre_exec cat /sys/class/power_supply/BAT1/voltage_min_design | sed -e :a -e 's/\(.*[0-9]\)\([0-9]\{6\}\)/\1,\2/;ta' -e 's/...$//'}V)${endif}${endif}


${alignr}
Detects (can tweak it if anyone wants something):
number of cpu cores,
CPU temperature sensor.
AMD k8temp sensors for first 2 cores
wlan0, eth0 and their state, IP, Wlan mode and network
1 VGA card + loaded kernel modules (video memory value is broken, don't know where to look for it)
2-3 Sound cards + loaded kernel modules
Batteries BAT0 and BAT1 (useful for notebooks), their state, voltage, charge in mAh and some generic info

Screenshot

P.S. Excuse me for big image, I was in hurry. I'll add screenshot rom notebook soon.

Re: conky 1.8.1 + deps

Posted: 13 Dec 2011, 16:11
by Hamza
Hmm..There is a parameter in rc file about desktop position..Really sorry I can't remember. please make a diff and try to find out a parameter with keyword : top / right / absolute /

Re: conky 1.8.1 + deps

Posted: 13 Dec 2011, 18:45
by Kriss
@Hamza
Sorry I can't understand what you wanted to say...
There's parameter "alignment" at the top of configuration file.
Text alignment on screen, {top,bottom,middle}_{left,right,middle} or none. Can also be abbreviated with first chars of position, ie. tr for top_right.
Aligned position on screen, may be top_left, top_right, top_middle, bottom_left, bottom_right, bottom_middle, middle_left, middle_middle, middle_right, or none (also can be abreviated as tl, tr, tm, bl, br, bm, ml, mm, mr). See also gap_x and gap_y.
In my case it's "bottom_right".

Re: conky 1.8.1 + deps

Posted: 13 Dec 2011, 18:59
by Hamza
So, you need to replace it by top_right to place it on top right of your screen.

Re: conky 1.8.1 + deps

Posted: 14 Dec 2011, 01:57
by Kriss
Yes.

Code: Select all

alignment top_right

Re: conky 1.8.1 + deps

Posted: 14 Dec 2011, 17:08
by Hamza
Let us know if this worked and solved your problem.

Re: conky 1.8.1 + deps

Posted: 15 Dec 2011, 05:57
by Kriss
Err... I had no problems.
I updated this topic to post newer (better in my opinion) configuration file.

Re: conky 1.8.1 + deps

Posted: 01 Jan 2012, 23:06
by lukaluki
It seems the conky file on mediafire has been deleted :(
could you please reupload it? would be so great!

thank you!

Re: conky 1.8.1 + deps

Posted: 12 Apr 2012, 08:30
by Kriss
Sorry, was absent for a long time.
And didn't find a way to upload files there (if somebody know how to do it with their new interface, please tell me) so i uploaded conky-1.8.1-2.xzm to depositfiles.com
http://depositfiles.com/files/fbbfgvetq

Re: conky

Posted: 12 Mar 2014, 10:36
by Kriss
Update...