Re: Conky Help

@Bruce. Thanks. Good to know my syntax is correct.

Unfortunately, I'm still a little stumped by what I should have if_existing refer to.
I'm pretty sure anonymous is on the right track but everything I've tried there hasn't worked.

/proc/acpi/battery/BAT0/state is a file whose contents are changed based on the state of the battery. If the battery is discharging and you were to enter

less /proc/acpi/battery/BAT0/state/

then you'd get an output that might look like this:

present:                 yes
capacity state:          ok
charging state:          discharging
present rate:            2671 mA
remaining capacity:      4389 mAh
present voltage:         12533 mV

conky's if_existing command will check for the presence of that file and then based on that condition, execute whatever you want it to. Even better, you can have if_existing check the file of your choice for a specific string. So theoretically, I should be able to run this in conky:

${if_existing /proc/acpi/battery/BAT0/state discharging}

which (if it were working as advertised) would mean that the if statement would only run if the battery were discharging. Unfortunately, that hasn't worked.

If anyone has any ideas, let me know...

Re: Conky Help

Bruce wrote:
Lochinvar wrote:
http://crunchbanglinux.org/forums/post/662/#p662

I can't get this to work with my Conky - the pie-charts and images won't work correctly. I'm guessing I have to install something extra, but I'm quite new to Linux, and I have no idea what to do. Any help would be appreciated smile

Edit; Oh wait, never mind tongue

Found out you needed the fonts huh.  smile

Indeed. lol

Re: Conky Help

Hi guys and Girls,,,My conky issue today is,,Im having a hard time making my wireless read in conky.
Ive used this same set up on to other machines and have had no problems.

The differance with this one is its the 9.04 CB on an AMD dual core,,As were the other 2 were 8.10 and Cruncheee,,those two, my 2wire wireless worked on it no problems.

Heres the script im using,,,

${font ariel:normal:size=8}IP address: $alignr ${addr wlan0}
ESSD: $alignr ${wireless_essid wlan0}
Bitrate: $alignr ${wireless_bitrate wlan0}
Connection quality: $alignr ${wireless_link_qual_perc wlan0}%
${color slateblue}${wireless_link_bar wlan0}%${color}

Any help will be appreciated.

I have rebooted,,and have tried different wireless configs that were listed in conky thread...
Im not sure what wireless card i have,,But if it matters ill find out.



Its a broadcom wireless card.

Last edited by charlie01 (2009-06-14 22:49:19)

Re: Conky Help

I would run ifconfig in a terminal to check the proper name for your wireless.

Note: ** Please read before posting **

BTW if you wish to contact me, send me an e-mail instead of a PM.

Re: Conky Help

anonymous wrote:

I would run ifconfig in a terminal to check the proper name for your wireless.

I did this,,and this is what i ended up with,,,I tried all three of the names Lo,Eth1,,and Eth0,,,But none worked with my wireless,,

eth0      Link encap:Ethernet  HWaddr 00:16:d3:56:08:ee 
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
          Interrupt:20 Base address:0xc000

eth1      Link encap:Ethernet  HWaddr 00:19:7e:3f:90:9f 
          inet addr:--------  Bcast:--------  Mask:---------
          inet6 addr: fe80::219:7eff:fe3f:909f/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:10515 errors:0 dropped:0 overruns:0 frame:21205
          TX packets:9175 errors:13 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:6501732 (6.5 MB)  TX bytes:1316173 (1.3 MB)
          Interrupt:19

lo        Link encap:Local Loopback 
          inet addr:--------  Mask:-------
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:2169675 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2169675 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:532650723 (532.6 MB)  TX bytes:532650723 (532.6 MB)


Now if i only new what any of this ment,,,LOL

Re: Conky Help

What do you get if you run iwconfig?

Note: ** Please read before posting **

BTW if you wish to contact me, send me an e-mail instead of a PM.

Re: Conky Help

Hi there, i hope someone can help me.
I tried to change the font in conky, but it didnt work.
Here is an example of an codeblock:

 ${font Comic_Sans_MS:size=48}${color 171717}${time %H}${color}${color A3D201}:${color}${color 171717}${time %M}${color}${font} 

The font is stored in /usr/share/fonts/truetype/msttcorefonts

Here is the whole conkyrc, if it helps:

# set to yes if you want Conky to be forked in the background
background yes

# Use Xft?
use_xft yes

# Xft font when Xft is enabled
#xftfont Trebuchet MS:size=10
xftfont Bauhaus1:size=8

# Text alpha when using Xft
xftalpha 1

# Update interval in seconds
update_interval 1.0

# This is the number of times Conky will update before quitting.
# Set to zero to run forever.
total_run_times 0

own_window no
own_window_transparent yes
#own_window_type override
own_window_type desktop
#own_window_type normal #use this if you want a nice shadow to appear around conky

# If own_window is yes, these window manager hints may be used
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager

# Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes

# Minimum size of text area
minimum_size 200 200

# Maximum width
maximum_width 1440

# Draw shades?
draw_shades no

# Draw outlines?
draw_outline no

# Draw borders around text
draw_borders no

# Draw borders around graphs
draw_graph_borders no

# Stippled borders?
# stippled_borders 8

# border margins
# border_margin 2

# border width
# border_width 1

# Default colors and also border colors
default_color white
default_shade_color black
default_outline_color white

# Text alignment, other possible values are commented
alignment top_left
#alignment top_right
#alignment bottom_left
#alignment bottom_right
#alignment none

# Gap between borders of screen and text
# same thing as passing -x at command line
gap_x 12
gap_y 12

# Subtract file system buffers from used memory?
no_buffers yes

# set to yes if you want all text to be in uppercase
uppercase no

# number of cpu samples to average
# set to 1 to disable averaging
cpu_avg_samples 2

# Force UTF8? note that UTF8 support required XFT
override_utf8_locale yes

##############################################
##############################################

TEXT


                                                                                                                                                                                                                                                                             ${font Comic_Sans_MS:size=48}${color 171717}${time %H}${color}${color A3D201}:${color}${color 171717}${time %M}${color}${font}
$alignr          
${font Bauhaus1:bold:size=20}
                                                                                              ${color 171717} $uptime


                                                                                                                                        ${color 171717}${fs_used /}${color A3D201}/${color 171717}${fs_size /}

                                     ${color 171717}${cpu cpu1}${color A3D201}%${color 171717}
   ${color 171717}${cpugraph cpu1 100,314}

                                     ${color 171717}${cpu cpu2}${color A3D201}%${color 171717}
   ${color 171717}${cpugraph cpu2 100,314}
                                                                                                                                        ${color 171717}$mem${color A3D201}/${color 171717}$memmax
   ${color 171717}${memgraph 100,314}      ${color A3D201}${exec mocp -Q %artist}
                                                ${color A3D201}${exec mocp -Q %song}
                                                ${color A3D201}${exec mocp -Q %album}
                                                ${color A3D201}${exec mocp -Q %ct} ${color 171717}/${color A3D201} ${exec mocp -Q %tt}

Can you say why it didnt work?

From Germany --> Bad English smile

108

Re: Conky Help

paulsenior wrote:

Can you say why it didnt work?

 ${font Comic Sans MS:size=48}

Try that.
Have a nice day.
Bruce

Re: Conky Help

anonymous wrote:

What do you get if you run iwconfig?

lo        no wireless extensions.

eth0      no wireless extensions.

eth1      IEEE 802.11  Nickname:""
          Access Point: Not-Associated   
          Link Quality:5  Signal level:199  Noise level:163
          Rx invalid nwid:0  invalid crypt:0  invalid misc:0

pan0      no wireless extensions.


Thats Hilarius because im using my wireless now...Something is blocking it,,LOL

Ive tried eth1 in conky with no success.Ill try it again....Thanks for the help Anonymous...
Maybe ill try IEEE 802.11..

Edit

Ive tried eth1 and was able to get ip adress to work but cant seem to get anything else to work,,Here is what my script looks like..

${font sans-serif:bold:size=8}NETWORK ${hr 2}
${font sans-serif:normal:size=8}IP address: $alignr ${addr eth1}

Connection quality: $alignr ${wireless_link_qual_perc eth1}%
${wireless_link_bar eth1}%

Ive tried different combinations of wlan-wlan0-eth - eth1 and so on.

Last edited by charlie01 (2009-06-17 01:26:25)

Re: Conky Help

Maybe your wireless card is just not compatible with the commands (wireless_link_qual_perc and wireless_link_bar).

Note: ** Please read before posting **

BTW if you wish to contact me, send me an e-mail instead of a PM.

111

Re: Conky Help

charlie01 wrote:

Thats Hilarius because im using my wireless now...Something is blocking it,,LOL

Casper must live in your wireless.  smile

112

Re: Conky Help

I've noticed and have answered many questions regarding conkyForecast so I thought I'd post some info here.

Weather.com updates it's information once an hour it seems (from talking to a lot of people) and from using the commands:

[--datatype=LU]     Last Update at weather.com,
[--datatype=LF]     Last Fetch from weather.com - Not applicable at command line when using templates.

And regarding the HT and LT there are various ways to use those that a lot of people seem yo miss, so I re-wrote a part of the help file:

              Today:    LT - Feels Like Temp  - WITHOUT: "--startday=0" [--datatype LT]
              Today:    HT - Current Temp - WITHOUT: "--startday=0" [--datatype HT]

              Today:    LT - Forcasted Low Temp: - WITH: "--startday=0" [-- startday=0 --datatype LT]
              Today:    HT - Forecasted High Temp: - WITH: "--startday=0" [-- startday=0 --datatype HT]

              Forecast: LT - Low Temp - use with --startday=1 to 4 [-- startday=1 --datatype LT]
              Forecast: HT - High Temp - use with --startday=1 to 4 [-- startday=1 --datatype HT]

NOTE: The LT - "Forecasted Low Temp" for today will display N/A after 2pm local because weather.com stops sending it at that time.

Hope this helps to clear things up a bit.

Have a nice day.
Bruce

Re: Conky Help

i have noticed that sometimes my conky disapears after my screensaver has kicked in. when i move my mouse the desktop comes up minus the conky.

does anyone know how to fix that?
dave.

Black eeePC 1005ha Atom 1.6ghz 250g hd 2g Crucial #!CrunchBang Linux!

Re: Conky Help

hello guys
I can't make conky display my battery status, both using BAT0 and BAT1, when I went to /proc/acpi/battery to change the bettery name, the only folder there was C11F and had three files: alarm, info, state and no mention for BAT0 and BAT1 , here is some info

acpi -b
Battery 0: Full, 100%

ls /proc/acpi/battery/
C11F

state file inside C11F
present:                 yes
capacity state:          ok
charging state:          charged
present rate:            64504 mA
remaining capacity:      2281 mAh
present voltage:         16409 mV

hp compaq nx7000, Intel pentuim M 1500, 1G RAM, ati mobility radeon 9200
#!09.04.01 lite

Thanks for any help in advance

Re: Conky Help

How noob of me
SOLVED

Re: Conky Help

What did you do?

Note: ** Please read before posting **

BTW if you wish to contact me, send me an e-mail instead of a PM.

Re: Conky Help

Well
instead of BAT0 or BAT1, I put C11F and that's it

Re: Conky Help

I have a question about having a battery bar u used

Battery: ${battery_percent BAT0}% ${alignr}${battery_bar 8,60 BAT0}

but its not working.  i assume its because my battery is identified as something other that BAT0 so my question is how do i find out its identifier to fix this?

------------
Im Just Sayin!
check my Deviant Art page http://faceless79.deviantart.com/

119

Re: Conky Help

Evolution wrote:

I have a question about having a battery bar u used

Battery: ${battery_percent BAT0}% ${alignr}${battery_bar 8,60 BAT0}

but its not working.  i assume its because my battery is identified as something other that BAT0 so my question is how do i find out its identifier to fix this?

Have you installed lm-sensors?  That should tell you what to use.

Have a nice day.
Bruce

Re: Conky Help

@Evolution - Just look in /proc/acpi/battery/ and see what folders you have there.

Note: ** Please read before posting **

BTW if you wish to contact me, send me an e-mail instead of a PM.

Re: Conky Help

Thanks yall, dont worry the noob questions should end shortly lol

-edit ok did that and it works. On to how to get it to show if its on battery or ac. Ill search around. Thanks again

Last edited by Evolution (2009-06-26 23:17:09)

------------
Im Just Sayin!
check my Deviant Art page http://faceless79.deviantart.com/

122

Re: Conky Help

all this "fs_suchnsuch" stuff is great, but i'm looking to keep an eye on the size of specific folders (like .mozilla)...  anyone got a handy tip how that can be achieved?


