You are not logged in.

#1 2012-03-20 20:57:49

Registered: 2011-03-15
Posts: 20

Conky: How to deal with update_interval + execi

color1 A7C9F1
color1 0085FF
color3 BDE654

background yes
use_xft yes
xftfont Droid Sans:size=8.5
override_utf8_locale yes
default_color EBEBF4
xftalpha 1
total_run_times 0
update_interval 1
text_buffer_size 2048
own_window yes
own_window_transparent no
own_window_color 1C1C1C
own_window_argb_visual yes
own_window_argb_value 165
own_window_type desktop
own_window_hints undecorate,below,sticky,skip_taskbar,skip_pager
minimum_size 1400 15
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
alignment top_left
gap_x 0
gap_y 0 
mpd_port IZ SECRET!!11!!

${if_mpd_playing}${font DejaVu Sans:bold:size=8}$color1 ♪ $font$color \
${mpd_title}${else}$color1${offset 5}${voffset 3}•$color ${font Droid Sans:size=7.5} \
${voffset 0}CPU$font ${voffset -2}${cpu cpu0}%${endif}$alignc \
${font Corbel:bold:size=10}${voffset 2}$color1λ  $color$font${voffset -2}\
${exec xprop -id $(xprop -root _NET_ACTIVE_WINDOW | cut -d ' ' -f 5) _NET_WM_NAME | sed 's/.*"\(.*\)"[^"]*$/\1/' }\
$alignr${offset -25}${voffset -1}${time %A} $color1•$color ${time %B %d} $color1•$color\
${time %H:%M }

I want:
1:: My xprop command to update every 1 second.
2:: My Mpd/Cpu if_else_endif statement to update every 5 seconds.

Execi can't be executed less often than update_interval.
You can't nest if-else-endif statements into a $execi.

So... ? I'm stuck. Halp!


Board footer

Powered by FluxBB