Alternative conky setups?
  • famewolffamewolf
    PMPosts: 62
    I'm interested if anyone is running an alternative conky setup....specifically one that can auto switch between wlan0 and eth0 as the connect becomes active short of displaying both.

    I'm thinking if I put a script into if-up.d I could check the network adaptor and do a sed on the .conkyrc file replacing eth0 with wlan0 or vice versa depending on which adaptor just came up. 

    Does anyone know where the adaptor picked for the lxde network monitor is saved in settings?   I'd like to change it to suit the active adaptor but not sure where the information is saved.

    The one I'm debating is this one:

    image

    Save the following as .conkyrc in your home directory after backing up the default one to .conkyrc.old

    ##########################################
    background yes
    font Snap.se:size=10
    xftfont Snap.se:size=10
    use_xft yes
    xftalpha 0.1
    update_interval 1.0
    total_run_times 0
    own_window yes
    own_window_type override
    own_window_transparent yes
    own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
    double_buffer yes
    draw_shades yes
    draw_outline no
    draw_borders no
    draw_graph_borders no
    minimum_size 206 5
    maximum_width 206
    default_color ffffff
    default_shade_color 000000
    default_outline_color 000000
    alignment top_right
    gap_x 6
    gap_y 42
    no_buffers yes
    cpu_avg_samples 2
    override_utf8_locale no
    uppercase no # set to yes if you want all text to be in uppercase
    use_spacer no

    TEXT
    ${font LCD:style=Bold:pixelsize=46}${alignc}${time %H:%M:%S}${font Snap.se:size=10}

    ${font Aerial:style=Bold:pixelsize=12}SYSTEM${font Snap.se:size=10} ${hr 1 }

    Hostname: $alignr$nodename
    Kernel: $alignr$kernel
    Uptime: $alignr$uptime
    Processes: ${alignr}$processes ($running_processes running)
    Load: ${alignr}$loadavg
    #Battery    ${battery_time BAT0} ${alignr}(${battery BAT0})
    #${battery_bar 4 BAT0}

    CPU       ${alignc} ${freq}MHz / ${acpitemp}C ${alignr}(${cpu cpu1}%)
    ${cpubar 4 cpu1}
    ${cpugraph cccccc ffffff}

    RAM ${alignr}$mem / $memmax ($memperc%)
    ${membar 4}

    SWAP ${alignr}$swap / $swapmax ($swapperc%)
    ${swapbar 4}

    Highest CPU $alignr CPU% MEM%
    ${hr 1}
    ${top name 1}$alignr${top cpu 1}${top mem 1}
    ${top name 2}$alignr${top cpu 2}${top mem 2}
    ${top name 3}$alignr${top cpu 3}${top mem 3}

    Highest MEM $alignr CPU% MEM%
    ${hr 1}
    ${top_mem name 1}$alignr${top_mem cpu 1}${top_mem mem 1}
    ${top_mem name 2}$alignr${top_mem cpu 2}${top_mem mem 2}
    ${top_mem name 3}$alignr${top_mem cpu 3}${top_mem mem 3}



    ${font Aerial:style=Bold:pixelsize=12}FILESYSTEM ${font Snap.se:size=10}${hr 1}

    Root: ${alignr}${fs_free /} / ${fs_size /}
    ${fs_bar 4 /}

    Home: ${alignr}${fs_free /home} / ${fs_size /home}
    ${fs_bar 4 /home}

    Storage: ${alignr}${fs_free /media/hdc4} / ${fs_size /media/hdc4}
    ${fs_bar 4 /media/hdc4}



    ${font Aerial:style=Bold:pixelsize=12}NETWORK ${font Snap.se:size=10}${hr 1}

    Down ${downspeed eth0} k/s ${alignr}Up ${upspeed eth0} k/s
    ${downspeedgraph eth0 25,107 cccccc ffffff} ${alignr}${upspeedgraph eth0 25,107 cccccc ffffff}
    Total ${totaldown eth0} ${alignr}Total ${totalup eth0}




    #${font Aerial:style=Bold:pixelsize=12}AUDACIOUS ${font Snap.se:size=10}(${audacious_status}) ${hr 1}${font Snap.se:size=10}
    #${audacious_title 100}
    #${audacious_bar 4}
    #
    #Current: $audacious_position / $audacious_length ${alignr}Track: $audacious_playlist_position / $audacious_playlist_length
    ###################################