Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

Conky problems

  • 03-05-2009 03:49PM
    #1
    Closed Accounts Posts: 1,152 ✭✭✭


    Upgraded to Jaunty a while ago and on reboot I was faced with the following problem with my conky set up (see screenshot)

    My conky.rc file is below can anyone see what i should change so that the conky window is not always on top?
    #################################################################
    ########## **** NOT NEEDED ######################################
    
    #PROCESSES ${hr 2}
    #NAME $alignr PID    CPU
    #${top name 1} $alignr ${top pid 1} ${top cpu 1}
    #${top name 2} $alignr ${top pid 2} ${top cpu 2}
    #${top name 3} $alignr ${top pid 3} ${top cpu 3}
    #${top name 4} $alignr ${top pid 4} ${top cpu 4}
    #${top name 5} $alignr ${top pid 5} ${top cpu 5}
    #${top name 6} $alignr ${top pid 6} ${top cpu 6}
    #${top name 7} $alignr ${top pid 7} ${top cpu 7}
    #${top name 8} $alignr ${top pid 8} ${top cpu 8}
    
    
    TO DO ${hr 2}
    ${execi 30 cat /home/pat/TODO.txt | fold -w40 }
    
    ###################################################################
    
    # Use Xft?
    use_xft yes
    xftfont DejaVu Sans:size=8
    xftalpha 0.8
    text_buffer_size 2048
    
    # Update interval in seconds
    update_interval 1
    
    # This is the number of times Conky will update before quitting.
    # Set to zero to run forever.
    total_run_times 0
    
    # Create own window instead of using desktop (required in nautilus)
    own_window yes
    own_window_transparent yes
    own_window_type override
    #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 180 0
    #maximum_width 200
    
    # Draw shades?
    draw_shades no
    
    # Draw outlines?
    draw_outline no
    
    # Draw borders around text
    draw_borders no
    
    # Stippled borders?
    stippled_borders 0
    
    # border margins
    border_margin 5
    
    # border width
    border_width 1
    
    # Default colors and also border colors
    default_color black
    #default_shade_color black
    #default_outline_color white
    own_window_colour white
    
    # Text 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
    # same thing as passing -x at command line
    gap_x 35
    gap_y 50
    
    # 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
    
    # number of net samples to average
    # set to 1 to disable averaging
    net_avg_samples 2
    
    # Force UTF8? note that UTF8 support required XFT
    override_utf8_locale yes
    
    # Add spaces to keep things from moving about?  This only affects certain objects.
    use_spacer none
    
    TEXT
    SYSTEM ${hr 2}
    ${voffset 2}${font OpenLogos:size=16}u${font}   Kernel:  ${alignr}${kernel}
    ${font StyleBats:size=16}A${font}   CPU1: ${cpu cpu1}% ${alignr}${cpubar cpu1 8,60}
    ${font StyleBats:size=16}A${font}   CPU2: ${cpu cpu2}% ${alignr}${cpubar cpu2 8,60}
    ${font StyleBats:size=16}A${font}   Temp: ${acpitemp} °C 
    ${font StyleBats:size=16}g${font}   RAM: $memperc% ${alignr}${membar 8,60}
    ${font StyleBats:size=16}j${font}   SWAP: $swapperc% ${alignr}${swapbar 8,60}
    ${font Webdings:size=16}~${font}  Battery: ${battery_percent BAT0}% ${alignr}${battery_bar 8,60 BAT0}
    ${font StyleBats:size=16}q${font}   Uptime: ${alignr}${uptime}
    
    DATE ${hr 2}
    ${alignc 35}${font Arial Black:size=26}${time %H:%M}${font}
    ${alignc}${time %A %d %Y}
    
    HD ${hr 2}
    ${voffset 4}${font Pie charts for maps:size=14}7${font}   ${voffset -5}Root:
    ${voffset 4}${fs_used /}/${fs_size /} ${alignr}${fs_bar 8,60 /}
    ${font Pie charts for maps:size=14}7${font}   ${voffset -5}Home:
    ${voffset 4}${fs_free /home}/${fs_size /home} ${alignr}${fs_bar 8,60 /home}
    
    NETWORK ${hr 2}
    ${if_existing /proc/net/route wlan0}
    ${voffset -6}${font PizzaDude Bullets:size=14}O${font}   Up: ${upspeed wlan0} kb/s ${alignr}${upspeedgraph wlan0 8,60 F57900 FCAF3E}
    ${voffset 4}${font PizzaDude Bullets:size=14}U${font}   Down: ${downspeed wlan0} kb/s ${alignr}${downspeedgraph wlan0 8,60 F57900 FCAF3E}
    ${voffset 4}${font PizzaDude Bullets:size=14}N${font}   Upload: ${alignr}${totalup wlan0}
    ${voffset 4}${font PizzaDude Bullets:size=14}T${font}   Download: ${alignr}${totaldown wlan0}
    ${voffset 4}${font PizzaDude Bullets:size=14}Z${font}   Signal: ${wireless_link_qual wlan0}% ${alignr}${wireless_link_bar 8,60 wlan0}
    ${voffset 4}${font PizzaDude Bullets:size=14}a${font}   Local Ip: ${alignr}${addr wlan0}
    ${voffset 4}${font PizzaDude Bullets:size=14}b${font}   Public Ip: ${alignr}${execi 1 ~/.scripts/ip.sh}
    ${else}${if_existing /proc/net/route eth0}
    ${voffset -6}${font PizzaDude Bullets:size=14}O${font}   Up: ${upspeed eth0} kb/s ${alignr}${upspeedgraph eth0 8,60 F57900 FCAF3E}
    ${voffset 4}${font PizzaDude Bullets:size=14}U${font}   Down: ${downspeed eth0} kb/s ${alignr}${downspeedgraph eth0 8,60 F57900 FCAF3E}
    ${voffset 4}${font PizzaDude Bullets:size=14}N${font}   Upload: ${alignr}${totalup eth0}
    ${voffset 4}${font PizzaDude Bullets:size=14}T${font}   Download: ${alignr}${totaldown eth0}
    ${voffset 4}${font PizzaDude Bullets:size=14}a${font}   Local Ip: ${alignr}${addr eth0}
    ${voffset 4}${font PizzaDude Bullets:size=14}b${font}   Public Ip: ${alignr}${execi 1 ~/.scripts/ip.sh}
    ${endif}${else}${if_existing /proc/net/route eth1}
    ${voffset -6}${font PizzaDude Bullets:size=14}O${font}   Up: ${upspeed eth1} kb/s ${alignr}${upspeedgraph eth1 8,60 F57900 FCAF3E}
    ${voffset 4}${font PizzaDude Bullets:size=14}U${font}   Down: ${downspeed eth1} kb/s ${alignr}${downspeedgraph eth1 8,60 F57900 FCAF3E}
    ${voffset 4}${font PizzaDude Bullets:size=14}N${font}   Upload: ${alignr}${totalup eth1}
    ${voffset 4}${font PizzaDude Bullets:size=14}T${font}   Download: ${alignr}${totaldown eth1}
    ${voffset 4}${font PizzaDude Bullets:size=14}a${font}   Local Ip: ${alignr}${addr eth1}
    ${voffset 4}${font PizzaDude Bullets:size=14}b${font}   Public Ip: ${alignr}${execi 1 ~/.scripts/ip.sh}
    ${endif}${else}
    ${font PizzaDude Bullets:size=14}4${font}   Network Unavailable
    ${endif}
    


Comments

  • Registered Users, Registered Users 2 Posts: 37,485 ✭✭✭✭Khannie


    how do you start up conky?


  • Closed Accounts Posts: 1,377 ✭✭✭An Fear Aniar


    Hi, uncomment the own window hints line by removing the hash #

    own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager

    The "below" part should tell it to stay below other windows. You might also need to create a delayed startup script, so that Conky starts up a bit later than Compiz.

    Mine is
    #!/bin/bash
    sleep 15 &&
    conky
    

    Just call it .conkystart.sh or something, make it executable and add it to startup applications (create a new startup application), it would have the command
    sh .conkystart.sh
    

    This helps to make it run smoothly.

    .


  • Closed Accounts Posts: 1,152 ✭✭✭sound_wave


    Hi, uncomment the own window hints line by removing the hash #

    own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager

    The "below" part should tell it to stay below other windows. You might also need to create a delayed startup script, so that Conky starts up a bit later than Compiz.

    That did the trick. Thanks :) I'll see if I need the delayed startup script later on when I reboot.


Advertisement