update
[dotFiles.git] / home / .conkyrc
blobdfe146e28b24ca941d83c1aeba98333feda3cae4
1 background no
2 override_utf8_locale yes
3 font Sans:size=9
4 xftfont Sans:size=9
5 use_xft yes
6 xftalpha 0.6
8 update_interval 1.0
9 total_run_times 0
10 own_window yes
11 own_window_type override
12 own_window_transparent yes
13 own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
14 double_buffer yes
15 draw_shades no
16 draw_outline no
17 draw_borders no
18 draw_graph_borders yes
20 alignment bottom_left
21 gap_x 5
22 gap_y 0
23 no_buffers yes
24 cpu_avg_samples 2
25 uppercase no
26 use_spacer none
27 out_to_console no
28 out_to_stderr no
29 out_to_stderr no
31 default_color lightgrey
32 default_shade_color black
33 default_outline_color grey70
35 mpd_host 127.0.0.1
37 TEXT
38 ${if_mpd_playing} [ ${mpd_status} - ${mpd_elapsed}/${mpd_length} ] ${scroll 50 5 ${mpd_smart}} | ${endif} \
39 ${execi 600 curl -s --connect-timeout 30 "http://wap.weather.com.cn/data/sk/101020100.html" >/tmp/current }${execi 6000 curl -s --connect-timeout 30 "http://m.weather.com.cn/data/101020100.html" >/tmp/forcast } \
40 ${color slate grey}${font LiHei Pro:size=9}上海: ${color}${execi 600 sed  's/^.*"img_title_single":"//' /tmp/forcast | sed 's/",".*$//' } ${execi 600 sed  's/^.*"temp":"//' /tmp/current | sed 's/",".*$//' }℃ ${execi 600 sed  's/^.*"WD":"//' /tmp/current | sed 's/",".*$//' }, ${execi 600 sed  's/^.*"time":"//' /tmp/current | sed 's/",".*$//' } \
41 ${color slate grey} ${font LiHei Pro:size=9}今日: ${color}${execi 600 sed  's/^.*"weather1":"//' /tmp/forcast | sed 's/",".*$//' } ${execi 600 sed  's/^.*"temp1":"//' /tmp/forcast | sed 's/",".*$//' }${color slate grey} ${font LiHei Pro:size=9} \
42 ${font LiHei Pro:size=9}明日: ${color}${execi 600 sed  's/^.*"weather2":"//' /tmp/forcast | sed 's/",".*$//' } ${execi 600 sed  's/^.*"temp2":"//' /tmp/forcast | sed 's/",".*$//' }${color slate grey}${font LiHei Pro:size=9} \
43 ${font LiHei Pro:size=9}后日: ${color}${execi 600 sed  's/^.*"weather3":"//' /tmp/forcast | sed 's/",".*$//' } ${execi 600 sed  's/^.*"temp3":"//' /tmp/forcast | sed 's/",".*$//' }${color slate grey}${font LiHei Pro:size=9} | \
44 ${color slate grey}Kernel: ${color}$kernel | \
45 ${color slate grey}${font}Processes: $processes($running_processes) | \
46 IO Read: $diskio_read | \
47 IO Write: $diskio_write | \
48 NET Down: ${color}${downspeed enp3s0}${color slate grey}/ ${totaldown enp3s0} | NET Up ${color}${upspeed enp3s0}${color slate grey}/ ${totalup enp3s0}