Page 848 of 2325 FirstFirst ... 34874879883884684784884985085889894813481848 ... LastLast
Results 8,471 to 8,480 of 23243

Thread: Post your .conkyrc files w/ screenshots

  1. #8471
    Join Date
    Jul 2009
    Beans
    176
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by londonali1010 View Post
    To sort out the shadow business, you need to go into Compiz Config Settings Manager (I'm assuming you use Compiz), click on Window Decorations, and in the box next to "Shadow windows", replace "any" with "any& !(class=Conky)". Also assuming that you have added the "own_window_class Conky" line to your config settings in Conky.

    HTH.
    Definitely a compiz user
    Yes I already did it, it is on your site too, but I had to restart compiz.

    Now I have to fix the position... I'm googling so much
    Attached Images Attached Images
    Last edited by -=hazard=-; August 5th, 2009 at 10:38 PM. Reason: Added Screen

  2. #8472
    Join Date
    Aug 2008
    Beans
    Hidden!
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Post your .conkyrc files w/ screenshots

    I'm having a lot of trouble with this one. I'd like the wireless to display only if eth1 is connected, the wired only if wlan0 is connected, and I want it to display "NO CONNECTION" if neither is connected. Right now it displays the wireless regardless of what is connected. Here is what I have so far:

    Code:
    ${font Arial:bold:size=10}${color Tan1}NETWORK: WIRELESS  ${color DarkSlateGray}${hr 2}${color}${font}${execi 600 rm *index.html* & wget http://www.showmyip.com/simple/}
    Public IP: ${alignr}${execi 600 cat index.html}
    Local IP: ${alignr}${addr eth1}
    ${color red}Down${alignr}${downspeed eth1}/s
    ${color green}Up${alignr}${upspeed eth1}/s${endif}${if_up wlan0}
    ${font Arial:bold:size=10}${color Tan1}NETWORK: WIRED  ${color DarkSlateGray}${hr 2}${color}${font}${execi 600 rm *index.html* & wget http://www.showmyip.com/simple/}
    Public IP: ${alignr}${execi 600 cat index.html}
    Local IP: ${alignr}${addr wlan0}
    ${red}Down${alignr}${downspeed wlan0}/s
    ${green}Up${alignr}${upspeed wlan0}/s${endif}${color}

  3. #8473
    Join Date
    Jul 2009
    Beans
    176
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by idigchess View Post
    I'm having a lot of trouble with this one. I'd like the wireless to display only if eth1 is connected, the wired only if wlan0 is connected, and I want it to display "NO CONNECTION" if neither is connected. Right now it displays the wireless regardless of what is connected. Here is what I have so far:

    Code:
    ${font Arial:bold:size=10}${color Tan1}NETWORK: WIRELESS  ${color DarkSlateGray}${hr 2}${color}${font}${execi 600 rm *index.html* & wget http://www.showmyip.com/simple/}
    Public IP: ${alignr}${execi 600 cat index.html}
    Local IP: ${alignr}${addr eth1}
    ${color red}Down${alignr}${downspeed eth1}/s
    ${color green}Up${alignr}${upspeed eth1}/s${endif}${if_up wlan0}
    ${font Arial:bold:size=10}${color Tan1}NETWORK: WIRED  ${color DarkSlateGray}${hr 2}${color}${font}${execi 600 rm *index.html* & wget http://www.showmyip.com/simple/}
    Public IP: ${alignr}${execi 600 cat index.html}
    Local IP: ${alignr}${addr wlan0}
    ${red}Down${alignr}${downspeed wlan0}/s
    ${green}Up${alignr}${upspeed wlan0}/s${endif}${color}
    I think it's a little complicated what you want to do because conky display everything what you write on it, at least I guess that it's not possible.

  4. #8474
    Join Date
    Sep 2007
    Beans
    Hidden!

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by neon401 View Post
    On the second line:
    Code:
    ${if_existing /proc/net/route wlan0}
    This means it will display weather if wlan0 is currently connected. Is there any way to make it display if either wlan0 or eth0 is connected?
    ${if_existing /proc/net/route wlan0}$ ... 1st line of wlan0 code
    ..............
    ..............
    last line of wlan0 code${else}$ ... 1st line of eth0 code
    ..............
    ..............
    last line of eth0 code${endif}
    ${conky continues}

    I'm almost certain that will do it after looking at Uncertain's little tip and these:

    if_existing file (string) if FILE exists, display everything between if_existing and the matching $endif. The optional second paramater checks for FILE containing the specified string and prints everything between $if_existing and the matching $endif.
    else Text to show if any of the above are not true
    I don't need any IF_ statements so I cannot say with 100% certainty that it will work, but logically it looks OK.

    EDIT: - did a TEST:

    With a "slight" change in the above suggestion:
    Code:
    wan0 - eth0
    ${if_existing /proc/net/route wlan0}$ ... 1st line of wlan0 code
    ..............
    ..............
    last line of wlan0 code${else}first line of eth0 code
    ..............
    ..............
    last line of eth0 code${endif}
    conky continues
    I get the results you see in the image attached.

    I do NOT have wan anything let alone wan0.

    Good luck.
    Bruce
    Attached Images Attached Images
    Last edited by Bruce M.; August 5th, 2009 at 11:47 PM. Reason: adding info

  5. #8475
    Join Date
    Aug 2008
    Beans
    Hidden!
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by idigchess View Post
    I'm having a lot of trouble with this one. I'd like the wireless to display only if eth1 is connected, the wired only if wlan0 is connected, and I want it to display "NO CONNECTION" if neither is connected. Right now it displays the wireless regardless of what is connected. Here is what I have so far:

    Code:
    ${font Arial:bold:size=10}${color Tan1}NETWORK: WIRELESS  ${color DarkSlateGray}${hr 2}${color}${font}${execi 600 rm *index.html* & wget http://www.showmyip.com/simple/}
    Public IP: ${alignr}${execi 600 cat index.html}
    Local IP: ${alignr}${addr eth1}
    ${color red}Down${alignr}${downspeed eth1}/s
    ${color green}Up${alignr}${upspeed eth1}/s${endif}${if_up wlan0}
    ${font Arial:bold:size=10}${color Tan1}NETWORK: WIRED  ${color DarkSlateGray}${hr 2}${color}${font}${execi 600 rm *index.html* & wget http://www.showmyip.com/simple/}
    Public IP: ${alignr}${execi 600 cat index.html}
    Local IP: ${alignr}${addr wlan0}
    ${red}Down${alignr}${downspeed wlan0}/s
    ${green}Up${alignr}${upspeed wlan0}/s${endif}${color}
    Anybody else have a suggestion?

  6. #8476
    Join Date
    Sep 2007
    Beans
    Hidden!

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by idigchess View Post
    I'm having a lot of trouble with this one. I'd like the wireless to display only if eth1 is connected, the wired only if wlan0 is connected, and I want it to display "NO CONNECTION" if neither is connected. Right now it displays the wireless regardless of what is connected. Here is what I have so far:
    Am I sure I'm reading this right? You want the Wireless information to display if you are connected with eth0 (wired I assume), and the Wired eth0 information to show if you are connected to the net with your wireless connection?

    That would result in no information being shown.

    See the post just above your post.

    After the ${endif}"NO CONNECTION"
    next line of your conky file

    Have a nice day.
    Bruce
    Last edited by Bruce M.; August 5th, 2009 at 11:58 PM.

  7. #8477
    Join Date
    Aug 2008
    Beans
    Hidden!
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by Bruce M. View Post
    See the post just above your post.

    After the ${endif}"NO CONNECTION"
    next line of your conky file

    Have a nice day.
    Bruce
    Thanks, but do you have any idea why this would show only the wireless, no matter what is connected? Even if wlan0 is connected or my wireless is off, it still shows the wireless screen.

  8. #8478
    Join Date
    Sep 2007
    Beans
    Hidden!

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by idigchess View Post
    Thanks, but do you have any idea why this would show only the wireless, no matter what is connected? Even if wlan0 is connected or my wireless is off, it still shows the wireless screen.
    On line 5 of the code you end with ${endif}${if_up wlan0}

    But you show NO ${if_up}

    Try this:

    Code:
    ${if_existing /proc/net/route eth1}${font Arial:bold:size=10}${color Tan1}NETWORK: WIRELESS  ${color DarkSlateGray}${hr 2}${color}${font}${execi 600 rm *index.html* & wget http://www.showmyip.com/simple/}
    Public IP: ${alignr}${execi 600 cat index.html}
    Local IP: ${alignr}${addr eth1}
    ${color red}Down${alignr}${downspeed eth1}/s
    ${color green}Up${alignr}${upspeed eth1}/s${else}${if_existing /proc/net/route wlan0}${font Arial:bold:size=10}${color Tan1}NETWORK: WIRED  ${color DarkSlateGray}${hr 2}${color}${font}${execi 600 rm *index.html* & wget http://www.showmyip.com/simple/}
    Public IP: ${alignr}${execi 600 cat index.html}
    Local IP: ${alignr}${addr wlan0}
    ${red}Down${alignr}${downspeed wlan0}/s
    ${green}Up${alignr}${upspeed wlan0}/s${endif}${color}
    have a good one.
    Bruce

  9. #8479
    Join Date
    Feb 2008
    Location
    I'm lost ... HELP!
    Beans
    1,014
    Distro
    Xubuntu

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by Bruce M. View Post
    I would do it this way:

    ${if_match....} ..... ${else}.........${endif}

    Code:
    ${if_match "battery_percent" < "31"}${color red}${battery_bar BAT0}$color${else}${battery_bar BAT0}$endif
    Just a thought.
    Brice
    Thanks for pointing $else out to me. Now I can do 3 colors

    It turned out that ${if_match "battery_percent" < "31"} should have been ${if_match $battery_percent < 31}. Oh well. I made some bars for my 2 cores too.

    Code:
    ${if_match $battery_percent < 11}${color red}${battery_bar BAT0}$color$else${if_match $battery_percent > 30}${battery_bar BAT0}$else${color yellow}${battery_bar BAT0}$color$endif$endif
    ${if_match ${cpu cpu1} > 89}${color red}${cpubar cpu1}$color$else${ifedit_match ${cpu cpu1} < 60}${cpubar cpu1}$else${color yellow}${cpubar cpu1}$color$endif$endif
    ${if_match ${cpu cpu2} > 89}${color red}${cpubar cpu2}$color$else${if_match ${cpu cpu2} < 60}${cpubar cpu2}$else${color yellow}${cpubar cpu2}$color$endif$endif
    Finally changing colors without having to run a extra script
    Last edited by miegiel; August 6th, 2009 at 02:32 AM. Reason: more code edits :-|

  10. #8480
    Join Date
    Aug 2008
    Beans
    Hidden!
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by Bruce M. View Post
    On line 5 of the code you end with ${endif}${if_up wlan0}

    But you show NO ${if_up}

    Try this:

    Code:
    ${if_existing /proc/net/route eth1}${font Arial:bold:size=10}${color Tan1}NETWORK: WIRELESS  ${color DarkSlateGray}${hr 2}${color}${font}${execi 600 rm *index.html* & wget http://www.showmyip.com/simple/}
    Public IP: ${alignr}${execi 600 cat index.html}
    Local IP: ${alignr}${addr eth1}
    ${color red}Down${alignr}${downspeed eth1}/s
    ${color green}Up${alignr}${upspeed eth1}/s${else}${if_existing /proc/net/route wlan0}${font Arial:bold:size=10}${color Tan1}NETWORK: WIRED  ${color DarkSlateGray}${hr 2}${color}${font}${execi 600 rm *index.html* & wget http://www.showmyip.com/simple/}
    Public IP: ${alignr}${execi 600 cat index.html}
    Local IP: ${alignr}${addr wlan0}
    ${red}Down${alignr}${downspeed wlan0}/s
    ${green}Up${alignr}${upspeed wlan0}/s${endif}${color}
    have a good one.
    Bruce
    Thanks, it worked, but I have no idea why. Why doesn't if_up work?

Page 848 of 2325 FirstFirst ... 34874879883884684784884985085889894813481848 ... LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •