Conky的配置

# set to yes if you want Conky 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 6x10
#font 7x13
#font 8x13
#font 7x12
#font *mintsmild.se*
#font -*-*-*-*-*-*-34-*-*-*-*-*-*-*
#font -artwiz-snap-normal-r-normal-*-*-100-*-*-p-*-iso8859-1
# Use Xft?
use_xft yes
# Xft font when Xft is enabled
xftfont Sans:size=11
own_window_argb_visual yes
#own_window_colour hotpink
# Text alpha when using Xft
xftalpha 0.8
# on_bottom yes
# 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
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
#own_window_type override
own_window_type normal
# Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes
# Minimum size of text area
minimum_size 360 5
maximum_width 400
# Draw shades?
draw_shades no
# Draw outlines?
draw_outline no
# Draw borders around text
draw_borders no
# Stippled borders?
stippled_borders no
# border margins
border_margin 4
# border width
border_width 1
# Default colors and also border colors
default_color white
default_shade_color white
default_outline_color white
# Text alignment, other possible values are commented
#alignment top_left
#minimum_size 10 10
gap_x 10
gap_y 35
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
ppercase no
# none, xmms, bmp, audacious, infopipe (default is none)
# xmms_player bmp


TEXT
${color green}系統(tǒng) ${hr 1}
Time:$alignr${time %Y年%m月%d日}$alignc   ${time %H:%M:%S}$alignr   Week:${time %A}
Hostname: $alignr$nodename
Kernel: $alignr$kernel
Machine:$alignr$machine
Uptime: $alignr$uptime
Temp: ${alignr}${acpitemp} °C
Battery:$alignr${battery_percent BAT0}%
###############

${color green}網(wǎng)絡(luò) ${hr 1}
ppp0 IP: ${alignr} ${addr ppp0}
# enp3s0f1 IP: ${alignr} ${addr enp3s0f1}
GateWay: ${alignr} $gw_ip
Down   ${downspeed ppp0} /S ${alignr} Total ${totaldown ppp0}
${downspeedgraph ppp0 60}
Up     ${upspeed ppp0} /S ${alignr}Total ${totalup ppp0}
${upspeedgraph ppp0 60}
WIFI     ${upspeed wlp2s0} /S ${alignr}Total ${totalup wlp2s0}
${upspeedgraph wlp2s0 60}

${color green}核心狀態(tài)${hr 1}
${color green}Core 1: ${freq_g 1}GHz (${cpu cpu1}%)${color 9932CC} ${alignr 180}${cpubar cpu1 8}
${color green}Core 2: ${freq_g 2}GHz (${cpu cpu2}%)${color 9932CC} ${alignr 180}${cpubar cpu2 8}
${color green}Core 3: ${freq_g 3}GHz (${cpu cpu1}%)${color 9932CC} ${alignr 180}${cpubar cpu3 8}
${color green}Core 4: ${freq_g 4}GHz (${cpu cpu1}%)${color 9932CC} ${alignr 180}${cpubar cpu4 8}
${color green}本機(jī)內(nèi)存:$memperc%${color} $alignr$mem/$memmax
${color 9932CC} ${membar 8}
${color green} 系統(tǒng)分區(qū):$fs_used_perc% ${color} $alignr${fs_used /}/${fs_size /}
${color 9932CC} ${fs_bar 8 /}
${color green} 交換分區(qū):  $swapperc% ${alignr} ${color}$swap / $swapmax
${color 9932CC} ${swapbar 8}

${color green} 文件系統(tǒng) ${hr 1}
${color green} Disk  I/O: ${alignr}$diskio
${color green} Root: ${alignr}${fs_free /} / ${fs_size /}
${color 9932CC} ${fs_bar 8 /}
${color green} Home: ${alignr}${fs_free /home} / ${fs_size /home}
${color 9932CC} ${fs_bar 8 /home}


