[solved]Conky moving...

Here's my code
background yes
alignment top_right
cpu_avg_samples 4
use_xft no
font 7x13
update_interval 0.5
total_run_times 0
update_interval_on_battery 20
double_buffer yes
own_window yes
own_window_type override
own_window_transparent yes
#default_bar_size 120 8
gap_y 20
gap_x 20
use_spacer yes
TEXT
${color red} ${alignc}System: $nodename
$alignc $gw_ip
${hr}
$alignc CPU Usage
${hr}
${color green}core_1: ${cpu cpu1}% ${cpubar cpu1 10}
core_2: ${color green}${cpu cpu2}% ${cpubar cpu2 10}
${color red}$hr
$alignc Memory
$hr
${color green}Total: $memmax
In use: $mem
Free: $memfree
Using $memperc% ${membar memperc}
${color red}$hr
$alignc Battery
$hr
${color green}${battery BAT1}
I really can't get why this is keep happening tried all of these :
1) use spacer left,right,yes
2)use a mono font
Still when the percentage of CPU goes to a 2 digit number conky is moving horizontally...
I use type_override coz I like conky to be bound instead of using a window..
Last edited by bigboss (2013-11-04 19:23:50)

Oh, I know what you mean. I had the same thing happen, I gave up on finding a way to avoid it.
ewaller: His text, centred, has a fixed space in which it will appear. The problem with that is, that as soon as a digit gets added (like cpu % jumping from 9 to 10) the text needs to be re-allocated on the given space.
As the manual states, spacer should get rid of this problem, but it either shouldn't do that but the description implies it does, or it should do it but for some weird reason we aren't able to make it behave like it should -- the text jumps

Similar Messages

  • [SOLVED]Conky Forecast problems

    I upgraded OpenOffice yesterday and for some reason everytime I run Conky, this error message shows up
    /usr/bin/conkyForecast: line 3: :/usr/lib/openoffice/basis-link/program/:/usr/lib/guake: No such file or directory
    If anyone knows how to solve that problem, any help would be appreciated.
    Last edited by uzi304 (2010-04-07 23:50:44)

    Oh right, I'm sorry.
    # Possible variables to be used:
    # Variable Arguments Description
    # acpiacadapter ACPI ac adapter state.
    # acpifan ACPI fan state
    # acpitemp ACPI temperature.
    # adt746xcpu CPU temperature from therm_adt746x
    # adt746xfan Fan speed from therm_adt746x
    # battery (num) Remaining capasity in ACPI or APM
    # battery. ACPI battery number can be
    # given as argument (default is BAT0).
    # buffers Amount of memory buffered
    # cached Amount of memory cached
    # color (color) Change drawing color to color
    # cpu CPU usage in percents
    # cpubar (height) Bar that shows CPU usage, height is
    # bar's height in pixels
    # downspeed net Download speed in kilobytes
    # downspeedf net Download speed in kilobytes with one
    # decimal
    # exec shell command Executes a shell command and displays
    # the output in torsmo. warning: this
    # takes a lot more resources than other
    # variables. I'd recommend coding wanted
    # behaviour in C and posting a patch :-).
    # execi interval, shell Same as exec but with specific interval.
    # command Interval can't be less than
    # update_interval in configuration.
    # fs_bar (height), (fs) Bar that shows how much space is used on
    # a file system. height is the height in
    # pixels. fs is any file on that file
    # system.
    # fs_free (fs) Free space on a file system available
    # for users.
    # fs_free_perc (fs) Free percentage of space on a file
    # system available for users.
    # fs_size (fs) File system size
    # fs_used (fs) File system used space
    # hr (height) Horizontal line, height is the height in
    # pixels
    # i2c (dev), type, n I2C sensor from sysfs (Linux 2.6). dev
    # may be omitted if you have only one I2C
    # device. type is either in (or vol)
    # meaning voltage, fan meaning fan or temp
    # meaning temperature. n is number of the
    # sensor. See /sys/bus/i2c/devices/ on
    # your local computer.
    # kernel Kernel version
    # loadavg (1), (2), (3) System load average, 1 is for past 1
    # minute, 2 for past 5 minutes and 3 for
    # past 15 minutes.
    # machine Machine, i686 for example
    # mails Mail count in mail spool. You can use
    # program like fetchmail to get mails from
    # some server using your favourite
    # protocol. See also new_mails.
    # mem Amount of memory in use
    # membar (height) Bar that shows amount of memory in use
    # memmax Total amount of memory
    # memperc Percentage of memory in use
    # new_mails Unread mail count in mail spool.
    # nodename Hostname
    # outlinecolor (color) Change outline color
    # pre_exec shell command Executes a shell command one time before
    # torsmo displays anything and puts output
    # as text.
    # processes Total processes (sleeping and running)
    # running_processes Running processes (not sleeping),
    # requires Linux 2.6
    # shadecolor (color) Change shading color
    # stippled_hr (space), Stippled (dashed) horizontal line
    # (height)
    # swapbar (height) Bar that shows amount of swap in use
    # swap Amount of swap in use
    # swapmax Total amount of swap
    # swapperc Percentage of swap in use
    # sysname System name, Linux for example
    # time (format) Local time, see man strftime to get more
    # information about format
    # totaldown net Total download, overflows at 4 GB on
    # Linux with 32-bit arch and there doesn't
    # seem to be a way to know how many times
    # it has already done that before torsmo
    # has started.
    # totalup net Total upload, this one too, may overflow
    # updates Number of updates (for debugging)
    # upspeed net Upload speed in kilobytes
    # upspeedf net Upload speed in kilobytes with one
    # decimal
    # uptime Uptime
    # uptime_short Uptime in a shorter format
    # seti_prog Seti@home current progress
    # seti_progbar (height) Seti@home current progress bar
    # seti_credit Seti@hoome total user credit
    # 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 white
    #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}B${font} Machine:${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}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 BAT1}% ${alignr}${battery_bar 8,60 BAT1}
    ${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} ${alignr}${upspeedgraph wlan0 8,60 3465A4 729FCF}
    ${voffset 4}${font PizzaDude Bullets:size=14}U${font} Down: ${downspeed wlan0} ${alignr}${downspeedgraph wlan0 8,60 3465A4 729FCF}
    ${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 C22F2F DA3F3F}
    ${voffset 4}${font PizzaDude Bullets:size=14}U${font} Down: ${downspeed eth0} kb/s ${alignr}${downspeedgraph eth0 8,60 C22F2F DA3F3F}
    ${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 C22F2F DA3F3F}
    ${voffset 4}${font PizzaDude Bullets:size=14}U${font} Down: ${downspeed eth1} kb/s ${alignr}${downspeedgraph eth1 8,60 C22F2F DA3F3F}
    ${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}
    WEATHER ${hr 2}
    ${if_existing /proc/net/route wlan0}
    ${voffset -10}${alignr 56}${font ConkyWeather:style=Bold:size=40}${execi 600 conkyForecast --location=USNJ0392 --datatype=WF}${font}
    ${voffset -50}${font Weather:size=40}y${font} ${voffset -38}${font Arial Black:size=26}${execi 600 conkyForecast --location=USNJ0392 --datatype=HT --imperial}${font}
    ${voffset 0}${alignc 43}${execpi 600 conkyForecast --location=USNJ0392 --datatype=DW --startday=1 --shortweekday} ${alignc 8}${execpi 600 conkyForecast --location=USNJ0392 --datatype=DW --startday=2 --shortweekday} ${alignc -29}${execpi 600 conkyForecast --location=USNJ0392 --datatype=DW --startday=3 --shortweekday} ${alignc -64}${execpi 600 conkyForecast --location=USNJ0392 --datatype=DW --startday=4 --shortweekday}
    ${voffset 0}${alignc 75}${font ConkyWeather:size=28}${execpi 600 conkyForecast --location=USNJ0392 --datatype=WF --startday=1 --endday=4 --spaces=1}${font}
    ${voffset 0}${font DejaVu Sans:size=7}${alignc 48}${execpi 600 conkyForecast --location=USNJ0392 --datatype=HT --imperial --startday=1 --hideunits --centeredwidth=3}/${execpi 600 conkyForecast --location=USNJ0392 --datatype=LT --startday=1 --hideunits --centeredwidth=3} ${alignc -14}${execpi 600 conkyForecast --location=USNJ0392 --datatype=HT --imperial --startday=2 --hideunits --centeredwidth=3}/${execpi 600 conkyForecast --location=USNJ0392 --datatype=LT --startday=2 --hideunits --centeredwidth=3} ${alignc -40}${execpi 600 conkyForecast --location=USNJ0392 --datatype=HT --imperial --startday=3 --hideunits --centeredwidth=3}/${execpi 600 conkyForecast --location=USNJ0392 --datatype=LT --startday=3 --hideunits --centeredwidth=3} ${alignr 6}${execpi 600 conkyForecast --location=USNJ0392 --datatype=HT --imperial --startday=4 --hideunits --centeredwidth=3}/${execpi 600 conkyForecast --location=USNJ0392 --datatype=LT --startday=4 --hideunits --centeredwidth=3}${font}
    ${else}${if_existing /proc/net/route eth0}
    ${voffset -10}${alignr 56}${font ConkyWeather:style=Bold:size=40}${execi 600 conkyForecast --location=??? --datatype=WF}${font}
    ${voffset -50}${font Weather:size=40}y${font} ${voffset -38}${font Arial Black:size=26}${execi 600 conkyForecast --location=??? --datatype=HT}${font}
    ${voffset 0}${alignc 43}${execpi 600 conkyForecast --location=??? --datatype=DW --startday=1 --shortweekday} ${alignc 8}${execpi 600 conkyForecast --location=??? --datatype=DW --startday=2 --shortweekday} ${alignc -29}${execpi 600 conkyForecast --location=??? --datatype=DW --startday=3 --shortweekday} ${alignc -64}${execpi 600 conkyForecast --location=??? --datatype=DW --startday=4 --shortweekday}
    ${voffset 0}${alignc 75}${font ConkyWeather:size=28}${execpi 600 conkyForecast --location=??? --datatype=WF --startday=1 --endday=4 --spaces=1}${font}
    ${voffset 0}${font DejaVu Sans:size=7}${alignc 48}${execpi 600 conkyForecast --location=??? --datatype=HT --startday=1 --hideunits --centeredwidth=3}/${execpi 600 conkyForecast --location=??? --datatype=LT --startday=1 --hideunits --centeredwidth=3} ${alignc -14}${execpi 600 conkyForecast --location=??? --datatype=HT --startday=2 --hideunits --centeredwidth=3}/${execpi 600 conkyForecast --location=??? --datatype=LT --startday=2 --hideunits --centeredwidth=3} ${alignc -40}${execpi 600 conkyForecast --location=??? --datatype=HT --startday=3 --hideunits --centeredwidth=3}/${execpi 600 conkyForecast --location=??? --datatype=LT --startday=3 --hideunits --centeredwidth=3} ${alignr 6}${execpi 600 conkyForecast --location=??? --datatype=HT --startday=4 --hideunits --centeredwidth=3}/${execpi 600 conkyForecast --location=??? --datatype=LT --startday=4 --hideunits --centeredwidth=3}${font}
    ${endif}${else}${if_existing /proc/net/route eth1}
    ${voffset -10}${alignr 56}${font ConkyWeather:style=Bold:size=40}${execi 600 conkyForecast --location=??? --datatype=WF}${font}
    ${voffset -50}${font Weather:size=40}y${font} ${voffset -38}${font Arial Black:size=26}${execi 600 conkyForecast --location=??? --datatype=HT}${font}
    ${voffset 0}${alignc 43}${execpi 600 conkyForecast --location=??? --datatype=DW --startday=1 --shortweekday} ${alignc 8}${execpi 600 conkyForecast --location=??? --datatype=DW --startday=2 --shortweekday} ${alignc -29}${execpi 600 conkyForecast --location=??? --datatype=DW --startday=3 --shortweekday} ${alignc -64}${execpi 600 conkyForecast --location=??? --datatype=DW --startday=4 --shortweekday}
    ${voffset 0}${alignc 75}${font ConkyWeather:size=28}${execpi 600 conkyForecast --location=??? --datatype=WF --startday=1 --endday=4 --spaces=1}${font}
    ${voffset 0}${font DejaVu Sans:size=7}${alignc 48}${execpi 600 conkyForecast --location=??? --datatype=HT --startday=1 --hideunits --centeredwidth=3}/${execpi 600 conkyForecast --location=??? --datatype=LT --startday=1 --hideunits --centeredwidth=3} ${alignc -14}${execpi 600 conkyForecast --location=??? --datatype=HT --startday=2 --hideunits --centeredwidth=3}/${execpi 600 conkyForecast --location=??? --datatype=LT --startday=2 --hideunits --centeredwidth=3} ${alignc -40}${execpi 600 conkyForecast --location=??? --datatype=HT --startday=3 --hideunits --centeredwidth=3}/${execpi 600 conkyForecast --location=??? --datatype=LT --startday=3 --hideunits --centeredwidth=3} ${alignr 6}${execpi 600 conkyForecast --location=??? --datatype=HT --startday=4 --hideunits --centeredwidth=3}/${execpi 600 conkyForecast --location=??? --datatype=LT --startday=4 --hideunits --centeredwidth=3}${font}
    ${endif}${else}
    ${font PizzaDude Bullets:size=14}4${font} Weather Unavailable
    ${endif}

  • [Solved]Conky causes desktop icons to dissappear

    I decided to fool around with conky, since I saw the thread lower down in the forums.  I kinda mashed some code together and I have a conky I like (though I cant get all the modules working...) but, activating conky causes my desktop icons to dissapear (and re-appear if I mouse over).  It's my frist time actually using conky...so I might have messed up something in my (well, a mash of other's) code.
    # set to yes if you want tormo to be forked in the background
    background yes
    cpu_avg_samples 2
    net_avg_samples 2
    out_to_console no
    # X font when Xft is disabled, you can pick one with program xfontsel
    #font 7x12
    #font *mintsmild.se*
    # Use Xft?
    use_xft yes
    # Xft font when Xft is enabled
    xftfont Bitstream Vera Sans Mono:size=8
    # Text alpha when using Xft
    xftalpha 0.8
    # mail spool
    #mail_spool $MAIL
    # Update interval in seconds
    update_interval 1
    # Create own window instead of using desktop (required in nautilus)
    own_window no
    # Use double buffering (reduces flicker, may not work for everyone)
    double_buffer yes
    # Minimum size of text area
    minimum_size 230 5
    maximum_width 250
    # Draw shades?
    draw_shades no
    # Draw outlines?
    draw_outline no
    # Draw borders around text
    draw_borders no
    # Stippled borders?
    stippled_borders 8
    # border margins
    border_margin 4
    # border width
    border_width 1
    # Default colors and also border colors
    default_color white
    default_shade_color black
    default_outline_color black
    # 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
    gap_x 13
    gap_y 25
    # Add spaces to keep things from moving about? This only affects certain objects.
    use_spacer no
    # Subtract file system buffers from used memory?
    no_buffers yes
    # set to yes if you want all text to be in uppercase
    uppercase no
    # stuff after 'TEXT' will be formatted on screen
    TEXT
    ${color #88aadd}$nodename - $sysname$kernel $machine
    $hr
    ${color lightgrey}
    ${execp ~/.conkycalendar.sh}
    #$hr
    #${execi -l ~/.conkyforecast.py}
    $hr
    ${color #88aadd}System Info:
    ${color lightgrey}CORE 0:${color} ${cpu 0}${color lightgrey}% ${alignr}${offset -49}${color}${freq_g 0} ${color lightgrey}Ghz
    ${color lightgrey}CORE 1:${color} ${cpu 1}${color lightgrey}% ${alignr}${offset -49}${color}${freq_g 1} ${color lightgrey}Ghz
    ${color lightgrey}CORE 2:${color} ${cpu 2}${color lightgrey}% ${alignr}${offset -49}${color}${freq_g 2} ${color lightgrey}Ghz
    ${color lightgrey}Uptime: ${color}$uptime
    ${color lightgrey}Processes:$color $running_processes/$processes ${offset 6}${color lightgrey}Load:$color ${loadavg 3}
    ${color lightgrey}RAM:$color $mem${color lightgrey} /${color}$memmax ( $memperc% )
    ${color lightgrey}Swap:$color $swap${color lightgrey} / ${color}$swapmax ( $swapperc% )
    $hr
    ${color #88aadd}Top CPU:
    ${color lightgrey}Name CPU%
    ${color lightgrey}${top name 1} ${top cpu 1}%
    ${color lightgrey}${top name 2} ${top cpu 2}%
    ${color lightgrey}${top name 3} ${top cpu 3}%
    ${color lightgrey}${top name 4} ${top cpu 4}%
    $hr
    ${color #88aadd}Top Memory:
    ${color lightgrey}Name PID CPU% MEM%
    ${color}${top_mem name 1} ${top_mem pid 1} ${top_mem cpu 1} ${top_mem mem 1}
    ${color}${top_mem name 2} ${top_mem pid 2} ${top_mem cpu 2} ${top_mem mem 2}
    ${color}${top_mem name 3} ${top_mem pid 3} ${top_mem cpu 3} ${top_mem mem 3}
    ${color}${top_mem name 4} ${top_mem pid 4} ${top_mem cpu 4} ${top_mem mem 4}
    $hr
    ${color #88aadd}Network:
    ${color lightgrey}Net: $color${addr eth0}${offset 6}${color lightgrey}
    #Essid: ${color}${exec sudo iwconfig eth0 | grep "ESSID" | cut -c 32-45}
    ${color lightgrey}Up:${color} ${upspeedf eth0} k/s${color lightgrey}${alignr}${color lightgrey}Tot:${color} ${totalup eth0} ${color lightgrey}
    ${color lightgrey}Down: ${color}${downspeedf eth0} k/s ${alignr}${color lightgrey}Tot:${color} ${totaldown eth0}
    Local Ip ${alignr}${addr eth0}
    Public Ip ${alignr}${execp ~/.conkyip.sh}
    $hr
    ${voffset 5}${color #88aadd}Disks:
    / $color${fs_used /} / ${fs_size} (${fs_free /})${fs_used_perc /}${color lightgrey}%${offset 5}
    ${color #88aadd}Win7 $color${fs_used /media/Windows7} / ${fs_size /media/Windows7} (${fs_free /media/Windows7})${fs_used_perc /media/Windows7}${color lightgrey}%${offset 5}
    ${color #88aadd}DataI $color${fs_used /media/DATA} / ${fs_size /media/DATA} (${fs_free /media/DATA})${fs_used_perc /media/DATA}${color lightgrey}%${offset 5}
    ${color #88aadd}DataII $color${fs_used /media/DataII} / ${fs_size /media/DataII} (${fs_free /media/DataII})${fs_used_perc /media/DataII}${color lightgrey}%${offset 5}
    ${color #88aadd}Win7 $color${fs_used /media/DataII} / ${fs_size /media/DataII} (${fs_free /media/DataII})${fs_used_perc /media/DataII}${color lightgrey}%${offset 5}
    #$hr
    #${color #88aadd}Banshee - ${execi 15 ~/conkyshee.py --status}${alignr}#${offset -22}
    # $color artist: ${color #88aadd}${execi 15 ~/conkyshee.py --artist}
    # $color track: ${color #88aadd}${execi 15 ~/conkyshee.py --title}${voffset 5}
    Last edited by JerichoKru (2010-02-01 06:55:18)

    Maybe try:
    double_buffer yes
    own_window yes
    own_window_transparent yes
    own_window_type normal
    own_window_hints undecorate,sticky,skip_taskbar,skip_pager

  • [Solved]Conky and word wrapping - Is there a way?

    So I have a very limited area to work with, something like 176x360 (+/- a few pixels), and I want the ability to show an RSS feed. Well, the feed works of course, but due to the limited width, I'm in great need of word wrapping, and for that problem I have found no solution and going on for 2-3 hours straight, my head hurts
    Anyway, here's my .conkyrc, not that it's needed of course.
    # ~/.conkyrc
    double_buffer yes
    use_xft yes
    xftfont Bitstream Vera Sans Mono:size=8
    xftalpha 0.8
    update_interval 1.0
    total_run_times 0
    own_window yes
    own_window_type override
    own_window_transparent yes
    own_window_colour hotpink
    own_window_hints undecorated,below,skip_taskbar,sticky,skip_pager
    minimum_size 176 360
    maximum_size 176 360
    maximum_width 176
    draw_shades no
    draw_outline no
    draw_borders no
    stippled_borders 0
    border_margin 0
    border_width 0
    default_color green
    default_shade_color green
    default_outline_color green
    alignment bottom_right
    gap_x 16
    gap_y 16
    no_buffers yes
    uppercase no
    TEXT
    $alignc${nodename}
    $alignc${sysname} ${kernel}
    $hr
    CPU:$alignr$cpu% ${cpubar 10,106}
    RAM:$alignr$memperc% ${membar 10,106}
    HDD:$alignr${fs_used_perc /}% ${fs_bar 10,106 /}
    BAT:$alignr${battery_percent}% ${battery_bar 10,106}
    $hr
    Download: Upload:
    eth0 ${downspeed eth0} $alignr${upspeed eth0}
    wlan0 ${downspeed wlan0} $alignr${upspeed wlan0}
    $hr
    ${alignc}ARCH NEWS
    ${rss http://www.archlinux.org/feeds/news/ 1 item_titles 10 }
    I know this looks confusing and probably is full of critical error, but that simple because I'm a conky noob. I basically just downloaded a profile I liked and completely changed it over the course of a few hours.
    Anyway, I'm rambling again, but if you've got any idea's, please do let me know.
    Best regards.
    Last edited by zacariaz (2012-08-27 17:19:35)

    Okay, so I've found sort of a solution to part of the problem, so what I have so far look like this:
    wget -quiet -O - archlinux.org/feeds/news/ | fmt -w 25 -g 25
    It works as long as there are no words longer than 25 character, which I should think is rare, even including package names and such.
    However there's still the issue parsing the xml so I get only what I want:
    <item><title>$content</title><link>
    This may be solved using some sort of terminal rss parser, but I would rather prefer not to.
    Then there's the issue with reloading.
    My current conky is set to reload every second, but of course one can't just pull the feed every second and I'm not convinced that conky has any built in solution for that problem. Of course I can always start a cronjob and save it all to a file, but portability would be nice.
    anyway, I'll return later.

  • [SOLVED] Conky lua problem (transparency)

    Hi,
    I'm trying to transfer my conky from Ubuntu to Arch: below is a screenshot of the Ubuntu version (what it should look like).  On Arch I have a solid black background.   If it's relevant, I'm running Archbang rather than pure Arch, so with Openbox.
    My main issue at the moment is the semi-transparency (and I'd like to have the rounded corners too).   I understand that conky 1.8.0 can do transparency, but only with a compositor, and I'd rather keep my system as light as possible.  So I've replaced my conky with 1.7.2 conky-lua from AUR and (don't know if this was necessary) installed cairo and lua from the repos.   Unfortunately the lua script I used on Ubuntu isn't working; when I run conky in the terminal I get the message ".conkyrc: 121: config file error".  At lines 120 and 121 I have my
    lua_load ~/scripts/draw_bg.lua
            lua_draw_hook_pre
    My .conkyrc and lua script are below.  Thanks for looking!
    # conky configuration
    # edited by Mark Buck (Kaivalagi) <[email protected]>
    # set to yes if you want Conky to be forked in the background
    background no
    # X font when Xft is disabled, you can pick one with program xfontsel
    #font 5x7
    #font 6x10
    #font 7x13
    #font 8x13
    #font 9x15
    #font *mintsmild.se*
    #font -*-*-*-*-*-*-34-*-*-*-*-*-*-*
    # Use Xft?
    use_xft yes
    # Xft font when Xft is enabled
    xftfont Bitstream Vera Sans Mono:size=9
    # Text alpha when using Xft
    xftalpha 0.8
    # Update interval in seconds
    update_interval 1.0
    # This is the number of times Conky will update before quitting.
    # Set to zero to run forever.
    total_run_times 0
    # Use double buffering (reduces flicker, may not work for everyone)
    double_buffer yes
    # Minimum size of text area
    minimum_size 200 700
    maximum_width 200
    # Draw shades?
    draw_shades yes
    # Draw outlines?
    draw_outline no
    # Draw borders around text
    draw_borders no
    draw_graph_borders yes
    # Stippled borders?
    stippled_borders 8
    # border margins
    border_inner_margin 2
    border_outer_margin 2
    # border width
    border_width 1
    # Default colors and also border colors
    default_color white
    default_shade_color black
    default_outline_color white
    # own window options
    own_window yes
    own_window_type desktop
    #own_window_hints undecorated,skip_taskbar
    # 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 5
    gap_y 35
    # 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 right
    # colours
    color1 white
    # light blue
    color2 6892C6
    color3 6892C6
    # green
    color4 78BF39
    # red
    color5 CC0000
    color6 88ff88
    text_buffer_size 2048
    # variable is given either in format $variable or in ${variable}. Latter
    # allows characters right after the variable and must be used in network
    # stuff because of an argument
    # stuff after 'TEXT' will be formatted on screen
    lua_load ~/scripts/draw_bg.lua
    lua_draw_hook_pre
    TEXT
    ${offset -5}${font StyleBats:style=CleanCut:size=12}q ${voffset -2}${font Bitstream Vera Sans Mono:style=Bold:size=11}Weather${font} ${hr}${color1}
    ${execpi 1800 conkyForecast --location=MZXX0003 --template=/home/mark/conky/conkyForecast.template}
    ${goto 25}${color1}${font Bitstream Vera Sans Mono:size=14}${execi 1800 conkyForecast --location=MZXX0003 --datatype=CT}${font}
    ${goto 20}${font ConkyWeather:style=Bold:size=30}${execi 1800 conkyForecast --location=MZXX0003 --datatype=WF} ${goto 120}${font ConkyWindNESW:size=30}${execi 1800 conkyForecast --location=MZXX0003 --datatype=BS}${font}
    ${goto 10}${execi 1800 conkyForecast --location=MZXX0003 --datatype=HT --centeredwidth=4}/${execi 1800 conkyForecast --location=MZXX0003 --datatype=LT --centeredwidth=4} ${goto 100}${execi 1800 conkyForecast --location=MZXX0003 --datatype=WS --imperial} - ${execi 1800 conkyForecast --location=MZXX0003 --datatype=WD}
    $if_mpd_playing${offset -5}${font StyleBats:style=CleanCut:size=12}q ${voffset -2}${font Bitstream Vera Sans Mono:style=Bold:size=11}Music${font} ${hr}${color1}
    ${font Bitstream Vera Sans:size=9}${color2}MPD:${color6} $mpd_status
    ${color}${texeci 10 /home/mark/conky/composer.sh}
    ${font Bitstream Vera Sans:size=9}$color$mpd_artist
    ${font Bitstream Vera Sans:size=9}$mpd_album
    ${font Bitstream Vera Sans:size=9}$mpd_title
    ${color #ccddff} ${mpd_bar 5, 100}
    $endif
    ${offset -5}${font StyleBats:style=CleanCut:size=12}q ${voffset -2}${font Bitstream Vera Sans Mono:style=Bold:size=11}${color1}System${font} ${hr}${color1}
    ${color2}CPU Temp: ${color}${acpitemp}${color}°${font Bitstream Vera Sans Mono:size=9}
    $color2}CPU1: $color${cpu cpu1}% ${cpubar cpu1 4,65}${font Bitstream Vera Sans Mono:size=9}
    $color2}CPU2: $color${cpu cpu2}% ${cpubar cpu2 4,65}${font Bitstream Vera Sans Mono:size=9}
    ${color2}RAM:$color $mem/$memmax
    ${color2}Root: $color${fs_used /}/${fs_size /}${font Bitstream Vera Sans Mono:size=9}
    ${color2}Home: $color${fs_used /home/}/${fs_size /home/}${font Bitstream Vera Sans Mono:size=9}
    ${color2}Today:${color6}${execi 10 vnstat -i eth0 | grep "today" | awk '{print $5 $6}'}${goto 120}${color1}${execi 10 vnstat -i eth0 | grep "today" | awk '{print $8 $9}'}
    ${color2}Week: ${color6}${execi 10 vnstat -i eth0 -w | grep "current week" | awk '{print $6 $7}'}${goto 120}${color1}${execi 10 vnstat -i eth0 -w | grep "current week" | awk '{print $9 $10}'}
    ${color2}Month: ${color6}${execi 10 vnstat -i eth0 -m | grep "`date +"%b '%y"`" | awk '{print $6 $7}'}${goto 120}${color1}${execi 10 vnstat -i eth0 -m | grep "`date +"%b '%y"`" | awk '{print $9 $10}'}${font}
    ${color2}Battery:$color ${color red}${battery_bar 4,50 BAT0}
    Background by londonali1010 (2009)
    This script draws a background to the Conky window. It covers the whole of the Conky window, but you can specify rounded corners, if you wish.
    To call this script in Conky, use (assuming you have saved this script to ~/scripts/):
    lua_load ~/scripts/draw_bg.lua
    lua_draw_hook_pre
    Changelog:
    + v1.0 -- Original release (07.10.2009)
    -- Change these settings to affect your background.
    -- "corner_r" is the radius, in pixels, of the rounded corners. If you don't want rounded corners, use 0.
    corner_r=15
    -- Set the colour and transparency (alpha) of your background.
    bg_colour=0x000000
    bg_alpha=0.4
    require 'cairo'
    function rgb_to_r_g_b(colour,alpha)
    return ((colour / 0x10000) % 0x100) / 255., ((colour / 0x100) % 0x100) / 255., (colour % 0x100) / 255., alpha
    end
    function conky_draw_bg()
    if conky_window==nil then return end
    local w=conky_window.width
    local h=conky_window.height
    local cs=cairo_xlib_surface_create(conky_window.display, conky_window.drawable, conky_window.visual, w, h)
    cr=cairo_create(cs)
    cairo_move_to(cr,corner_r,0)
    cairo_line_to(cr,w-corner_r,0)
    cairo_curve_to(cr,w,0,w,0,w,corner_r)
    cairo_line_to(cr,w,h-corner_r)
    cairo_curve_to(cr,w,h,w,h,w-corner_r,h)
    cairo_line_to(cr,corner_r,h)
    cairo_curve_to(cr,0,h,0,h,0,h-corner_r)
    cairo_line_to(cr,0,corner_r)
    cairo_curve_to(cr,0,0,0,0,corner_r,0)
    cairo_close_path(cr)
    cairo_set_source_rgba(cr,rgb_to_r_g_b(bg_colour,bg_alpha))
    cairo_fill(cr)
    end
    Last edited by Henry Flower (2010-04-13 04:54:08)

    The error in line 121 is because of lua_draw_hook_pre command must have a function name. In your file, it would be:
    lua_draw_hook_pre draw_bg
    To get the transparency put the command:
    own_window_transparent yes
    I have tried this in an AwesomeWM, with conky 1.8.0 compiled with lua support, and without compositing.

  • [SOLVED] Conky, LM-sensors and hwmon

    Hi,
    I used the guide found at the forum thread http://bbs.archlinux.org/viewtopic.php?id=43397 (post #4) to get my GPU and CPU temperature shown in conky by using LM-sensors. It all works fine, except for a single little error...
    My conky-setup for the temperatures says
    ${color lightgrey} GPU: $color${hwmon 0 temp 1}°C ${color lightgrey}CPU Core 0: $color${hwmon 1 temp 1}°C ${color lightgrey}CPU Core 1: $color${hwmon 2 temp 1}°C
    but when showing in conky, the "°C" part becomes "Å°C"??
    Can anyone see why this happens? I've attached my whole .conkyrc below:
    # set to yes if you want Conky to be forked in the background
    background no
    cpu_avg_samples 2
    net_avg_samples 2
    out_to_console no
    # Use Xft?
    use_xft yes
    # Xft font when Xft is enabled
    xftfont Bitstream Vera Sans Mono:size=7
    own_window_type desktop
    own_window_transparent yes
    own_window_colour hotpink
    # Text alpha when using Xft
    xftalpha 0.8
    # mail spool
    mail_spool $MAIL
    # Update interval in seconds
    update_interval 1
    # Create own window instead of using desktop (required in nautilus)
    own_window yes
    # Shows the time range covered by a graph.
    show_graph_range yes
    # Use double buffering (reduces flicker, may not work for everyone)
    double_buffer yes
    # Minimum size of text area
    #minimum_size 280 5
    maximum_width 310
    # Draw shades?
    draw_shades no
    # Draw outlines?
    draw_outline no
    # Draw borders around text
    draw_borders no
    # Stippled borders?
    stippled_borders 10
    # border margins
    #border_margin 2
    # border width
    border_width 1
    # Default colors and also border colors
    default_color 424de5
    default_shade_color 0b0b0b
    default_outline_color white
    # Text alignment, other possible values are commented
    #alignment top_left
    #minimum_size 10 10
    gap_x 10
    gap_y 0
    #alignment top_right
    #alignment bottom_left
    alignment bottom_right
    # Gap between borders of screen and text
    # Add spaces to keep things from moving about? This only affects certain objects.
    use_spacer none
    # Subtract file system buffers from used memory?
    no_buffers yes
    # set to yes if you want all text to be in uppercase
    uppercase no
    #${font Dungeon:style=Bold:pixelsize=10}I can change the font as well
    #${font Verdana:size=10}as many times as I choose
    #${font Perry:size=10}Including UTF-8,
    #${font Luxi Mono:size=10}justo como este texto que o google traduz fêz o português
    # stuff after 'TEXT' will be formatted on screen
    #${font Grunge:size=12}${time %a %b %d}${alignr -25}${time %k:%M}
    # Konfiguration fra Arch Forum:
    # http://bbs.archlinux.org/viewtopic.php?id=56421
    background yes
    own_window yes
    own_window_type normal
    own_window_transparent yes
    own_window_hints undecorated,below,skip_taskbar,skip_pager,sticky
    double_buffer yes
    draw_outline no
    draw_borders no
    draw_graph_borders yes
    stippled_borders 0
    border_margin 0
    border_width 0
    TEXT
    $sysname $kernel on $nodename
    #${color lightgrey}Desktop: $color$desktop_name ($desktop/$desktop_number)
    ${color 00043d}$stippled_hr
    ${color lightgrey}Uptime:$color $uptime ${color lightgrey}- Load:$color $loadavg
    ${color lightgrey}CPU Usage:${color #424de5} ${cpu}% ${cpubar}
    ${color 091124}${cpugraph lightgrey 00043d}
    ${color lightgrey}RAM Usage:$color $mem/$memmax - $memperc% $membar
    ${color lightgrey}Swap Usage:$color $swap/$swapmax - $swapperc% $swapbar
    ${color lightgrey}Processes:$color $processes ${color grey}Running:$color $running_processes
    ${color 00043d}$stippled_hr
    ${color lightgrey}Networking (cable) - $color IP: ${addr eth0}
    ${color lightgrey} Down:$color ${downspeed eth0} k/s${color lightgrey} ${offset 70}Up:$color ${upspeed eth0} k/s
    ${color 091124}${downspeedgraph eth0 32,150 lightgrey 00043d} $alignr${color 091124}${upspeedgraph eth0 32,150 lightgrey 00043d}
    ${color lightgrey}Networking (wireless) - $color IP: ${addr wlan0}
    ${color lightgrey} Down:$color ${downspeed wlan0} k/s${color lightgrey} ${offset 70}Up:$color ${upspeed wlan0} k/s
    ${color 091124}${downspeedgraph wlan0 32,150 lightgrey 00043d} $alignr${color 091124}${upspeedgraph wlan0 32,150 lightgrey 00043d}
    ${color lightgrey}Wireless link quality: $color$wireless_link_qual $wireless_link_bar
    ${color lightgrey}Wireless ESSID: $color${wireless_essid}
    ${color 00043d}$stippled_hr
    ${color lightgrey}Battery: $color${battery BAT0} ${battery_bar BAT0}
    ${color 00043d}$stippled_hr
    ${color lightgrey}XMMS $xmms2_status
    $color$xmms2_elapsed/$xmms2_duration $xmms2_bar
    $color$xmms2_smart
    ${color lightgrey}Mixer: $color${mixer} ${mixerbar}
    ${color 00043d}$stippled_hr
    ${color lightgrey}Disk read: $color$diskio_read ${color lightgrey}- Disk write: $color$diskio_write
    ${color 091124}${diskiograph sda lightgrey 00043d}
    ${color lightgrey}File systems:
    ${color lightgrey} / $color${fs_used /}/${fs_size /} ${fs_bar /}
    ${color lightgrey} data $color${fs_used /mnt/data}/${fs_size /mnt/data} ${fs_bar /mnt/data}
    ${color lightgrey} vista $color${fs_used /mnt/vista}/${fs_size /mnt/vista} ${fs_bar /mnt/vista}
    ${color lightgrey} xp $color${fs_used /mnt/xp}/${fs_size /mnt/xp} ${fs_bar /mnt/xp}
    ${color 00043d}$stippled_hr
    ${color lightgrey}System temperatures:
    ${color lightgrey} GPU: $color${hwmon 0 temp 1}°C ${color lightgrey}CPU Core 0: $color${hwmon 1 temp 1}°C ${color lightgrey}CPU Core 1: $color${hwmon 2 temp 1}°C
    ${color 00043d}$stippled_hr
    ${color}Name PID CPU% MEM%
    ${color #308ffd} ${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1}
    ${color lightgrey} ${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2}
    ${color lightgrey} ${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3}
    ${color}Mem usage
    ${color #308ffd} ${top_mem name 1} ${top_mem pid 1} ${top_mem cpu 1} ${top_mem mem 1}
    ${color lightgrey} ${top_mem name 2} ${top_mem pid 2} ${top_mem cpu 2} ${top_mem mem 2}
    ${color lightgrey} ${top_mem name 3} ${top_mem pid 3} ${top_mem cpu 3} ${top_mem mem 3}
    EDIT: Found the error: I had edited the file in mousepad, which couldn't save the "°"'s right..
    Last edited by bozack (2009-09-09 12:45:21)

    nTia89 wrote:
    try to append in the .conkyrc
    the setting:
    override_utf8_locale
    It didn't work - but I might have to say - my locale is danish (in my locale.gen I have the two lines "da_DK.UTF-8 UTF-8" and "da_DK ISO-8859-1" uncommented)..
    Does this make any difference?

  • [SOLVED] Conky Disappears!

    Check it.  I'll start conky, left click in irssi, then left click anywhere on my desktop.  Then, conky disappears!  It still running ofcourse..
    background no
    own_window yes
    own_window_transparent yes
    own_window_type desktop
    double_buffer yes
    update_interval 1
    use_xft yes
    xftfont glisp:size=8
    xftalpha 0.5
    border_margin 2
    border_width 2
    alignment bottom_right
    gap_x 2
    gap_y 2
    TEXT
    ${color #606060}${time} | ${color #606060}${battery} | ${color #606060}${wireless_link_bar wlan0}
    Maybe it's something in my config?
    Thanks!
    //Changing own_window_type to root, and adding own_window_hints undecorate,sticky seems to work!
    Last edited by crispus (2008-10-14 05:34:39)

    I was going to suggest adding
    own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
    but I see that you've already solved it.
    With own_window_hints, you should be able to leave own_window_type as "desktop".

  • (SOLVED) Conky and battery status

    How come this will not work on my system:
    ${color red}$alignc Battery Information
    ${color lightgrey} Currently: $battery
    ${color lightgrey}$stippled_hr
    I have tried a dozen scripts for battery status and nothing works. Does anyone have a sure fire way to get some status from my battery?
    I am using a netbook, pretty standard stuff. I don't know why it won't work. I tried other commands and one returned "U" for unknown battery status and what not. How can I find out what is going on?
    edit:
    Battery: ${battery_percent BAT0}% ${alignr}${battery_bar 8,70 BAT0}
    This displays 0% and an empty bar.
    I went ahead into /proc/acpi/battery and found BAT1 and no BAT0, so I changed the script and I get a percent now...
    This may be solved, but I am going to try the other functions to see if I can get the output I wanted in the first place.
    Why does Conky hate batteries?
    Last edited by Google (2010-07-02 07:16:26)

    "$battery" does not work because it assumes as default BAT0, which you don't have so it will have to be "$battery BAT1". See "man conky" for more info....

  • [Solved] Conky - On Top

    Is it possible to set up conky to be on top of every other application that is running like this?
    I tried many scripts, but when I opened firefox, everything was covered with it's window.
    Thank's.
    Last edited by dudko (2010-11-04 09:14:48)

    Andrwe: Reloged, rebooted...
    I tried it with yours conkyrc, but instead of bottom midlle adligment I used top left. Here is me rc.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <!-- Do not edit this file, it will be overwritten on install.
    Copy the file to $HOME/.config/openbox/ instead. -->
    <openbox_config xmlns="http://openbox.org/3.4/rc">
    <resistance>
    <strength>10</strength>
    <screen_edge_strength>20</screen_edge_strength>
    </resistance>
    <focus>
    <focusNew>yes</focusNew>
    <!-- always try to focus new windows when they appear. other rules do
    apply -->
    <followMouse>no</followMouse>
    <!-- move focus to a window when you move the mouse into it -->
    <focusLast>yes</focusLast>
    <!-- focus the last used window when changing desktops, instead of the one
    under the mouse pointer. when followMouse is enabled -->
    <underMouse>no</underMouse>
    <!-- move focus under the mouse, even when the mouse is not moving -->
    <focusDelay>200</focusDelay>
    <!-- when followMouse is enabled, the mouse must be inside the window for
    this many milliseconds (1000 = 1 sec) before moving focus to it -->
    <raiseOnFocus>no</raiseOnFocus>
    <!-- when followMouse is enabled, and a window is given focus by moving the
    mouse into it, also raise the window -->
    </focus>
    <placement>
    <policy>Smart</policy>
    <!-- 'Smart' or 'UnderMouse' -->
    <center>yes</center>
    <!-- whether to place windows in the center of the free area found or
    the top left corner -->
    <monitor>Active</monitor>
    <!-- with Smart placement on a multi-monitor system, try to place new windows
    on: 'Any' - any monitor, 'Mouse' - where the mouse is, 'Active' - where
    the active window is -->
    <primaryMonitor>1</primaryMonitor>
    <!-- The monitor where Openbox should place popup dialogs such as the
    focus cycling popup, or the desktop switch popup. It can be an index
    from 1, specifying a particular monitor. Or it can be one of the
    following: 'Mouse' - where the mouse is, or
    'Active' - where the active window is -->
    </placement>
    <theme>
    <name>Moka</name>
    <titleLayout>NLIMC</titleLayout>
    <!--
    available characters are NDSLIMC, each can occur at most once.
    N: window icon
    L: window label (AKA title).
    I: iconify
    M: maximize
    C: close
    S: shade (roll up/down)
    D: omnipresent (on all desktops).
    -->
    <keepBorder>yes</keepBorder>
    <animateIconify>yes</animateIconify>
    <font place="ActiveWindow">
    <name>sans</name>
    <size>8</size>
    <!-- font size in points -->
    <weight>bold</weight>
    <!-- 'bold' or 'normal' -->
    <slant>normal</slant>
    <!-- 'italic' or 'normal' -->
    </font>
    <font place="InactiveWindow">
    <name>sans</name>
    <size>8</size>
    <!-- font size in points -->
    <weight>bold</weight>
    <!-- 'bold' or 'normal' -->
    <slant>normal</slant>
    <!-- 'italic' or 'normal' -->
    </font>
    <font place="MenuHeader">
    <name>sans</name>
    <size>9</size>
    <!-- font size in points -->
    <weight>normal</weight>
    <!-- 'bold' or 'normal' -->
    <slant>normal</slant>
    <!-- 'italic' or 'normal' -->
    </font>
    <font place="MenuItem">
    <name>sans</name>
    <size>9</size>
    <!-- font size in points -->
    <weight>normal</weight>
    <!-- 'bold' or 'normal' -->
    <slant>normal</slant>
    <!-- 'italic' or 'normal' -->
    </font>
    <font place="OnScreenDisplay">
    <name>sans</name>
    <size>9</size>
    <!-- font size in points -->
    <weight>bold</weight>
    <!-- 'bold' or 'normal' -->
    <slant>normal</slant>
    <!-- 'italic' or 'normal' -->
    </font>
    </theme>
    <desktops>
    <!-- this stuff is only used at startup, pagers allow you to change them
    during a session
    these are default values to use when other ones are not already set
    by other applications, or saved in your session
    use obconf if you want to change these without having to log out
    and back in -->
    <number>4</number>
    <firstdesk>1</firstdesk>
    <names>
    <!-- set names up here if you want to, like this:
    <name>desktop 1</name>
    <name>desktop 2</name>
    -->
    </names>
    <popupTime>875</popupTime>
    <!-- The number of milliseconds to show the popup for when switching
    desktops. Set this to 0 to disable the popup. -->
    </desktops>
    <resize>
    <drawContents>yes</drawContents>
    <popupShow>Nonpixel</popupShow>
    <!-- 'Always', 'Never', or 'Nonpixel' (xterms and such) -->
    <popupPosition>Center</popupPosition>
    <!-- 'Center', 'Top', or 'Fixed' -->
    <popupFixedPosition>
    <!-- these are used if popupPosition is set to 'Fixed' -->
    <x>10</x>
    <!-- positive number for distance from left edge, negative number for
    distance from right edge, or 'Center' -->
    <y>10</y>
    <!-- positive number for distance from top edge, negative number for
    distance from bottom edge, or 'Center' -->
    </popupFixedPosition>
    </resize>
    <!-- You can reserve a portion of your screen where windows will not cover when
    they are maximized, or when they are initially placed.
    Many programs reserve space automatically, but you can use this in other
    cases. -->
    <margins>
    <top>0</top>
    <bottom>0</bottom>
    <left>0</left>
    <right>0</right>
    </margins>
    <dock>
    <position>Left</position>
    <!-- (Top|Bottom)(Left|Right|)|Top|Bottom|Left|Right|Floating -->
    <floatingX>0</floatingX>
    <floatingY>0</floatingY>
    <noStrut>no</noStrut>
    <stacking>Above</stacking>
    <!-- 'Above', 'Normal', or 'Below' -->
    <direction>Vertical</direction>
    <!-- 'Vertical' or 'Horizontal' -->
    <autoHide>no</autoHide>
    <hideDelay>300</hideDelay>
    <!-- in milliseconds (1000 = 1 second) -->
    <showDelay>300</showDelay>
    <!-- in milliseconds (1000 = 1 second) -->
    <moveButton>Middle</moveButton>
    <!-- 'Left', 'Middle', 'Right' -->
    </dock>
    <keyboard>
    <chainQuitKey>C-g</chainQuitKey>
    <!-- Keybindings for desktop switching -->
    <keybind key="C-A-Left">
    <action name="DesktopLeft">
    <dialog>no</dialog>
    <wrap>no</wrap>
    </action>
    </keybind>
    <keybind key="C-A-Right">
    <action name="DesktopRight">
    <dialog>no</dialog>
    <wrap>no</wrap>
    </action>
    </keybind>
    <keybind key="C-A-Up">
    <action name="DesktopUp">
    <dialog>no</dialog>
    <wrap>no</wrap>
    </action>
    </keybind>
    <keybind key="C-A-Down">
    <action name="De sktopDown">
    <dialog>no</dialog>
    <wrap>no</wrap>
    </action>
    </keybind>
    <keybind key="S-A-Left">
    <action name="SendToDesktopLeft">
    <dialog>no</dialog>
    <wrap>no</wrap>
    </action>
    </keybind>
    <keybind key="S-A-Right">
    <action name="SendToDesktopRight">
    <dialog>no</dialog>
    <wrap>no</wrap>
    </action>
    </keybind>
    <keybind key="S-A-Up">
    <action name="SendToDesktopUp">
    <dialog>no</dialog>
    <wrap>no</wrap>
    </action>
    </keybind>
    <keybind key="S-A-Down">
    <action name="SendToDesktopDown">
    <dialog>no</dialog>
    <wrap>no</wrap>
    </action>
    </keybind>
    <keybind key="W-F1">
    <action name="Desktop">
    <desktop>1</desktop>
    </action>
    </keybind>
    <keybind key="W-F2">
    <action name="Desktop">
    <desktop>2</desktop>
    </action>
    </keybind>
    <keybind key="W-F3">
    <action name="Desktop">
    <desktop>3</desktop>
    </action>
    </keybind>
    <keybind key="W-F4">
    <action name="Desktop">
    <desktop>4</desktop>
    </action>
    </keybind>
    <keybind key="W-d">
    <action name="ToggleShowDesktop"/>
    </keybind>
    <!-- Keybindings for windows -->
    <keybind key="A-F4">
    <action name="Close"/>
    </keybind>
    <keybind key="A-Escape">
    <action name="Lower"/>
    <action name="FocusToBottom"/>
    <action name="Unfocus"/>
    </keybind>
    <keybind key="A-space">
    <action name="ShowMenu">
    <menu>client-menu</menu>
    </action>
    </keybind>
    <!-- Keybindings for window switching -->
    <keybind key="A-Tab">
    <action name="NextWindow"/>
    </keybind>
    <keybind key="A-S-Tab">
    <action name="PreviousWindow"/>
    </keybind>
    <keybind key="C-A-Tab">
    <action name="NextWindow">
    <panels>yes</panels>
    <desktop>yes</desktop>
    </action>
    </keybind>
    <!-- Keybindings for running applications -->
    <keybind key="C-A-t">
    <action name="Execute">
    <startupnotify>
    <enabled>true</enabled>
    <name>Terminal</name>
    </startupnotify>
    <command>gnome-terminal</command>
    </action>
    </keybind>
    <keybind key="C-A-m">
    <action name="Execute">
    <startupnotify>
    <enabled>true</enabled>
    <name>Firefox</name>
    </startupnotify>
    <command>firefox</command>
    </action>
    </keybind>
    <keybind key="C-A-g">
    <action name="Execute">
    <startupnotify>
    <enabled>true</enabled>
    <name>Geditl</name>
    </startupnotify>
    <command>gedit</command>
    </action>
    </keybind>
    </keyboard>
    <mouse>
    <dragThreshold>8</dragThreshold>
    <!-- number of pixels the mouse must move before a drag begins -->
    <doubleClickTime>200</doubleClickTime>
    <!-- in milliseconds (1000 = 1 second) -->
    <screenEdgeWarpTime>400</screenEdgeWarpTime>
    <!-- Time before changing desktops when the pointer touches the edge of the
    screen while moving a window, in milliseconds (1000 = 1 second).
    Set this to 0 to disable warping -->
    <context name="Frame">
    <mousebind button="A-Left" action="Press">
    <action name="Focus"/>
    <action name="Raise"/>
    </mousebind>
    <mousebind button="A-Left" action="Click">
    <action name="Unshade"/>
    </mousebind>
    <mousebind button="A-Left" action="Drag">
    <action name="Move"/>
    </mousebind>
    <mousebind button="A-Right" action="Press">
    <action name="Focus"/>
    <action name="Raise"/>
    <action name="Unshade"/>
    </mousebind>
    <mousebind button="A-Right" action="Drag">
    <action name="Resize"/>
    </mousebind>
    <mousebind button="A-Middle" action="Press">
    <action name="Lower"/>
    <action name="FocusToBottom"/>
    <action name="Unfocus"/>
    </mousebind>
    <mousebind button="A-Up" action="Click">
    <action name="DesktopPrevious"/>
    </mousebind>
    <mousebind button="A-Down" action="Click">
    <action name="DesktopNext"/>
    </mousebind>
    <mousebind button="C-A-Up" action="Click">
    <action name="DesktopPrevious"/>
    </mousebind>
    <mousebind button="C-A-Down" action="Click">
    <action name="DesktopNext"/>
    </mousebind>
    <mousebind button="A-S-Up" action="Click">
    <action name="SendToDesktopPrevious"/>
    </mousebind>
    <mousebind button="A-S-Down" action="Click">
    <action name="SendToDesktopNext"/>
    </mousebind>
    </context>
    <context name="Titlebar">
    <mousebind button="Left" action="Press">
    <action name="Focus"/>
    <action name="Raise"/>
    </mousebind>
    <mousebind button="Left" action="Drag">
    <action name="Move"/>
    </mousebind>
    <mousebind button="Left" action="DoubleClick">
    <action name="ToggleMaximizeFull"/>
    </mousebind>
    <mousebind button="Middle" action="Press">
    <action name="Lower"/>
    <action name="FocusToBottom"/>
    <action name="Unfocus"/>
    </mousebind>
    <mousebind button="Up" action="Click">
    <action name="Shade"/>
    <action name="FocusToBottom"/>
    <action name="Unfocus"/>
    <action name="Lower"/>
    </mousebind>
    <mousebind button="Down" action="Click">
    <action name="Unshade"/>
    <action name="Raise"/>
    </mousebind>
    <mousebind button="Right" action="Press">
    <action name="Focus"/>
    <action name="Raise"/>
    <action name="ShowMenu">
    <menu>client-menu</menu>
    </action>
    </mousebind>
    </context>
    <context name="Top">
    <mousebind button="Left" action="Press">
    <action name="Focus"/>
    <action name="Raise"/>
    <action name="Unshade"/>
    </mousebind>
    <mousebind button="Left" action="Drag">
    <action name="Resize">
    <edge>top</edge>
    </action>
    </mousebind>
    </context>
    <context name="Left">
    <mousebind button="Left" action="Press">
    <action name="Focus"/>
    <action name="Raise"/>
    </mousebind>
    <mousebind button="Left" action="Drag">
    <action name="Resize">
    <edge>left</edge>
    </action>
    </mousebind>
    </context>
    <context name="Right">
    <mousebind button="Left" action="Press">
    <action name="Focus"/>
    <action name="Raise"/>
    </mousebind>
    <mousebind button="Left" action="Drag">
    <action name="Resize">
    <edge>right</edge>
    </action>
    </mousebind>
    </context>
    <context name="Bottom">
    <mousebind button="Left" action="Press">
    <action name="Focus"/>
    <action name="Raise"/>
    </mousebind>
    <mousebind button="Left" action="Drag">
    <action name="Resize">
    <edge>bottom</edge>
    </action>
    </mousebind>
    <mousebind button="Middle" action="Press">
    <action name="Lower"/>
    <action name="FocusToBottom"/>
    <action name="Unfocus"/>
    </mousebind>
    <mousebind button="Right" action="Press">
    <action name="Focus"/>
    <action name="Raise"/>
    <action name="ShowMenu">
    <menu>client-menu</menu>
    </action>
    </mousebind>
    </context>
    <context name="BLCorner">
    <mousebind button="Left" action="Press">
    <action name="Focus"/>
    <action name="Raise"/>
    </mousebind>
    <mousebind button="Left" action="Drag">
    <action name="Resize"/>
    </mousebind>
    </context>
    <context name="BRCorner">
    <mousebind button="Left" action="Press">
    <action name="Focus"/>
    <action name="Raise"/>
    </mousebind>
    <mousebind button="Left" action="Drag">
    <action name="Resize"/>
    </mousebind>
    </context>
    <context name="TLCorner">
    <mousebind button="Left" action="Press">
    <action name="Focus"/>
    <action name="Raise"/>
    <action name="Unshade"/>
    </mousebind>
    <mousebind button="Left" action="Drag">
    <action name="Resize"/>
    </mousebind>
    </context>
    <context name="TRCorner">
    <mousebind button="Left" action="Press">
    <action name="Focus"/>
    <action name="Raise"/>
    <action name="Unshade"/>
    </mousebind>
    <mousebind button="Left" action="Drag">
    <action name="Resize"/>
    </mousebind>
    </context>
    <context name="Client">
    <mousebind button="Left" action="Press">
    <action name="Focus"/>
    <action name="Raise"/>
    </mousebind>
    <mousebind button="Middle" action="Press">
    <action name="Focus"/>
    <action name="Raise"/>
    </mousebind>
    <mousebind button="Right" action="Press">
    <action name="Focus"/>
    <action name="Raise"/>
    </mousebind>
    </context>
    <context name="Icon">
    <mousebind button="Left" action="Press">
    <action name="Focus"/>
    <action name="Raise"/>
    <action name="Unshade"/>
    <action name="ShowMenu">
    <menu>client-menu</menu>
    </action>
    </mousebind>
    <mousebind button="Right" action="Press">
    <action name="Focus"/>
    <action name="Raise"/>
    <action name="ShowMenu">
    <menu>client-menu</menu>
    </action>
    </mousebind>
    </context>
    <context name="AllDesktops">
    <mousebind button="Left" action="Press">
    <action name="Focus"/>
    <action name="Raise"/>
    <action name="Unshade"/>
    </mousebind>
    <mousebind button="Left" action="Click">
    <action name="ToggleOmnipresent"/>
    </mousebind>
    </context>
    <context name="Shade">
    <mousebind button="Left" action="Press">
    <action name="Focus"/>
    <action name="Raise"/>
    </mousebind>
    <mousebind button="Left" action="Click">
    <action name="ToggleShade"/>
    </mousebind>
    </context>
    <context name="Iconify">
    <mousebind button="Left" action="Press">
    <action name="Focus"/>
    <action name="Raise"/>
    </mousebind>
    <mousebind button="Left" action="Click">
    <action name="Iconify"/>
    </mousebind>
    </context>
    <context name="Maximize">
    <mousebind button="Left" action="Press">
    <action name="Focus"/>
    <action name="Raise"/>
    <action name="Unshade"/>
    </mousebind>
    <mousebind button="Middle" action="Press">
    <action name="Focus"/>
    <action name="Raise"/>
    <action name="Unshade"/>
    </mousebind>
    <mousebind button="Right" action="Press">
    <action name="Focus"/>
    <action name="Raise"/>
    <action name="Unshade"/>
    </mousebind>
    <mousebind button="Left" action="Click">
    <action name="ToggleMaximizeFull"/>
    </mousebind>
    <mousebind button="Middle" action="Click">
    <action name="ToggleMaximizeVert"/>
    </mousebind>
    <mousebind button="Right" action="Click">
    <action name="ToggleMaximizeHorz"/>
    </mousebind>
    </context>
    <context name="Close">
    <mousebind button="Left" action="Press">
    <action name="Focus"/>
    <action name="Raise"/>
    <action name="Unshade"/>
    </mousebind>
    <mousebind button="Left" action="Click">
    <action name="Close"/>
    </mousebind>
    </context>
    <context name="Desktop">
    <mousebind button="Up" action="Click">
    <action name="DesktopPrevious"/>
    </mousebind>
    <mousebind button="Down" action="Click">
    <action name="DesktopNext"/>
    </mousebind>
    <mousebind button="A-Up" action="Click">
    <action name="DesktopPrevious"/>
    </mousebind>
    <mousebind button="A-Down" action="Click">
    <action name="DesktopNext"/>
    </mousebind>
    <mousebind button="C-A-Up" action="Click">
    <action name="DesktopPrevious"/>
    </mousebind>
    <mousebind button="C-A-Down" action="Click">
    <action name="DesktopNext"/>
    </mousebind>
    <mousebind button="Left" action="Press">
    <action name="Focus"/>
    <action name="Raise"/>
    </mousebind>
    <mousebind button="Right" action="Press">
    <action name="Focus"/>
    <action name="Raise"/>
    </mousebind>
    </context>
    <context name="Root">
    <!-- Menus -->
    <mousebind button="Middle" action="Press">
    <action name="ShowMenu">
    <menu>client-list-combined-menu</menu>
    </action>
    </mousebind>
    <mousebind button="Right" action="Press">
    <action name="ShowMenu">
    <menu>root-menu</menu>
    </action>
    </mousebind>
    </context>
    <context name="MoveResize">
    <mousebind button="Up" action="Click">
    <action name="DesktopPrevious"/>
    </mousebind>
    <mousebind button="Down" action="Click">
    <action name="DesktopNext"/>
    </mousebind>
    <mousebind button="A-Up" action="Click">
    <action name="DesktopPrevious"/>
    </mousebind>
    <mousebind button="A-Down" action="Click">
    <action name="DesktopNext"/>
    </mousebind>
    </context>
    </mouse>
    <menu><!-- You can specify more than one menu file in here and they are all loaded,
    just don't make menu ids clash or, well, it'll be kind of pointless --><!-- default menu file (or custom one in $HOME/.config/openbox/) --><file>menu.xml</file><hideDelay>200</hideDelay><!-- if a press-release lasts longer than this setting (in milliseconds), the
    menu is hidden again --><middle>no</middle><!-- center submenus vertically about the parent entry --><submenuShowDelay>200</submenuShowDelay><!-- time to delay before showing a submenu after hovering over the parent
    entry.
    if this is a negative value, then the delay is infinite and the
    submenu will not be shown until it is clicked on --><submenuHideDelay>400</submenuHideDelay><!-- time to delay before hiding a submenu when selecting another
    entry in parent menu -->
    if this is a negative value, then the delay is infinite and the
    submenu will not be hidden until a different submenu is opened -->
    <applicationIcons>yes</applicationIcons>
    <!-- controls if icons appear in the client-list-(combined-)menu -->
    <manageDesktops>yes</manageDesktops>
    <!-- show the manage desktops section in the client-list-(combined-)menu -->
    </menu>
    <application name="Conky">
    <decor>no</decor>
    <desktop>all</desktop>
    <layer>above</layer>
    <skip_taskbar>yes</skip_taskbar>
    </application>
    </openbox_config>
    Last edited by dudko (2010-03-05 17:05:37)

  • [SOLVED] Conky question

    Is there a way to show the gateway address in the conkyrc file just like you can with an eth0 address?
    Last edited by tyndallc (2010-03-11 21:35:59)

    1. Conky has a manual. It is made of win and text.
    2. If solved, mark thread as solved. Kthxbai.

  • [Solved]Conky says it's 3 hours in the future...

    I'm using a straight up OpenBox desktop and I have been fiddling with conky for a little while. For some reason (and yes, I did a locale-gen, and checked to see that my timezone was set to US/Eastern in rc.conf) Conky, and only Conky, seems to think it is currently 5 pm, when it is just 2 pm.
    Here's my ~/.conkyrc
    #= Conky Options =#
    #=================#
    ## Behaviour
    double_buffer yes
    #no_buffers yes
    update_interval 0.75
    cpu_avg_samples 2
    total_run_times 0
    ## Look
    background no
    draw_borders no
    draw_shades no
    border_margin 8
    border_width 0
    draw_graph_borders yes
    draw_outline no
    default_color black
    default_outline_color black
    default_shade_color black
    color0 4c4c4c
    ## Position & Size
    alignment top_left
    gap_x 50
    gap_y 50
    maximum_width 275
    minimum_size 1250
    ## Font
    #use_xft yes
    #xftalpha 1.0
    #xftfont Vibrocentric:pixelsize=12
    font Sans
    ## Window options
    own_window yes
    own_window_transparent yes
    own_window_type normal
    own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
    #= Displayed Text =#
    #==================#
    TEXT
    ${alignc}$sysname $kernel ($machine)
    ${alignc}${exec whoami} @ $nodename
    ${color0}${alignc}${time %B %d. %Y} | ${color0}${alignc}${time %I:%M:%S}${color}
    $hr
    ${color0}${alignc}-[ sysinfo ]-${color}
    ${color0}UPTIME: ${color}$uptime
    ${color0}CPU: ${color}${freq}MHz (${freq_g}GHz)
    ${color0}RAM: ${color}${memmax}
    ${color0}CPU: ${color}${cpu}% ${cpubar}$
    ${color0}RAM: ${color}${mem}/${memmax}(${memperc}%) ${membar}$
    ${color0}SWP: ${color}${swap}/${swapmax} (${swapperc}%) ${swapbar}$
    $hr
    ${color0}${alignc}-[ battery info ]-${color}
    ${color0} AC: ${color0}${acpiacadapter}
    ${color0} Charge: ${color}${battery_percent BAT0} %
    ${color0} Time remaining: ${color}${battery_time BAT0}
    $hr
    ${color0}${alignc}-[ filesystems ]-${color}
    ${color0}/-------- ${color}${fs_free /}${tab 20}/${tab 5}${fs_size /} ${fs_bar /}
    ${color0}/home---- ${color}${fs_free /home}${tab 20}/${tab 5}${fs_size /home} ${fs_bar /home}
    ${color0}/boot---- ${color}${fs_free /boot}${tab 20}/${tab 5}${fs_size /boot} ${fs_bar /boot}
    ${color0}/Windows- ${color}${fs_free /media/disk}${tab 20}/${tab 5}${fs_size /media/disk} ${fs_bar /media/disk}
    $hr
    ${color0}${alignc}-[ network ]-${color}
    ${color0}Hostname: ${color}${nodename}
    ${color0}Network Name: ${color}${wireless_essid wlan0}
    ${color0}Link Quality: ${color}${wireless_link_qual_perc wlan0}
    ${color0}currin: ${color}${downspeedf wlan0} kB/s${alignr}${color0}total-in: ${color}${totaldown wlan0}
    ${color0}currout: ${color}${upspeedf wlan0} kB/s${alignr}${color0}total-out: ${color}${totalup wlan0}
    $hr
    ${color0}${alignc}-[ processes ]-${color}
    ${color0}total: ${color}${processes}${alignr}${color0}running: ${color}${running_processes}
    ${color0}top 3 (cpu):${color}
    ${top name 1}${tab 15}${top pid 1}${tab 25} ${top cpu 1}%
    ${top name 2}${tab 15}${top pid 2}${tab 25} ${top cpu 2}%
    ${top name 3}${tab 15}${top pid 3}${tab 25} ${top cpu 3}%
    ${color0}top 3 (mem):${color}
    ${top_mem name 1}${tab 15}${top_mem pid 1}${tab 25} ${top_mem mem 1}%
    ${top_mem name 2}${tab 15}${top_mem pid 2}${tab 25} ${top_mem mem 2}%
    ${top_mem name 3}${tab 15}${top_mem pid 3}${tab 25} ${top_mem mem 3}%
    The time code was originally {time %B %d. %Y | %I:%M:%S} I expanded it to see if it might have been the issue.  It wasn't, so in the course of writing this post, I swapped it back.
    Tint2 doesn't have this issue, but I feel that the time off to the side disrupts the look of the bar. I haven't tinkered with it enough to put the time in the center, between the two desktop bars, if it is even possible. 
    Ok.. I just double checked myself to make sure that tint2 wasn't displaying incorrectly, and it is, so this is something other than just conky. Hmm... I did just reset my locale, maybe a restart would help. (That sounds like typical Windows advice!)
    I will report back after the reboot.
    BRB
    Update:
    Restart did not fix the issue. I do find this a little strange that my clock is telling me that I am sitting in the center of the Atlantic Ocean, and I have no way of resetting it.
    Ok...   easiest  solve ever. I feel like an idiot.
    sudo date MMDDhhmm
    Got it here http://www.linuxsa.org.au/tips/time.html#wrongtime
    Last edited by LeoSolaris (2009-01-12 19:33:19)

    dhave wrote:
    LeoSolaris wrote:Conky says it's 3 hours in the future...
    Hmm. This could be a good thing. What does Conky say about the Dow Jones Industrial Average three hours from now? And I'd like to check back with you on Superbowl Sunday, if I may....
    Dow 1.53% down.  I am sure the Superbowl's scores will be coming in on schedule.
    Thanks for the note about time sync'ing. I may just do that.
    Last edited by LeoSolaris (2009-01-13 00:45:19)

  • [Solved] Conky cpu temp config.

    I am trying to get conky to display my cpu temp from my Asus Sabertooth 990X motherboard.
    [neil@sabertooth ~]$ sensors
    fam15h_power-pci-00c4
    Adapter: PCI adapter
    power1: 11.99 W (crit = 95.04 W)
    k10temp-pci-00c3
    Adapter: PCI adapter
    temp1: +6.8°C (high = +70.0°C)
    (crit = +90.0°C, hyst = +87.0°C)
    nouveau-pci-0100
    Adapter: PCI adapter
    temp1: +49.0°C (high = +100.0°C, crit = +110.0°C)
    it8721-isa-0290
    Adapter: ISA adapter
    in0: +2.80 V (min = +2.00 V, max = +1.50 V) ALARM
    in1: +2.86 V (min = +2.45 V, max = +2.99 V)
    in2: +1.01 V (min = +3.05 V, max = +2.47 V) ALARM
    +3.3V: +3.36 V (min = +0.36 V, max = +3.72 V)
    in4: +0.65 V (min = +2.87 V, max = +2.77 V) ALARM
    in5: +2.51 V (min = +2.84 V, max = +1.22 V) ALARM
    in6: +2.06 V (min = +2.29 V, max = +2.28 V) ALARM
    3VSB: +2.52 V (min = +5.88 V, max = +4.56 V) ALARM
    Vbat: +3.31 V
    fan1: 0 RPM (min = 14 RPM) ALARM
    fan2: 0 RPM (min = 20 RPM) ALARM
    fan3: 0 RPM (min = 11 RPM) ALARM
    temp1: +33.0°C (low = -5.0°C, high = +127.0°C) sensor = thermistor
    temp2: +29.0°C (low = -9.0°C, high = -6.0°C) sensor = thermistor
    temp3: -128.0°C (low = -34.0°C, high = -66.0°C) sensor = disabled
    intrusion0: OK
    Conky config line at the moment;
    ${execi 60 sensors | grep "temp1:"} °C
    gives me;
    The problem is that there are 3x'temp1' possibilities.
    I want to display this 'temp1';
    temp1:        +33.0°C  (low  =  -5.0°C, high = +127.0°C)  sensor = thermistor
    How do I set the cony config line to display this thermistor?
    Last edited by ancleessen4 (2012-04-16 19:51:31)

    Thanks to some further input from the guys over at Archbang and some further research I found the solution (a) to remove the weird 'A' character;
    http://crunchbanglinux.org/forums/topic … ut-solved/
    So, in conky I had to change;
    override_utf8_locale no
    to
    override_utf8_locale yes
    And (b) just for reference, I now have two options for cpu temp;
    CPU temp option1:$alignr${hwmon 4 temp 1}°C
    CPU temp option2:$alignr${execi 10 sensors | grep ^temp1 | tail -n 1 |awk '{print $2}'}
    Thanks for all the help everybody.

  • [SOLVED] Conky troubles with Gnome

    I don't know if I am making some obvious, easily correctable mistake, or if this is a known bug. I have looked on the wiki and all I could find about Conky on Gnome was a short little thing that caused this problem:
    http://imgur.com/jQPBsDq
    Here is my .conkyrc file:
    # Conky, a system monitor, based on torsmo
    # Any original torsmo code is licensed under the BSD license
    # All code written since the fork of torsmo is licensed under the GPL
    # Please see COPYING for details
    # Copyright (c) 2004, Hannu Saransaari and Lauri Hakkarainen
    # Copyright (c) 2005-2010 Brenden Matthews, Philip Kovacs, et. al. (see AUTHORS)
    # All rights reserved.
    # This program is free software: you can redistribute it and/or modify
    # it under the terms of the GNU General Public License as published by
    # the Free Software Foundation, either version 3 of the License, or
    # (at your option) any later version.
    # This program is distributed in the hope that it will be useful,
    # but WITHOUT ANY WARRANTY; without even the implied warranty of
    # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
    # GNU General Public License for more details.
    # You should have received a copy of the GNU General Public License
    # along with this program. If not, see <http://www.gnu.org/licenses/>.
    own_window yes
    own_window_type conky
    own_window_transparent yes
    own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
    alignment lower_right
    background yes
    border_width 1
    cpu_avg_samples 2
    default_color white
    default_outline_color white
    default_shade_color white
    draw_borders no
    draw_graph_borders yes
    draw_outline no
    draw_shades no
    use_xft yes
    xftfont DejaVu Sans Mono:size=12
    gap_x 5
    gap_y 60
    minimum_size 5 5
    net_avg_samples 2
    no_buffers yes
    out_to_console no
    out_to_stderr no
    extra_newline no
    stippled_borders 0
    update_interval 1.0
    uppercase no
    use_spacer none
    show_graph_scale no
    show_graph_range no
    TEXT
    ${scroll 16 $nodename - $sysname $kernel on $machine | }
    $hr
    ${color grey}Uptime:$color $uptime
    ${color grey}Frequency (in MHz):$color $freq
    ${color grey}Frequency (in GHz):$color $freq_g
    ${color grey}RAM Usage:$color $mem/$memmax - $memperc% ${membar 4}
    ${color grey}Swap Usage:$color $swap/$swapmax - $swapperc% ${swapbar 4}
    ${color grey}CPU Usage:$color $cpu% ${cpubar 4}
    ${color grey}Processes:$color $processes ${color grey}Running:$color $running_processes
    $hr
    ${color grey}File systems:
    / $color${fs_used /}/${fs_size /} ${fs_bar 6 /}
    ${color grey}Networking:
    Up:$color ${upspeed eth0} ${color grey} - Down:$color ${downspeed eth0}
    $hr
    ${color grey}Name PID CPU% MEM%
    ${color lightgrey} ${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1}
    ${color lightgrey} ${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2}
    ${color lightgrey} ${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3}
    ${color lightgrey} ${top name 4} ${top pid 4} ${top cpu 4} ${top mem 4}
    Has anyone else discovered a way to make conky work transparently with Gnome as a DE?
    Thanks for the help!
    Last edited by treeman1111 (2013-02-17 22:21:02)

    treeman1111 wrote:All you do is follow me around and tell me what I am doing wrong.
    Thats because you keep exhibiting the same behaviours, despite being asked not to.
    I'll link you (again) to the Forum Etiquette. Please read all of it.
    Don't expect that help vampirism will be tolerated here, it won't.
    I'll also remind you of the Arch Way
    This user-centric design necessarily implies a certain "do-it-yourself" approach to using the Arch distribution. Rather than pursuing assistance or requesting a new feature to be implemented by developers, Arch Linux users have a tendency to solve problems themselves and generously share the results with the community and development team – a "do first, then ask" philosophy.

  • [SOLVED] Conky: After 2.6.37 update, conky no longer shows temperature

    Well, the title is quite self-explanatory but I'd also like to add that:
    I noticed that conky reads correct values and after exactly 3 refreshes it just displays 0, no matter how long is the update interval.
    /sys/class/hwmon displays correct values, and 'acpi -t' also does too (they are always the same).
    My conky config had $acpitemp before the update, and after the update I had to change it to ${hwmon 0 temp 1} because $acpitemp displayed no values whatsoever.
    My .conkyrc in case anyone is interested:
    out_to_x no
    alignment bottom_left
    background no
    border_width 0
    cpu_avg_samples 2
    default_color white
    default_outline_color white
    default_shade_color white
    disable_auto_reload yes
    draw_borders no
    draw_graph_borders yes
    draw_outline no
    draw_shades no
    double_buffer yes
    use_xft yes
    xftfont Clean:size=10
    gap_x 0
    gap_y 0
    minimum_size 5 15
    net_avg_samples 2
    no_buffers no
    out_to_stderr no
    extra_newline no
    own_window no
    own_window_class Conky
    own_window_type desktop
    own_window_transparent no
    own_window_colour 222222
    stippled_borders 0
    update_interval 2
    uppercase no
    use_spacer none
    show_graph_scale no
    show_graph_range no
    out_to_console yes
    TEXT
    ${hwmon 0 temp 1}C \
    $battery \
    ${wireless_essid wlan0} (${wireless_link_qual_perc wlan0}%) \
    $if_mpd_playing \
    ${mpd_smart 30}\
    $endif \
    | ${time %a %d %b %Y %H:%M}
    My final conclusion is that the problem is with conky itself, but this guy here managed to get it working:
    https://bbs.archlinux.org/viewtopic.php?id=111408
    EDIT: After posting here I thought "why don't I take out all these X related options?" and finally did it after so much time. And it worked, but I dunno why.
    I also tried your suggestion, litemov, but it didn't show anything at all (not even that 0), but thanks anyway
    Final .conkyrc
    out_to_x no
    update_interval 2
    out_to_console yes
    TEXT
    ${hwmon 0 temp 1}C \
    $battery \
    ${wireless_essid wlan0} (${wireless_link_qual_perc wlan0}%) \
    $if_mpd_playing \
    ${mpd_smart 30}\
    $endif \
    | ${time %a %d %b %Y %H:%M}
    Last edited by Fadel (2011-01-31 18:45:50)

    I'm using:
    ${platform coretemp.0 temp 1}
    Does that do anything for you?

  • [SOLVED] conky-lua build fails due to toluapp package issues

    I am trying to install conky-lua from AUR on 64 bit Arch and failing miserably.
    When running the following:
    yaourt -Sy conky-lua
    I get the following error:
    /usr/bin/ld: /usr/lib/gcc/x86_64-unknown-linux-gnu/4.4.2/../../../../lib/libtolua++.a(tolua_is.o): relocation R_X86_64_32S against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
    /usr/lib/gcc/x86_64-unknown-linux-gnu/4.4.2/../../../../lib/libtolua++.a: could not read symbols: Bad value
    collect2: ld returned 1 exit status
    make[1]: *** [libcairo.la] Error 1
    make[1]: Leaving directory `/tmp/yaourt-tmp-mark/aur-conky-lua/conky-lua/src/conky-1.7.2/lua'
    make: *** [all-recursive] Error 1
    ==> ERROR: Build Failed.
    Aborting...
    Error: Makepkg was unable to build conky-lua package.
    I have read through what search results I can find on the topic (both here and via google) and have attempted to remedy the situation by adding build options to the toluapp build to provide for the conky-lua build. I have tried this by adding CCFLAGS = '-fPIC' to the scons call in the PKGBUILD file, I have also tried editing the config_linux.py file, which sits along side the main build file, to include the -fPIC switch also, which doesn't work either. i.e. I have this in the config_linux.py now:
    CCFLAGS = ['-O2', '-ansi', '-Wall', '-fPIC']
    Which doesn't work, it results in:
    ==> Validating source files with md5sums...
    tolua++-1.0.93.tar.bz2 ... Passed
    config_linux.py ... FAILED
    ==> ERROR: One or more files did not pass the validity check!
    Error: Makepkg was unable to build toluapp package.
    Can someone help me through a build as I have never come across scons before and maybe I am providing directives to the toluapp build incorrectly? I am still thinking in "make" terms...
    I NEED lua in conky
    Thanks in advance
    Regards,
    Kaivalagi
    Last edited by kaivalagi (2009-11-11 07:32:04)

    I was asked by email on what exactly I did to get conky-lua installed and working on 64bit Arch, so I thought I would post my reply below in case it is of help to anyone else. Cheers
    Run "yaourt -S conky-lua". Amongst other things this will try to install a dependancy which you need to mess about with, the package you need to edit is "toluapp".
    When the "toluapp" package is downloaded by yaourt answer y to the edit question and provide something like gedit or kate as the editor to use
    You'll now see the PKGBUILD file in the editor, this doesn't need editing just yet. But if you open file from the editor you'll see the directory thie PKGBUILD is in, and you want to edit the config_linux.py file you'll see there.
    You should see this line in the config_linux.py file:
    CCFLAGS = ['-O2', '-ansi', '-Wall']
    Change it so it is like this:
    CCFLAGS = ['-O2', '-ansi', '-Wall', '-fPIC']
    Now, back to the PKGBUILD file, you'll see this line:
    md5sums=('100aa6907b8108582080b37d79c0afd7' 'bab107cdd2d18d3453a2344341b77c45')
    These checksums line up with tarball and config_linux.py files, and this will stop you're edit from working if not amended because the .py file isn't what it should be, we changed it. So run md5sum against the .py file and update the second checksum in the line appropriately.
    Carry on with the package installation and conky should have lua support
    Last edited by kaivalagi (2010-01-14 08:50:55)

Maybe you are looking for

  • Help With creating a trigger

    Hello All! I am writing regarding a trigger I must create. I have a table that has roughly 10 columns. I must insert rows into a 'history' table when any column in the parent table is updated or, of course if there is an insert on the parent table. I

  • Why can't I change my smart phone to a different phone i own

    I want to deactivate my iPhone 4S and reactivate my Samsung Galaxy S4 on my account but the My Verizon system says I don't have any other Smart Phones on my account. Suggestions besides using a big hammer to get the My Verizon systems attention?

  • What are these model numbers??

    Hi All, i have a system generated report(from Push-Mail Server)...which has a column named models, these numbers are 704.11 705.18 701.341 508.11 801.293 507.77 701.4 703.144 may i know what each number means??...how they differ to each other??...I t

  • Polling JMX monitor

    I'm looking for a tool that can pull data from an RMI JMX connection and use it for generating alerts and storing historical JMX attributes. I've seen many solutions that want to "push" the data via a Java agent to their monitoring servers but I have

  • INTER CO /DEBIT MEMO

    in case of inter company billing is it possible to create both debit/credit memo....?if not why...