Saturday, May 6, 2017

Conkyé ç½

Conky配ç½


Conky??????X-window??????????????????????????????????shell?????conky????????????????Conky?????????????????????????????????????????Conky????????????

????????shell???????????????????conkey?

1???conky?

???????su????root?????

????
apt-get install conky

????conky?????????
???????

2???conky

Conky ????????????????????????????????????????????????????????

zcat /usr/share/doc/conky/examples/conky.conf.gz > ~/.conkyrc

???????????????????????????????????????????????????????????????????Conky?????????????????????????????????????????

????????Conky????????????????????????

???Conky?????????????????Conky????????????????????????????Conky?????????Conky??????????

????????????????

1?background no????????“no”??????“yes”?????

2?out_to_console no????????????????Conky???????????????“no”???

3?use_xft yes?????xft??????“yes”?

4?xftfont Monospace_size=8???????????????????????????????????????????????????????????????????????“Monospace”??????“8”?

5?update_interval 1??????Conky??????????????????????????????????????????????????????????????????????????????????????????1??

6?minimum_size 280 5???Conky???????????280????????5?????????????????????“#”???????

7?maximum_width 308?Conky????????308???????????????Conky????

8?default_color white???Conky????????????????????????????????????????????????“white”?????16??????????“#0A0F00”?

9?gap_x 10
gap_y 10???????Conky???????????????????10???
alignment top_right???Conky????????????“top_right”???????????“bottom_left”?????

10?uppercase no??????“yes”????????????????

??????????????

Conky???????????????????????“TEXT”??????????Conky????????????????Conky??????????

?????????????????????????????“$”???????“{}”???“${}”????????????

???????????????????????????????

${color #5000a0}

???16??????X?????????????

${color snow}

????/etc/X11/rgb.txt???????????

????????????

${font Monospace_style=Bold:size=10}

????????????????????????????

${alignr}????????????????${alignl}??????${alignc}???????

???????${}?????????????????Conky?????????????????????????“white”????????????????????????????????????????????????

???Conky???????????????????????Conky????????????????

????????????????????????????????

${???? ??}

??????????????

$????

????

???????????????????

1?time???strftime???????????????????????????????????????????

${color lightgrey}${font Monospace_style=Bold:size=8}${time %b%d???%a}${alignr}${time %p%l:%M:%S}

??????Monospace??????8?????????lightgrey????????????????12??????????????

2?nodename???????????
sysname??Linux?
kernel??????
machine?????????i686?

3?stippled_hr??????????????????????

4?uptime??????????

5?cpu?CPU????????
cpubar?CPU?????????
cpugraph?CPU???????????????????????????????

${cpugraph 000000 5000a0}

6?mem??????????
memmax??????
memperc???????????
swap?swapmax?swapperc???????????

7?processes??????????
running_processes????????

8?addr ppp0???ADSL????????IP???“addr eth0”??????????IP???

9?offset 70??????????????70???

10?downspeed eth0????????????????
upspeed eth0????????????????
downspeedgraph eth0 32,150 ff0000 0000ff???????????????????????32??????150?????????????????
upspeedgraph eth0 …??????

11?fs_used /home??????/home??????????????
fs_size /home??????/home?????????????
fs_bar /home????????????/home??????????????

12?top name 1??CPU??????????????????????
top mem 2??CPU?????????????????????????
top pid 3??CPU???????????????????pid??
top cpu 4??CPU???????????????????CPU????
top_mem????????????????

13?mpd_status???mpd????
mpd_elapsed??????????
mpd_length???????????
mpd_bar????????????
mpd_smart?????????????????id3??????”??-??“??????id3????????????????

?mpd??Conky???audacious?bmp?xmms????

14?rss?????feed???????????????????

${rss http://feed.feedsky.com/my_cnbeta 5 item_titles 10}

??????????????????????????????

15?tcp_portmon????????????????IPv4???????

tcp_portmon port_begin port_end item (index)

16????????????fechmail??????????????Conky???????????????????fechmail???????????Conky???????mail???????????????
??????????????????????????Conky??????????

17?exec?????shell?????????????????????

${exec whoami}

????????

18?acpitemp??????CPU????????Conky?????CPU???????

19?diskio????????????
diskiograph??????????????????cpugraph?

?Vim??Conky?????????

??????Vim???Conky????????Vim??“.conkyrc”???????????

????????Vim?Conky?????????????????????????“.vim/syntax”????????????????? “.vim/ftdetect”???????????????“conkyrc.vim”???????????

au BufNewFile,BufRead *conkyrc set filetype=conkyrc

???Conky????????????????

conky????

???????????????????????????????????????????
sudo apt-get install wmctrl
sudo vim /etc/X11/xorg.conf
?Module??????
Load “dbe”
??????

??conky??????
vim ~/.conkyrc
???????
own_window yes
own_window_type override
double_buffer yes
??????

Conky?????

Conky???????????????????????????????????????????Conky?????????????????

Go to link Download