# WEATHER ${hr 2}
# ${execi 300 curl -s "http://weather.yahooapis.com/forecastrss?w=866625&u=c" -o ~/.cache/weather.xml}${font Open Sans Light:size=15}${execi 300 grep "yweather:location" ~/.cache/weather.xml | grep -o "city=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*"}, ${execi 300 grep "yweather:location" ~/.cache/weather.xml | grep -o "country=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*"}${font}
# ${font Open Sans Light:size=70}${alignr}${execi 300 grep "yweather:condition" ~/.cache/weather.xml | grep -o "temp=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*"}°${font}${voffset -35}
# ${execi 300 cp -f ~/.conky-google-now/$(grep "yweather:condition" ~/.cache/weather.xml | grep -o "code=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*").png ~/.cache/weather.png}${image ~/.cache/weather.png -p 0,355 -s 60x60}
# ${execi 300 grep "yweather:condition" ~/.cache/weather.xml | grep -o "text=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | tr '[a-z]' '[A-Z]'}
# ${image ~/.conky-google-now/wind.png -p 0,427 -s 15x15}${goto 23}${execi 300 grep "yweather:wind" ~/.cache/weather.xml | grep -o "speed=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*"}${execi 300 grep "yweather:units" ~/.cache/weather.xml | grep -o "speed=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*"}
# ${image ~/.conky-google-now/humidity.png -p 0,443 -s 15x15}${goto 23}${execi 300 grep "yweather:atmosphere" ~/.cache/weather.xml | grep -o "humidity=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*"}%${voffset 15}
# ${goto 10}${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "day=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==1' | tr '[a-z]' '[A-Z]'}${goto 78}${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "day=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==2' | tr '[a-z]' '[A-Z]'}${goto 148}${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "day=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==3' | tr '[a-z]' '[A-Z]'}${goto 208}${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "day=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==4' | tr '[a-z]' '[A-Z]'}
# ${voffset 10}
# ${execi 300 cp -f ~/.conky-google-now/$(grep "yweather:forecast" ~/.cache/weather.xml | grep -o "code=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==1').png ~/.cache/weather-1.png}${image ~/.cache/weather-1.png -p 0,483 -s 30x30}${execi 300 cp -f ~/.conky-google-now/$(grep "yweather:forecast" ~/.cache/weather.xml | grep -o "code=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==2').png ~/.cache/weather-2.png}${image ~/.cache/weather-2.png -p 70,483 -s 30x30}${execi 300 cp -f ~/.conky-google-now/$(grep "yweather:forecast" ~/.cache/weather.xml | grep -o "code=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==3').png ~/.cache/weather-3.png}${image ~/.cache/weather-3.png -p 140,483 -s 30x30}${execi 300 cp -f ~/.conky-google-now/$(grep "yweather:forecast" ~/.cache/weather.xml | grep -o "code=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==4').png ~/.cache/weather-3.png}${image ~/.cache/weather-3.png -p 200,483 -s 30x30}
# ${goto 10}${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "high=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==1'}°${goto 80}${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "high=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==2'}°${goto 150}${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "high=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==3'}°${goto 215}${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "high=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==4'}°
# ${goto 10}${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "low=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==1'}°${goto 80}${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "low=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==2'}°${goto 150}${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "low=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==3'}°${goto 215}${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "low=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==4'}


# # Highest MEM $alignr MEM
# ${top_mem name 1}$alignr ${top_mem mem 1}%
# ${top_mem name 2}$alignr ${top_mem mem 2}%
# ${top_mem name 3}$alignr ${top_mem mem 3}%
# ${top_mem name 4}$alignr ${top_mem mem 4}%
# ${top_mem name 5}$alignr ${top_mem mem 5}%
# ${top_mem name 6}$alignr ${top_mem mem 6}%


#############
##############
# ${color #ffd700}CPU ${hr 1}
# Frequency: ${alignr}${freq dyn} MHz
# Processes: ${alignr}$processes ($running_processes running)
# Load: ${alignr}$loadavg
# CPU1 ${alignr}${cpu cpu1}%
# ${cpubar 4 cpu1}
# CPU2 ${alignr}${cpu cpu2}%
# ${cpubar 4 cpu2}
# # Highest CPU $alignr CPU%
# # ${top name 1}$alignr${top cpu 1}
# ${top name 2}$alignr${top cpu 2}
# ${top name 3}$alignr${top cpu 3}
##############

#############

# Highest MEM $alignr MEM
# ${top_mem name 1}$alignr ${top_mem mem 1}%
# ${top_mem name 2}$alignr ${top_mem mem 2}%
# ${top_mem name 3}$alignr ${top_mem mem 3}%
# ${top_mem name 4}$alignr ${top_mem mem 4}%
# ${top_mem name 5}$alignr ${top_mem mem 5}%
# ${top_mem name 6}$alignr ${top_mem mem 6}%
最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
  • 序言:七十年代末渺蒿,一起剝皮案震驚了整個(gè)濱河市恨豁,隨后出現(xiàn)的幾起案子歇僧,更是在濱河造成了極大的恐慌,老刑警劉巖盛霎,帶你破解...
    沈念sama閱讀 219,427評(píng)論 6 508
  • 序言:濱河連續(xù)發(fā)生了三起死亡事件铆农,死亡現(xiàn)場(chǎng)離奇詭異嫁怀,居然都是意外死亡锅铅,警方通過(guò)查閱死者的電腦和手機(jī),發(fā)現(xiàn)死者居然都...
    沈念sama閱讀 93,551評(píng)論 3 395
  • 文/潘曉璐 我一進(jìn)店門(mén),熙熙樓的掌柜王于貴愁眉苦臉地迎上來(lái)界轩,“玉大人画饥,你說(shuō)我怎么就攤上這事∽腔” “怎么了抖甘?”我有些...
    開(kāi)封第一講書(shū)人閱讀 165,747評(píng)論 0 356
  • 文/不壞的土叔 我叫張陵,是天一觀的道長(zhǎng)葫慎。 經(jīng)常有香客問(wèn)我衔彻,道長(zhǎng),這世上最難降的妖魔是什么偷办? 我笑而不...
    開(kāi)封第一講書(shū)人閱讀 58,939評(píng)論 1 295
  • 正文 為了忘掉前任艰额,我火速辦了婚禮,結(jié)果婚禮上椒涯,老公的妹妹穿的比我還像新娘柄沮。我一直安慰自己,他們只是感情好废岂,可當(dāng)我...
    茶點(diǎn)故事閱讀 67,955評(píng)論 6 392
  • 文/花漫 我一把揭開(kāi)白布祖搓。 她就那樣靜靜地躺著,像睡著了一般湖苞。 火紅的嫁衣襯著肌膚如雪棕硫。 梳的紋絲不亂的頭發(fā)上,一...
    開(kāi)封第一講書(shū)人閱讀 51,737評(píng)論 1 305
  • 那天袒啼,我揣著相機(jī)與錄音,去河邊找鬼纬纪。 笑死蚓再,一個(gè)胖子當(dāng)著我的面吹牛,可吹牛的內(nèi)容都是我干的包各。 我是一名探鬼主播摘仅,決...
    沈念sama閱讀 40,448評(píng)論 3 420
  • 文/蒼蘭香墨 我猛地睜開(kāi)眼,長(zhǎng)吁一口氣:“原來(lái)是場(chǎng)噩夢(mèng)啊……” “哼问畅!你這毒婦竟也來(lái)了娃属?” 一聲冷哼從身側(cè)響起,我...
    開(kāi)封第一講書(shū)人閱讀 39,352評(píng)論 0 276
  • 序言:老撾萬(wàn)榮一對(duì)情侶失蹤护姆,失蹤者是張志新(化名)和其女友劉穎矾端,沒(méi)想到半個(gè)月后,有當(dāng)?shù)厝嗽跇?shù)林里發(fā)現(xiàn)了一具尸體卵皂,經(jīng)...
    沈念sama閱讀 45,834評(píng)論 1 317
  • 正文 獨(dú)居荒郊野嶺守林人離奇死亡秩铆,尸身上長(zhǎng)有42處帶血的膿包…… 初始之章·張勛 以下內(nèi)容為張勛視角 年9月15日...
    茶點(diǎn)故事閱讀 37,992評(píng)論 3 338
  • 正文 我和宋清朗相戀三年,在試婚紗的時(shí)候發(fā)現(xiàn)自己被綠了。 大學(xué)時(shí)的朋友給我發(fā)了我未婚夫和他白月光在一起吃飯的照片殴玛。...
    茶點(diǎn)故事閱讀 40,133評(píng)論 1 351
  • 序言:一個(gè)原本活蹦亂跳的男人離奇死亡捅膘,死狀恐怖,靈堂內(nèi)的尸體忽然破棺而出滚粟,到底是詐尸還是另有隱情寻仗,我是刑警寧澤,帶...
    沈念sama閱讀 35,815評(píng)論 5 346
  • 正文 年R本政府宣布凡壤,位于F島的核電站署尤,受9級(jí)特大地震影響,放射性物質(zhì)發(fā)生泄漏鲤遥。R本人自食惡果不足惜沐寺,卻給世界環(huán)境...
    茶點(diǎn)故事閱讀 41,477評(píng)論 3 331
  • 文/蒙蒙 一、第九天 我趴在偏房一處隱蔽的房頂上張望盖奈。 院中可真熱鬧混坞,春花似錦、人聲如沸钢坦。這莊子的主人今日做“春日...
    開(kāi)封第一講書(shū)人閱讀 32,022評(píng)論 0 22
  • 文/蒼蘭香墨 我抬頭看了看天上的太陽(yáng)爹凹。三九已至厨诸,卻和暖如春,著一層夾襖步出監(jiān)牢的瞬間禾酱,已是汗流浹背微酬。 一陣腳步聲響...
    開(kāi)封第一講書(shū)人閱讀 33,147評(píng)論 1 272
  • 我被黑心中介騙來(lái)泰國(guó)打工, 沒(méi)想到剛下飛機(jī)就差點(diǎn)兒被人妖公主榨干…… 1. 我叫王不留颤陶,地道東北人颗管。 一個(gè)月前我還...
    沈念sama閱讀 48,398評(píng)論 3 373
  • 正文 我出身青樓,卻偏偏與公主長(zhǎng)得像滓走,于是被迫代替她去往敵國(guó)和親垦江。 傳聞我的和親對(duì)象是個(gè)殘疾皇子,可洞房花燭夜當(dāng)晚...
    茶點(diǎn)故事閱讀 45,077評(píng)論 2 355

推薦閱讀更多精彩內(nèi)容

  • 我是個(gè)徹徹底底的手機(jī)控搅方,我時(shí)常在想比吭,如果沒(méi)有了手機(jī),我們的生活將會(huì)變成什么樣姨涡。當(dāng)然衩藤,這是不可能的,我也只是打個(gè)比方...
    煥滅閱讀 1,147評(píng)論 2 11
  • HTML绣溜、XML慷彤、XHTML相關(guān)性與區(qū)別性 Html(Hyper Text Markup Language) 超文...
    村里第一帥閱讀 194評(píng)論 0 1
  • 在中國(guó)的大地上開(kāi)始的鄉(xiāng)村經(jīng)濟(jì)確實(shí)給當(dāng)?shù)氐娜藗儙?lái)了不少的經(jīng)濟(jì)收入,那些游客們從近處或者遠(yuǎn)處奔走過(guò)來(lái),拍了幾張照片然...
    左手夢(mèng)想右手隨時(shí)療傷閱讀 190評(píng)論 0 0
  • 1 前言 去年10月份的時(shí)候我就開(kāi)始嘗試用短視頻記憶GRE單詞底哗,不過(guò)在當(dāng)時(shí)并未形成一個(gè)有原理岁诉、有工具的可行性套路。...
    玩英語(yǔ)閱讀 5,988評(píng)論 0 8