[edit~
[SEMISOLVED]

 ${texeci 1200 du -sh /var/ | awk '{print $1}'}

^
execi does the same job.  i'm using texeci ("runs through a thread" supposedly) for some reason i dont remember what, but i was sure at the time it was a wise performance move.
above example is for the /var/, so just change that to /home/digit/.mozilla or wherever you need it.
idk what n why the awk, but some other guy was swearing by it wherever it was i found it.  ^_^
here's further example of how i've used it.

/ ${color}${fs_free_perc /} % free  ${fs_bar 7 /}
crunchy:  ${color1}${fs_free_perc /home/digit/.mozilla} %  ${fs_size /home/digit/.mozilla}
fatfox  /   home: ${texeci 1200 du -sh /home/digit/.mozilla/ | awk '{print $1}'} / ${texeci 1200 du -sh /home/digit/ | awk '{print $1}'}
/lib ${texeci 1200 du -sh /lib/ | awk '{print $1}'}
/usr/lib ${texeci 1200 du -sh /usr/lib/ | awk '{print $1}'}
${voffset 5}/bin $alignr ${texeci 1200 du -sh /bin/ | awk '{print $1}'}
/boot $alignr ${texeci 1200 du -sh /boot/ | awk '{print $1}'}
/home $alignr ${texeci 1200 du -sh /home/ | awk '{print $1}'}
/lib $alignr ${texeci 1200 du -sh /lib/ | awk '{print $1}'}
/lost+found $alignr ${texeci 1200 du -sh /lost+found/ | awk '{print $1}'}
/opt $alignr ${texeci 1200 du -sh /opt/ | awk '{print $1}'}
/root $alignr ${texeci 1200 du -sh /root/ | awk '{print $1}'}
/sbin $alignr ${texeci 1200 du -sh /sbin/ | awk '{print $1}'}
/srv $alignr ${texeci 1200 du -sh /srv/ | awk '{print $1}'}
/tmp $alignr ${texeci 1200 du -sh /tmp/ | awk '{print $1}'}
/usr $alignr ${texeci 1200 du -sh /usr/ | awk '{print $1}'}
/var $alignr ${texeci 1200 du -sh /var/ | awk '{print $1}'}
${voffset 5}latest conky update
${texeci 1200 du --time /home/digit/.conkyrc}

http://omploader.org/tMXozNg
presumably it is a bigger performance hog than the"/ ${color}${fs_free_perc /} % free  ${fs_bar 7 /}" , but thats why it's execi not just exec.  so ya can put a longer refresh interval.  i just use 1200 cos that sounded like a big comfey number.  i since heard 3200 is like an hour or something. yikes
the last line there, was just an idea i got from looking in the man page for du. last time the file was modified.  clever eh.  big_smile

Last edited by Digit (2009-07-14 14:33:42)

educate yourself so you may educate others.DeNoob&UnBloat PCs!
the only free webhosting i use.
say "NO!" to a chemical lobotomy in your food
flattr me, thnx

123

Re: Conky Help

If anyone is interested, I have made a DEB package of Conky v1.7.1.1 (amd64) with these features:

Conky 1.7.1.1 compiled Mon Jul 6 16:16:06 ART 2009 for Linux 2.6.27-14-generic (x86_64)

Compiled in features:

System config file: /usr/local/etc/conky/conky.conf

X11:
* Xdamage extension
* XDBE (double buffer extension)
* Xft

Music detection:
* MPD
* MOC

General:
* math
* hddtemp
* portmon
* RSS
* Lua
* nvidia
* config-output
* Imlib2
* apcupsd

If you are interested get it here: conky_1.7.1.1-1_amd64.deb

It came up with an error for wireless (I don't have it) - and since it's my first ever deb package - I really don't care, I'm happy.  Imagine! Images in conky now!!! when you go to get it (if you do) look at the Welcome page for my avatar in my conky.

Have a nice day
Bruce

Last edited by Bruce (2009-07-06 20:40:26)

Re: Conky Help

Im a total newb w/ Linux so please bear with me smile I have tweaked the conky that came with #! to my liking. What I would like to do now is make another "copy" for the left side of my screen that has different info in it. How do I make two conkys on my desktop? Thanks in advance for your help!

125

Re: Conky Help

Andersonphoto wrote:

Im a total newb w/ Linux so please bear with me smile I have tweaked the conky that came with #! to my liking. What I would like to do now is make another "copy" for the left side of my screen that has different info in it. How do I make two conkys on my desktop? Thanks in advance for your help!

Check this