Active Topics

 



Notices


Reply
Thread Tools
Posts: 112 | Thanked: 105 times | Joined on Mar 2010 @ Montpellier, FRANCE
#81
Hi

a new command for your conky.conf

Code:
${execi 3600 rootsh apt-get -s upgrade |grep "upgraded," |awk '{ print $1 }'} Package(s) to update
 
Posts: 463 | Thanked: 103 times | Joined on Jul 2010 @ Mumbai, India
#82
I have modified my conky.conf file with the help of the people in this thread but I still have two problems with it.

The first one was the "A" in the temperature section which I happened to solve using DaSilva's config file and added dchky's line in the conky.conf file.

The second problem that I still have persisting is a small shaped square box near Process top 4-6 Mem%, also towards the right hand side of the page and in Uptime, Battery and Networks.

i tried editing the file in Notepad++ on Windows 7 & also converting and encoding it in UTF-8 without BOM but that symbol still remains.

Any ideas on how to get rid of it?

Your help will be appreciated a lot.

Thanks

P.S : See the screenshot below and also have a look at my conky.conf file if there seems to be any errors in it.
Attached Images
 
Attached Files
File Type: zip conky.zip (2.2 KB, 169 views)
 
Posts: 112 | Thanked: 105 times | Joined on Mar 2010 @ Montpellier, FRANCE
#83
Hi

1/ add in your config: override_utf8_locale yes

2/ format file with Notepad++ it's for windows end of line CRLF add square at end of line, linux (maemo) want LF. Look in Menu Edition.
 

The Following User Says Thank You to GaRy delaMEr For This Useful Post:
Posts: 463 | Thanked: 103 times | Joined on Jul 2010 @ Mumbai, India
#84
Originally Posted by GaRy delaMEr View Post
Hi

1/ add in your config: override_utf8_locale yes
where in conky.conf should I add this line. Start,end or in the middle? Sorry if this sounds dumb but I am a noob.
 
James_Littler's Avatar
Posts: 820 | Thanked: 436 times | Joined on May 2010 @ Portsmouth, UK.
#85
At the very top I would have thought, almost like page encoding in html documents.

You could however just re-copy and paste the code into notepad++ and save it.
re-saving a corrupted file wont magically un-corrupt it.
 

The Following User Says Thank You to James_Littler For This Useful Post:
Posts: 112 | Thanked: 105 times | Joined on Mar 2010 @ Montpellier, FRANCE
#86
Yes before TEXT.


Verify the EOL (end of line) in Menu->Edit->EOL Conversion->Convert to Unix Format

OR

Menu->View->Show symbol->Show end of line, it's a symbol [LF], not [CRLF][LF]. By default, on windows, notepad++ use windows format [CRLF][LF]
 

The Following User Says Thank You to GaRy delaMEr For This Useful Post:
Posts: 463 | Thanked: 103 times | Joined on Jul 2010 @ Mumbai, India
#87
Thanks a lot Gary and James I finally managed to get rid of those stupid looking squares from Conky but now I have a new problem that the °C in temperature column no longer shows up now.

How do I fix this? My conky.conf is below and also the screenshot that shows the problem

Thanks in advance..

Code:
override_utf8_locale yes

# Conky, a system monitor, based on torsmo
#
# Any original torsmo code is licensed under the BSD license
#
# All code written since the fork of torsmo is licensed under the GPL
#

# Copyright (c) 2004, Hannu Saransaari and Lauri Hakkarainen
# Copyright (c) 2005-2007 Brenden Matthews, Philip Kovacs, et. al. (see AUTHORS)
# All rights reserved.
#
# Please see COPYING for details
## This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
#
# $Id: conky.conf 1193 2008-06-21 20:37:58Z ngarofil $

alignment top_left
background no
maximum_width 800
border_width 1
cpu_avg_samples 2
default_color white
default_outline_color white
default_shade_color white
default_graph_size 15,50
draw_borders no
draw_graph_borders no
draw_outline no
draw_shades no
use_xft yes
xftfont Droid Sans Mono:size=11
xftalpha 0.8
double_buffer yes
gap_x 20
gap_y 60
minimum_size 5 5
net_avg_samples 2
no_buffers yes
out_to_console no
own_window yes
own_window_class Conky
own_window_type normal
own_window_transparent yes
own_window_hints below,sticky
stippled_borders 0
update_interval 3.0
uppercase no
use_spacer none
show_graph_scale no
show_graph_range no

TEXT
$alignc $nodename - $sysname $kernel on $machine ${color light blue}Uptime:$color $uptime
${color 0084C9}$stippled_hr
${color light blue}Frequency:$color  ${freq}MHz ${color light blue}Temperature: ${goto 290} $color${execi 3 cat /sys/class/power_supply/bq27200-0/temp}°C ${goto 340} ${color light blue}Load:$color $loadavg   ${color light blue}Processes:$color $processes  ${color light blue}Running:$color $running_processes
${color light blue}CPU Usage:$color  $cpu% ${color light blue} ${goto 168} Current: ${goto 280} $color${execi 3 cat /sys/class/power_supply/bq27200-0/current_now}mA ${goto 350}${color grey}${cpubar 5}
${color light blue}CPU Graph: ${color black}${cpugraph 16,232 ffffff 0094ff}${color light blue} ${goto 340} Lo:${color black}${loadgraph 1 16,105 ffe400 ffe400}${color light blue} Dio:${color black}${diskiograph /dev/mmcblk0 16,105 00ff00 00ff00}${color light blue} Mem:${color black}${memgraph 15,105 ff0000 ff0000}
${color light blue}RAM  Usage:$color${goto 110}$mem${goto 190} | $memmax${goto 310}$memperc%${goto 350}${color grey}${membar 5}
${color light blue}Swap Usage:$color${goto 110}$swap${goto 190} | $swapmax${goto 310}$swapperc%${goto 350}${color grey}${swapbar 5}
${color 0084C9}$stippled_hr
${color light blue}rootfs${goto 110}$color${fs_free /}${goto 190} | ${fs_size /} ${color grey}${goto 310}${fs_free_perc /}%${goto 350}${color grey}${fs_bar 5 /}
${color light blue}home${goto 110}$color${fs_free /home}${goto 190} | ${fs_size /home} ${color grey}${goto 310}${fs_free_perc /home}%${goto 350}${color grey}${fs_bar 5 /home}
${if_mounted /home/user/MyDocs}${color light blue}MyDocs${goto 110}$color${fs_free /home/user/MyDocs}${goto 190} | ${fs_size /home/user/MyDocs} ${color grey}${goto 310}${fs_free_perc /home/user/MyDocs}%${goto 350}${color grey}${fs_bar 5 /home/user/MyDocs}$endif
${color light blue}Battery:$color ${goto 110}${color green}${execi 30 if [ "`hal-device bme |grep "is_charging" |awk '{print $3;}' |sed -e :a -e '$!N;s/\n/ /;ta'`" = "true" ]; then  echo "Charging..."; fi}$color${goto 310}${execi 30 hal-device bme |grep "percentage" |awk '{print $3;}'}%${goto 350}${color grey}${execibar 30 hal-device bme |grep "percentage" |awk '{print $3;}'} 
${if_mounted /media/mmc1}${color light blue}mmc1${goto 110}$color${fs_free /media/mmc1}${goto 190}| ${fs_size /media/mmc1} ${color grey}${goto 310}${fs_free_perc /media/mmc1}%${goto 350}${color grey}${fs_bar 5 /media/mmc1}$endif
${color 0084C9}$stippled_hr
${if_up gprs0}${color light blue}gprs0: ${color light blue}Up:$color ${upspeed gprs0} kB/s${color grey} - ${color light blue}Down:$color ${downspeed gprs0} kB/s  $else${color light blue}gprs0: ${color light blue} Not Connected$endif
${if_empty ${wireless_essid wlan0}}${color light blue}wlan0:  ${color light blue}Not Connected $else${color light blue}wlan0 ESSID: $color${wireless_essid wlan0} ${color light blue}Rate: ${color}${wireless_bitrate wlan0} ${color light blue}Connection Quality: $color${wireless_link_qual_perc wlan0}% ${color light blue}Up:$color ${upspeed wlan0} kB/s ${color grey} - ${color light blue}Down:$color ${downspeed wlan0} kB/s $endif
${if_up gprs0}${color light blue}gprs0 Up: ${color black}${upspeedgraph gprs0 20,290 ff0000 00ff00}$alignr${color light blue}gprs0 Down: ${color black}${downspeedgraph gprs0 20,290 00ff00 ff0000}$else${if_empty ${wireless_essid wlan0}}$else${color light blue}wlan0 Up: ${color black}${upspeedgraph wlan0 20,290 00ff00 ff0000}$alignr${color light blue}wlan0 Down: ${color black}${downspeedgraph wlan0 20,290 ff0000 00ff00}$endif$endif
${color 0084C9}$stippled_hr
${color light blue}Process Top 1-3       PID   CPU%   MEM%                   ${goto 400}Process Top 4-6       PID   CPU%   MEM%
${color #ffffff} ${top name 1}    ${top pid 1} ${top cpu 1} ${top mem 1}     ${color #ffffff} ${top name 4}    ${top pid 4} ${top cpu 4} ${top mem 4}
${color #ffffff} ${top name 2}    ${top pid 2} ${top cpu 2} ${top mem 2}     ${color #ffffff} ${top name 5}    ${top pid 5} ${top cpu 5} ${top mem 5}
${color #ffffff} ${top name 3}    ${top pid 3} ${top cpu 3} ${top mem 3}     ${color #ffffff} ${top name 6}    ${top pid 6} ${top cpu 6} ${top mem 6}
Attached Images
 
 
Posts: 14 | Thanked: 8 times | Joined on Feb 2010
#88
Here is my conky script:



The notable things are the space I reclaimed next to the TOP process readings.
The charge is obtained using python and updated only ever 15 secs.
my battery has just dropped two "bars" below the top so they turned gray. Each bar is 2.5%, and the time remaining is only accurate to within 3 hours, but it works great.

If I connect to USB internet, the WIFI bar changes to show USB speeds and graph. (working on making that work with bluetooth as well.)

I used to have the two temperatures printing out, but I lost that script and I cant remember the sensor positions.

What do you guys think?

Code:
# Conky, a system monitor, based on torsmo
#
# Any original torsmo code is licensed under the BSD license
#
# All code written since the fork of torsmo is licensed under the GPL
#
# Please see COPYING for details
#
# Copyright (c) 2004, Hannu Saransaari and Lauri Hakkarainen
# Copyright (c) 2005-2007 Brenden Matthews, Philip Kovacs, et. al. (see AUTHORS)
# All rights reserved.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of

# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
#
# $Id: conky.conf 1193 2008-06-21 20:37:58Z ngarofil $

alignment top_left
background no
maximum_width 800
border_width 1
cpu_avg_samples 2
default_color white
default_outline_color white
default_shade_color white
draw_borders no
draw_graph_borders yes
draw_outline no
draw_shades no
use_xft yes
xftfont Droid Sans Mono:size=11
xftalpha 0.8
double_buffer yes
gap_x 10
gap_y 5
minimum_size 5 5
net_avg_samples 2
no_buffers yes
out_to_console no
own_window yes
own_window_class Conky
own_window_type normal
own_window_transparent yes
own_window_hints below,sticky
stippled_borders 0
update_interval 3.0
uppercase no
use_spacer none
show_graph_scale no
show_graph_range no
max_specials 8000





TEXT
$alignc${color 4444ff} $nodename - $sysname $kernel on $machine ${color yellow}Uptime:$color $uptime ${color yellow}Conky Version:${color FF00FF}$conky_version
${color ff8a00}$stippled_hr
${color yellow}Frequency:${if_existing "a" =="a"} ${color red} $freq MHz $else ${color green}$freq MHz $endif ${color yellow}  CPU Usage:$color $cpu%  $alignr${color yellow}Load:$color$loadavg$alignr  ${color yellow}Processes:$color $processes  ${color yellow}Running:$color $running_processes
${color yellow}CPU Usage:${color black}${cpugraph 16,250 ff0000 ff0000} ${goto 350}${color red}${cpubar 10}
${color yellow}CPU Clock:${color red}${color yellow} Lo:${color black}${loadgraph 1 16,105 ffe400 ffe400}${color yellow} Dio:${color black}${diskiograph /dev/mmcblk0 16,105 00ff00 00ff00}${color yellow} Mem:${color black}${memgraph 16,105 ff0000 ff0000}
${color yellow}RAM  Usage:$color${goto 110}$mem${goto 190}| $memmax${goto 310}$memperc%${goto 350}${color green}${membar 10}
${color yellow}Swap Usage:$color${goto 110}$swap${goto 190}| $swapmax${goto 310}$swapperc%${goto 350}${color green}${swapbar 10}
${color ff8a00}$stippled_hr
${color yellow}rootfs${goto 110}$color${fs_free /}${goto 190}| ${fs_size /} ${color grey}${goto 310}free${goto 350}${color green}${fs_bar 10 /}
${color yellow}home${goto 110}$color${fs_free /home}${goto 190}| ${fs_size /home} ${color grey}${goto 310}free${goto 350}${color green}${fs_bar 10 /home}
${if_mounted /home/user/MyDocs}${color yellow}MyDocs${goto 110}$color${fs_free /home/user/MyDocs}${goto 190}| ${fs_size /home/user/MyDocs} ${color grey}${goto 310}free${goto 350}${color green}${fs_bar 10 /home/user/MyDocs}$endif
${if_mounted /media/mmc1}${color yellow}mmc1${goto 110}$color${fs_free /media/mmc1}${goto 190}| ${fs_size /media/mmc1} ${color grey}${goto 310}free${goto 350}${color green}${fs_bar 10 /media/mmc1}$endif
${color ff8a00}$stippled_hr
${if_up usb0}${color yellow}usb0: Up:$color ${upspeed usb0}kB ${color grey}${color yellow}Down:$color ${downspeed usb0}kB ${color yellow}IP:${color FF00FF}${addr usb0} ${color ff8a00}| $else${color yellow}usb0: ${color red}Not Connected                     ${color ff8a00}| $endif${if_up gprs0}${color yellow}gprs0: ${color yellow}Up:$color${upspeed gprs0}kB ${color grey}${color yellow}Down:$color ${downspeed gprs0} kB ${color yellow}IP: ${color FF00FF}${addr wlan0}$else${color yellow}gprs0: ${color red} Not Connected $endif
${if_empty ${wireless_essid wlan0}}${color yellow}wlan0: ${color red}Not Connected $else${color yellow}wlan0 ESSID:$color${wireless_essid wlan0}${color yellow} Rate:${color}${wireless_bitrate wlan0}${color yellow} Quality:$color${wireless_link_qual_perc wlan0}%${color yellow} Up:$color ${upspeed wlan0}kB ${color grey}${color yellow}Down:$color${downspeed wlan0}kB ${color yellow}IP:${color FF00FF}${addr wlan0} $endif
${if_up gprs0}${color yellow}gprs0 Up: ${color 333333}${upspeedgraph gprs0 20,150 ff0000 00ff00}$alignr${color yellow}gprs0 Down: ${color 333333}${downspeedgraph gprs0 20,150 00ff0000 ff0000}$else${if_empty ${wireless_essid wlan0}}$else${color yellow}Quality: ${wireless_link_bar 20,150 wlan0} ${color yellow}wlan0 Up: ${color 333333}${upspeedgraph wlan0 20,170 00ff00 ff0000} ${color yellow}wlan0 Down: ${color 333333}${downspeedgraph wlan0 20,170 ff0000 00ff00}$endif$endif
${color ff8a00}$stippled_hr
${color lightgrey}Name                  PID   CPU%   MEM% ${color ff8a00}|Charge:${execp python -u /home/user/MyDocs/pyoutbatt.py }
${color ff6000} ${top name 1}    ${top pid 1} ${top cpu 1} ${top mem 1} ${color ff8a00}| ${color yellow}Charge %: $color${head /tmp/.batteryinfo/percent 1}% ${color yellow}State: ${if_existing /tmp/.batteryinfo/chargeing true}${color green}Charging$else${color orange}Discharging$endif ${color yellow}Hours:$color ${head /tmp/.batteryinfo/time 1}
${color ffa800} ${top name 2}    ${top pid 2} ${top cpu 2} ${top mem 2} ${color ff8a00}| ${color yellow}mA: $color${head /tmp/.batteryinfo/charge 1} | ${head /tmp/.batteryinfo/maxcharge 1} ${color yellow}mV: $color${head /tmp/.batteryinfo/volts 1} | ${head /tmp/.batteryinfo/maxvolts 1}  
${color fffc2a} ${top name 3}    ${top pid 3} ${top cpu 3} ${top mem 3} ${color ff8a00}| 
${color 24ff00} ${top name 4}    ${top pid 4} ${top cpu 4} ${top mem 4} ${color ff8a00}| N900 Conky config 1.01 Wild_Doogy
Attached Images
  

Last edited by Wild_Doogy; 2010-08-25 at 23:04. Reason: I forgot about temperature
 

The Following 2 Users Say Thank You to Wild_Doogy For This Useful Post:
Posts: 161 | Thanked: 85 times | Joined on Feb 2010
#89
has someone tried to compile conky-colors? http://gnome-look.org/content/show.p...content=92328?
I've no problem in compiling, and editing the conf. Conky looks running fine, but the window is too small.. something like 8px height.
 
Posts: 463 | Thanked: 103 times | Joined on Jul 2010 @ Mumbai, India
#90
How do I get the °C symbol back in the temperature field? See my last post for details.

Please need help with this!!!
 
Reply

Tags
conky, fix it yourself, post your conky


 
Forum Jump


All times are GMT. The time now is 11:43.