My .conkyrc file


ข้างล่างเป็น .conkyrc ที่ผมดัดแปลงเอาจาก CONKY-colors

อาจจะสวยไม่เท่าต้นฉบับ แต่ดูโล่งตาดีสำหรับผม

ป.ล. ถ้าอยากให้แสดง text แบบในรูปให้สร้างไฟล์ชื่อ Notes.txt ใน Home directory แล้วก็ใส่ข้อความเอาตามใจชอบ

—————————————————

use_xft yes
xftfont Liberation Sans:style=Bold:size=8

update_interval 2
total_run_times 0
double_buffer yes
text_buffer_size 2048

own_window yes
own_window_type override
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager

minimum_size 235 0
maximum_width 245

default_color 6AF572
draw_shades no

color0 87EAE6
color1 F6F6EC

alignment top_right
gap_x 20
gap_y 55

no_buffers no
net_avg_samples 2

override_utf8_locale yes

no_buffers yes

TEXT
${voffset 10}${font Waree:size=9}${color1}${execpi 75 cat ~/Notes.txt}${color}${font}

${color1}${hr 5}${color}
${color1}UBUNTU GNU/Linux ${alignr}${kernel}${color}

${offset 40}${font Liberation Sans:style=Bold:size=14}${color0}${time %a}${color}${font}
${voffset -30}${font Liberation Sans:style=Bold:size=45}${color0}$alignc${time %d}${color}${font}
${offset 40}${voffset -21}${font Liberation Sans:style=Bold:size=14}${color1}${time %b}${offset 88}${time %Y}${color}${font}

${font Liberation Sans:style=Bold:size=10}SYSTEM${font} ${hr 2}
${voffset 4}${font StyleBats:size=16}o${font}   ${nodename}: ${alignr}${color1}${uptime}${color}
${font StyleBats:size=16}A${font}   CPU: ${cpu cpu1}% @ ${freq_g cpu1} GHz ${alignr}${cpubar cpu1 8,60}
${font StyleBats:size=16}m${font}   RAM: $memperc% ${alignr}${color1}$mem${color}
${font StyleBats:size=16}j${font}   Swap: $swapperc% ${alignr}${color1}$swap${color}

${color0}${font Liberation Sans:style=Bold:size=10}NETWORK${font} ${hr 2}${color}
${if_existing /proc/net/route eth1}
${voffset -6}${color0}${font PizzaDude Bullets:size=14}O${font}   Up: ${upspeed eth1} kb/s${color} ${alignr}${color1}${totalup eth1}${color}
${voffset 4}${color0}${font PizzaDude Bullets:size=14}U${font}   Down: ${downspeed eth1} kb/s${color} ${alignr}${color1}${totaldown eth1}${color}
${voffset 4}${color0}${font PizzaDude Bullets:size=14}Z${font}   ${wireless_essid eth1}: ${wireless_link_qual eth1}% ${alignr}${wireless_link_bar 8,60 eth1}${color}
${voffset 4}${color0}${font PizzaDude Bullets:size=14}(${font}   Local IP:${color} ${alignr}${color1}${addr eth1}${color}
${else}${if_existing /proc/net/route eth0}
${voffset -6}${color0}${font PizzaDude Bullets:size=14}O${font}   Up: ${upspeed eth0} kb/s${color} ${alignr}${color1}${totalup eth0}${color}
${voffset 4}${color0}${font PizzaDude Bullets:size=14}U${font}   Down: ${downspeed eth0} kb/s${color} ${alignr}${color1}${totaldown eth0}${color}
${voffset 4}${color0}${font PizzaDude Bullets:size=14}(${font}   Local IP:${color} ${alignr}${color1}${addr eth0}${color}
${endif}${else}${if_existing /proc/net/route ppp0}
${voffset -6}${color0}${font PizzaDude Bullets:size=14}O${font}   Up: ${upspeed ppp0} kb/s${color} ${alignr}${upspeedgraph ppp0 8,60 E07A1F FAA546}
${voffset 4}${color0}${font PizzaDude Bullets:size=14}U${font}   Down: ${downspeed ppp0} kb/s${color} ${alignr}${downspeedgraph ppp0 8,60 E07A1F FAA546}
${voffset 4}${color0}${font PizzaDude Bullets:size=14}N${font}   Upload: ${alignr}${color1}${totalup ppp0}${color}
${voffset 4}${color0}${font PizzaDude Bullets:size=14}T${font}   Download: ${alignr}${color1}${totaldown ppp0}${color}
${voffset 4}${color0}${font PizzaDude Bullets:size=14}(${font}   Local IP:${color} ${alignr}${color1}${addr ppp0}${color}
${endif}${else}${voffset 4}${color0}${font PizzaDude Bullets:size=12}4${font}   Network Unavailable${color}
${endif}

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: