It is currently Thu Jun 20, 2013 1:32 am


Post a new topicPost a reply Page 1 of 1   [ 2 posts ]
Author Message
 Post subject: Conky - problem with my code
PostPosted: Fri Oct 01, 2010 10:28 am 
Thinks of Tomorrow
Thinks of Tomorrow

Joined: Mon Jun 21, 2010 9:11 am
Posts: 50
:ugeek: i have been hacking away at this periodically to build a Conky script that is very easily changed with just a few remarks.
seems to all work fine except for 1 area getting my external to report information back. take a look let me know yer thoughts

these are my 2 problem lines
Code:
    ine 11     external External-Storage

    line 134   ${color}External-Storage: ${color2}${alignr}${fs_free /media/External-Storage}/ ${fs_size /media/External-Storage}
    line 135   ${fs_bar 4 /media/External-Storage}


this is the whole works
Code:
    # CONKY
    # By DaringSoule 7/7/2010
    # daringsoule@bluevalley.net
    # For Ubuntu/Debain Gnome
    # Work down the code until you get the the #line
    # Do that and you should be able to customize and not break to bad# Colors (easily changed if you use gimp for color codes)
    default_color 1c4159
    color2 6f7f8f

    # External Drive path
    external External-Storage

    # Choose one (comment out other)
    # own_window_colour black
    own_window_transparent yes

    # Update interval in seconds
    update_interval 1
    total_run_times 0

    # Windowsettings
    own_window yes
    own_window_type override
    own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager

    # Choose one
    # own_window_colour black
    own_window_transparent yes

    # Yes/No
    # Use double buffering (reduces flicker, may not work for everyone)
    double_buffer yes
    draw_shades yes
    draw_outline no
    draw_borders no
    draw_graph_borders no
    background no


    # Text area
    font Sans Seriff:size=9
    xftfont Sans Seriff:size=9
    use_xft yes
    xftalpha 0.1
    minimum_size 206 5
    maximum_width 245
    draw_outline no
    draw_borders no
    default_outline_color 000000
    draw_shades yes
    default_shade_color 000000
    override_utf8_locale no
    uppercase no # set to yes if you want all text to be in uppercase
    use_spacer no

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

    # Gap between borders of screen and text
    gap_x 10
    gap_y 15

    no_buffers yes
    cpu_avg_samples 2

    # Stippled borders?
    stippled_borders 1
    border_margin 1
    border_width 1

    #################################################################
    #########Dont go beyond this line unless you are brave###########
    #################################################################
    TEXT
    ${color}${font Webdings:style=Bold:size=12}
    SYSTEM${font Sans Seriff:size=9} ${hr 1 }
    Hostname: $alignr$nodename
    Kernel: $alignr$kernel
    Uptime: $alignr$uptime
    Processes: ${alignr}$processes ($running_processes running)
    Load: ${alignr}$loadavg
    AMD Athlon(TheeMahn) II X4 630 Processor

    ${color}${font Webdings:style=Bold:size=12}System Resources ${hr 1}
    $font$CPU Usage: ${color2}${alignc} ${freq}MHz X 4
    ${cpu cpu0}% ${alignr}${cpugraph cpu0 25,170 8e00ff 942be8}
    ${hr 1}

    # Choose a CPU display style
    # Style 1
    #${font Aerial:style=Bold:pixelsize=12}Cores:
    #${cpu cpu1}% ${alignr}${cpubar cpu1 5,170}
    #${cpu cpu2}% ${alignr}${cpubar cpu2 5,170}
    #${cpu cpu3}% ${alignr}${cpubar cpu3 5,170}
    #${cpu cpu4}% ${alignr}${cpubar cpu4 5,170}
    #${hr 1}

    #Style 2
    ${color}CORE 1: ${color2}$font${cpu cpu1}% $alignr ${color}CORE 2: ${color2}$font${cpu cpu2}%
    ${cpugraph cpu1 25,120 FE9A2E FE9A2E} $alignr${cpugraph cpu2 25,120 DF0101 FE2E2E}
    ${color2}${hr 2}
    ${color}CORE 3: ${color2}$font${cpu cpu3}% $alignr ${color}CORE 4: ${color2}$font${cpu cpu4}%
    ${cpugraph cpu3 25,120 04B404 00FF00} $alignr${cpugraph cpu4 25,120 0000FF 2E9AFE}
    ${color2}${hr 2}

    # Disk I/O reporter
    ${color}Disk I/O: ${diskio} ${alignr}
    ${color2}${diskiograph /dev/sda 25,200 e6df7e ebe6a3}
    ${hr 1}

    # Memory
    ${color}RAM ${color2}${alignr}$mem / $memmax ($memperc%)
    ${membar 4}
    ${color}Swap: ${color2}${alignr}$swap/$swapmax
    ${swapbar 4}
    ${hr 1}

    ${font}${color2}Big Users                      ${alignr}CPU%  MEM%
    ${hr 1}
    ${color}${top name 1} ${alignr}${top cpu 1}    ${top mem 1}
    ${color2}${top name 2} ${alignr}${top cpu 2}    ${top mem 2}
    ${top name 3} ${alignr}${top cpu 3}    ${top mem 3}
    ${top name 4} ${alignr}${top cpu 4}    ${top mem 4}
    ${top name 5} ${alignr}${top cpu 5}    ${top mem 5}

    ${hr 1}

    ${color}${font Aerial:style=Bold:pixelsize=12}FILESYSTEM ${font Sans Seriff:size=9}${hr 1}
    Root: ${color2}${alignr}${fs_free /} / ${fs_size /}
    ${fs_bar 4 /}
    ${color}External-Storage: ${color2}${alignr}${fs_free /media/External-Storage}/ ${fs_size /media/External-Storage}
    ${fs_bar 4 /media/External-Storage}
    ${hr 1}
    ${color}${font Aerial:style=Bold:pixelsize=12}NETWORK ${font Sans Seriff:size=9}${hr 1}
    IP: ${color2}${addr lo} / ${execi 3600 wget -O - http://whatismyip.org/ | tail}
    ${color}TCP Connections: ${color2}${tcp_portmon 1 65535 count}
    ${color}Down: ${color2}${downspeed lo} k/s ${alignr}${color}Up ${color2}${upspeed lo} k/s
    ${downspeedgraph lo 25,107 cccccc 1c4159} ${alignr}${upspeedgraph lo 25,107 cccccc 1c4159}
    ${color}Total ${color2}${totaldown lo} ${alignr}${color}Total ${color2}${totalup lo}


:geek:


Top
 Profile  
 
 Post subject: Re: Conky - problem with my code
PostPosted: Sat Oct 02, 2010 6:15 pm 
Site Admin
Site Admin

Joined: Thu May 20, 2010 4:13 pm
Posts: 125
Sorry I never used Conky, you might want to ask on the Conky forum.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post a new topicPost a reply Page 1 of 1   [ 2 posts ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron


Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
twilightBB Style by Daniel St. Jules of Gamexe.net