Page 1491 of 2325 FirstFirst ... 491991139114411481148914901491149214931501154115911991 ... LastLast
Results 14,901 to 14,910 of 23245

Thread: Post your .conkyrc files w/ screenshots

  1. #14901
    Join Date
    Nov 2010
    Beans
    0

    Question Re: Post your .conkyrc files w/ screenshots

    OK... I'm completely stumped... I have a my conky up and running and I'm quite happy with its output EXCEPT for one item... I can't seem to get my USB drive to show up when it is plugged in. Currently, when the USB is plugged in, a new window will open up showing the files, but I can't seem to get it setup correctly in the conkyrc file. I've googled this one to death and tried many ideas, but nothing seems to work. I know it's an if_existing statement, but... no joy!

    fyi, I am on a Asus eeepc netbook running UNR 10.04.

    Here is my conkyrc file:

    ##Conky
    background yes
    update_interval 0.5
    total_run_times 0
    no_buffers no
    cpu_avg_samples 2
    net_avg_samples 1

    #Text
    use_xft yes
    xftfont 123:size=8
    xftalpha 0.1
    uppercase no
    override_utf8_locale yes
    use_spacer yes
    text_buffer_size 256

    #Window
    own_window yes
    own_window_type normal
    own_window_transparent yes
    own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager

    #Graphics
    draw_shades no
    draw_outline no
    draw_borders no
    draw_graph_borders no
    double_buffer yes

    #Layout
    alignment top_right
    gap_x 10
    gap_y 10
    minimum_size 250 700
    maximum_width 400

    #Colors
    default_color gray
    default_shade_color red
    default_outline_color green

    #all variables below the "TEXT" will be visible on desktop when conky is running

    TEXT

    ${voffset -40}
    ${color DimGray}
    ${font}
    ${color Green}${user_names} ${alignr}$nodename$font
    ##################################
    # System Information #
    ##################################
    ${font Arial:bold:size=10}${color Tan1}SYSTEM${color DarkSlateGray}${hr 2}$font
    ${font}${color DimGray}$sysname$kernel$alignr$machine
    ${pre_exec cat /proc/cpuinfo | grep 'model name'|sort -u|cut -c14-33,44-60}
    Uptime $alignr${uptime}
    System Updates:${alignr}${color Green}${execi 3600 aptitude search "~U" | wc-1 | tail}
    ${font}${color DimGray}AC Adaptor:${color Green}${acpiacadapter AC0}${color DimGray}${alignr}Battery:${color Green}${battery_short BAT0}
    ${alignr}${battery_time BAT0}$font

    ##################################
    # Processor & Memory information #
    ##################################
    ${font Arial:bold:size=10}${color Tan1}PROCESSOR & MEMORY ${color DarkSlateGray}${hr 2}
    ${font}${color DimGray}CPU:${alignc}${freq_g}GHz${alignr}$cpu%
    Memory:${alignc}$memmax${alignr}$memperc%
    Swap:${alignc} $swapmax${alignr}$swapperc%

    ##################################
    # Top Processes #
    ##################################
    ${font Arial:bold:size=10}${color Tan1}TOP PROCESSES${color DarkSlateGray}${hr 2}${color DimGray}$font
    ${color DimGray}$font${top_mem name 2}${alignr}${top mem 2} %
    $font${top_mem name 3}${alignr}${top mem 3} %
    $font${top_mem name 4}${alignr}${top mem 4} %
    $font${top_mem name 5}${alignr}${top mem 5} %
    $font${top_mem name 6}${alignr}${top mem 6} %

    ##################################
    # Disk Information #
    ##################################
    ${font Arial:bold:size=10}${color Tan1}DISKS ${color DarkSlateGray}${hr 2}
    $font${color DimGray}Root$alignc${fs_size /}${alignr}${fs_free_perc /}% Free
    ${if_gw}${font}${color DimGray}${if_existing /media }USB Drive
    $alignc${fs_size /media/ }${alignr}${fs_free_perc /media/ }% Free${color DimGray}${endif}

    ##################################
    # Network Information #
    ##################################
    ${font Arial:bold:size=10}${color Tan1}NETWORK ${color DarkSlateGray}${hr 2}
    ${if_gw}${font}${color DimGray}${if_existing /proc/net/route wlan0}Connection Type:${color Green}${alignr}Wireless${color DimGray}
    ESSID:${color Green}${wireless_essid wlan0}${color DimGray}${alignr}Link:${color Green}${wireless_link_qual_perc wlan0}%${color DimGray}
    UP${upspeedgraph wlan0 20,100 0000ff ff0000 .5}DN${downspeedgraph wlan0 20,100 0000ff ff0000 40}
    Wireless Speed ${alignr}${color Green}${wireless_bitrate wlan0}${color DimGray}
    UP:${upspeed wlan0}${alignr}${alignr}DN:${downspeed wlan0}
    Total UP:${totalup wlan0}${alignr}Total DN:${totaldown wlan0}

    Local IP:${alignr}${addr wlan0}${endif}
    Public IP:${alignr}${execi 3600 wget -O - http://whatismyip.org/ | tail}${else}
    ${font}${color DimGray}${if_existing /proc/net/route eth0}Connection Type:${color Green}${alignr}Wired${color DimGray}

    UP:${upspeed eth0}${alignr}Total UP:${Totalup eth0}
    DN:${downspeed eth0}${alignr}Total DN:${totaldown eth0}

    Local IP:${alignr}${addr eth0}${endif}
    ${color Red}${alignr}Not Connected ${color DimGray}

    ${endif}

  2. #14902
    Join Date
    Nov 2009
    Location
    Assen, Netherlands
    Beans
    14
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: Post your .conkyrc files w/ screenshots

    I'm asking for a friend;
    Is it possible to see what is up/downloaded via a local network, just as it is possible to see what is up/downloaded from the internet?
    And if yes, how to put that in conky

  3. #14903
    Join Date
    Apr 2007
    Beans
    195

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by elendilnl View Post
    I'm asking for a friend;
    Is it possible to see what is up/downloaded via a local network, just as it is possible to see what is up/downloaded from the internet?
    And if yes, how to put that in conky
    Wait... wouldn't that be the same script, but telling it to look at the local connection instead of the internet connection? Does that not work?

  4. #14904
    Join Date
    Apr 2007
    Beans
    195

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by sjv047 View Post
    OK... I'm completely stumped... I have a my conky up and running and I'm quite happy with its output EXCEPT for one item... I can't seem to get my USB drive to show up when it is plugged in. Currently, when the USB is plugged in, a new window will open up showing the files, but I can't seem to get it setup correctly in the conkyrc file. I've googled this one to death and tried many ideas, but nothing seems to work. I know it's an if_existing statement, but... no joy!

    fyi, I am on a Asus eeepc netbook running UNR 10.04.

    Here is my conkyrc file:

    ##Conky
    background yes
    update_interval 0.5
    total_run_times 0
    no_buffers no
    cpu_avg_samples 2
    net_avg_samples 1

    #Text
    use_xft yes
    xftfont 123:size=8
    xftalpha 0.1
    uppercase no
    override_utf8_locale yes
    use_spacer yes
    text_buffer_size 256

    #Window
    own_window yes
    own_window_type normal
    own_window_transparent yes
    own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager

    #Graphics
    draw_shades no
    draw_outline no
    draw_borders no
    draw_graph_borders no
    double_buffer yes

    #Layout
    alignment top_right
    gap_x 10
    gap_y 10
    minimum_size 250 700
    maximum_width 400

    #Colors
    default_color gray
    default_shade_color red
    default_outline_color green

    #all variables below the "TEXT" will be visible on desktop when conky is running

    TEXT

    ${voffset -40}
    ${color DimGray}
    ${font}
    ${color Green}${user_names} ${alignr}$nodename$font
    ##################################
    # System Information #
    ##################################
    ${font Arial:bold:size=10}${color Tan1}SYSTEM${color DarkSlateGray}${hr 2}$font
    ${font}${color DimGray}$sysname$kernel$alignr$machine
    ${pre_exec cat /proc/cpuinfo | grep 'model name'|sort -u|cut -c14-33,44-60}
    Uptime $alignr${uptime}
    System Updates:${alignr}${color Green}${execi 3600 aptitude search "~U" | wc-1 | tail}
    ${font}${color DimGray}AC Adaptor:${color Green}${acpiacadapter AC0}${color DimGray}${alignr}Battery:${color Green}${battery_short BAT0}
    ${alignr}${battery_time BAT0}$font

    ##################################
    # Processor & Memory information #
    ##################################
    ${font Arial:bold:size=10}${color Tan1}PROCESSOR & MEMORY ${color DarkSlateGray}${hr 2}
    ${font}${color DimGray}CPU:${alignc}${freq_g}GHz${alignr}$cpu%
    Memory:${alignc}$memmax${alignr}$memperc%
    Swap:${alignc} $swapmax${alignr}$swapperc%

    ##################################
    # Top Processes #
    ##################################
    ${font Arial:bold:size=10}${color Tan1}TOP PROCESSES${color DarkSlateGray}${hr 2}${color DimGray}$font
    ${color DimGray}$font${top_mem name 2}${alignr}${top mem 2} %
    $font${top_mem name 3}${alignr}${top mem 3} %
    $font${top_mem name 4}${alignr}${top mem 4} %
    $font${top_mem name 5}${alignr}${top mem 5} %
    $font${top_mem name 6}${alignr}${top mem 6} %

    ##################################
    # Disk Information #
    ##################################
    ${font Arial:bold:size=10}${color Tan1}DISKS ${color DarkSlateGray}${hr 2}
    $font${color DimGray}Root$alignc${fs_size /}${alignr}${fs_free_perc /}% Free
    ${if_gw}${font}${color DimGray}${if_existing /media }USB Drive
    $alignc${fs_size /media/ }${alignr}${fs_free_perc /media/ }% Free${color DimGray}${endif}

    ##################################
    # Network Information #
    ##################################
    ${font Arial:bold:size=10}${color Tan1}NETWORK ${color DarkSlateGray}${hr 2}
    ${if_gw}${font}${color DimGray}${if_existing /proc/net/route wlan0}Connection Type:${color Green}${alignr}Wireless${color DimGray}
    ESSID:${color Green}${wireless_essid wlan0}${color DimGray}${alignr}Link:${color Green}${wireless_link_qual_perc wlan0}%${color DimGray}
    UP${upspeedgraph wlan0 20,100 0000ff ff0000 .5}DN${downspeedgraph wlan0 20,100 0000ff ff0000 40}
    Wireless Speed ${alignr}${color Green}${wireless_bitrate wlan0}${color DimGray}
    UP:${upspeed wlan0}${alignr}${alignr}DN:${downspeed wlan0}
    Total UP:${totalup wlan0}${alignr}Total DN:${totaldown wlan0}

    Local IP:${alignr}${addr wlan0}${endif}
    Public IP:${alignr}${execi 3600 wget -O - http://whatismyip.org/ | tail}${else}
    ${font}${color DimGray}${if_existing /proc/net/route eth0}Connection Type:${color Green}${alignr}Wired${color DimGray}

    UP:${upspeed eth0}${alignr}Total UP:${Totalup eth0}
    DN:${downspeed eth0}${alignr}Total DN:${totaldown eth0}

    Local IP:${alignr}${addr eth0}${endif}
    ${color Red}${alignr}Not Connected ${color DimGray}

    ${endif}

    This is going to be long winded... so please be patient while I finish it in an edit...

    *Start Edit:

    What you're going to want to do is rename your USB thumb drive's label. Something easy for you to remember. Admittedly this may need to be done only when the drive is blank. That way, when you plug it in, that name will be the file folder name under the place it mounts in /media, and you'll always know what it is. On my own computer I have an external 120GB drive in an enclosure, and so I've named it, and mounted it in a folder called /media/120. Whenever it gets plugged in, it's going to that same spot, reliably.

    The next part is the Conky script part. I'm not great with the if structures, but you are going to want something like
    Code:
    ${if_existing /media/(YourDriveName)/FileAlwaysThere}USB Drive:${fs_size /media/(YourDriveName)} (Whatever Else You Want To Display)${else}USB Drive: Not Plugged In.${endif}
    I THINK. Someone else better with the if statements can probably fix that one.

    *Edit Two: Just tried it. It works. Put a file on the drive that will always be there. Call it "PluggedIn" or something like that. Conky is able to see if that file is there or not. If it's not there, and the folder exists, it won't show. If it's there, Conky knows to show that line. I have many thumb drives and this could probably let me see whichever one is plugged in with a single if statement.
    Last edited by 42dorian; November 26th, 2010 at 04:00 AM.

  5. #14905
    Join Date
    Nov 2009
    Beans
    13

    Re: Post your .conkyrc files w/ screenshots

    Stole enough to make two conkys, one for dark and one for light wallpapers. Both wallpapers I found at http://wall.alphacoders.com/ thats one of the best wallpaper sites I know.

    Blacktext



    Whitetext





    Also found a reverse image search site that actually works. http://www.tineye.com/ Great site where you can search for bigger versions of the picture one have.
    Attached Files Attached Files
    Last edited by melkespreng; November 26th, 2010 at 03:47 AM.

  6. #14906
    Join Date
    Nov 2010
    Beans
    0

    Re: Post your .conkyrc files w/ screenshots

    Awesome... I had to delete the "filealwaysthere" statement and then it worked... Thank you so much.

  7. #14907
    Join Date
    Apr 2007
    Beans
    195

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by sjv047 View Post
    Awesome... I had to delete the "filealwaysthere" statement and then it worked... Thank you so much.
    Yeah, I accidentally put a space when it should have been "/", sorry about that. I'm currently experimenting with switching USB drives and seeing if it'll display them all. Let me get back to you on this. It's a good idea! Thank YOU for asking about it!

  8. #14908
    Join Date
    Nov 2010
    Beans
    0

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by 42dorian View Post
    Yeah, I accidentally put a space when it should have been "/", sorry about that. I'm currently experimenting with switching USB drives and seeing if it'll display them all. Let me get back to you on this. It's a good idea! Thank YOU for asking about it!
    ... New problem... When I plug the USB in, the USB info shows up in the display, BUT... everything below that line disappears... Once the USB is disconnected, the rest of the display shows back up again... Hmmm.... Any ideas?

  9. #14909
    Join Date
    Apr 2007
    Beans
    195

    Re: Post your .conkyrc files w/ screenshots

    Yep. Post your new code to be sure, but it sounds kinda like you forgot the "${endif}" for it.

  10. #14910
    Join Date
    Nov 2009
    Location
    Assen, Netherlands
    Beans
    14
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by 42dorian View Post
    Wait... wouldn't that be the same script, but telling it to look at the local connection instead of the internet connection? Does that not work?
    I don't have the foggiest idea. How should he do that?
    I mean, should he use ${totalup 192.xxx.xxx.xxx} instead of ${totalup eth0}?

Page 1491 of 2325 FirstFirst ... 491991139114411481148914901491149214931501154115911991 ... 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
  •