콘키(conky) 놀이 해보아요.

Moderator: Dry8r3aD

User avatar
deadsky
Posts: 1277
Joined: 2008/11/17 Mon 11:38 pm
Location: 사방 50km가 모두 산인 지역...
Contact:

Re: 콘키(conky) 놀이 해보아요.

Post by deadsky » 2009/02/20 Fri 1:23 pm

걍 간단하게 띄워놓을려고 했는데...

이것저것 가따 붙이다보니 길어젔네요 ㅎㅎ

[attachment=0:310ixcyc]
-4.png
-4.png (357.65 KiB) Viewed 5203 times
[/attachment:310ixcyc]


[code:310ixcyc]
background yes
use_xft yes
xftfont Bitstream Vera Sans Mono:size=8
xftalpha 0.8
background yes
use_xft yes
own_window_hints below
xftfont sans:style=Bold:size=10
xftalpha 1
update_interval 2
total_run_times 0
own_window yes
own_window_hints undecorated,below,skip_taskbar
own_window_type override
own_window_transparent yes
own_window_colour # ff0000
double_buffer yes
minimum_size 280 5
maximum_width 220
draw_shades yes
draw_outline no
draw_borders no
stippled_borders 8
border_margin 5
border_width 10
default_color white
default_shade_color black
default_outline_color black
alignment top_right
gap_x 10
gap_y 10
no_buffers yes
uppercase no
cpu_avg_samples 1
net_avg_samples 1
override_utf8_locale yes
use_spacer yes
min_port_monitors 16
min_port_monitor_connections 256


TEXT










${font openlogos:size=20}u${font Arial:size=20}${color Tan1} Ubuntu 8.10
${font Arial:size=16}${color Ivory}$nodename
${font Arial:size=12}${time %G년} ${time %B %e일 %a}


${voffset -90}
${color white}
${font}
${font Arial:bold:size=10}${color Tan1}SYSTEM ${color white} ${hr 2}
$font${color aaaaaa}$sysname $kernel $alignr $machine
Uptime $alignr${uptime}
File System $alignr${fs_type}

${font Arial:bold:size=10}${color Tan1}PROCESSORS ${color white}${hr 2}
$font${color slate grey}CPU ${color aaaaaa}${cpu cpu}%
${cpugraph 20,170 blue red}
${color slate grey}MEM: ${font :size=9}${color aaaaaa}$memperc% $mem/$memmax${font}
${membar 5,170}
${color slate grey}SWAP: ${font :size=9}${color aaaaaa}$swapperc% $swap/$swapmax${font}
${swapbar 5,170}

${font Arial:bold:size=10}${color Tan1}TOP PROCESSES ${color white}${hr 2}${font}
${color slate grey}${top_mem name 2}${font :size=9}${color aaaaaa}${alignr}${top mem 2} %${font}
${color slate grey}$font${top_mem name 3}${font :size=9}${color aaaaaa}${alignr}${top mem 3} %${font}
${color slate grey}$font${top_mem name 4}${font :size=9}${color aaaaaa}${alignr}${top mem 4} %${font}
${color slate grey}$font${top_mem name 5}${font :size=9}${color aaaaaa}${alignr}${top mem 5} %${font}

${font style=Bold:size=8}${color aaaaaa}Name PID CPU MEM
${font bitstreamverasansmono:size=8}${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1}
${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2}
${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3}
${top name 4} ${top pid 4} ${top cpu 4} ${top mem 4}

Mem usage$font
${font bitstreamverasansmono:size=8}${top_mem name 1} ${top_mem pid 1} ${top_mem cpu 1} ${top_mem mem 1}
${top_mem name 2} ${top_mem pid 2} ${top_mem cpu 2} ${top_mem mem 2}
${top_mem name 3} ${top_mem pid 3} ${top_mem cpu 3} ${top_mem mem 3}$font

${font Arial:bold:size=10}${color Tan2}NETWORK ${color white}${hr 2}
${color slate grey}IP on eth0 ${font :size=9}${color aaaaaa}$alignr ${addr eth0}${font}
${color slate grey}Down ${font :size=9}${color aaaaaa}$alignr${downspeed eth0}kb/s${font} ${downspeedgraph wlan0 20,120 F660AB F52887}
${color slate grey}Up ${font :size=9}${color aaaaaa}$alignr${upspeed eth0}kb/s${font} ${upspeedgraph wlan0 20,120 F660AB F52887}
${color slate grey}Downloaded ${font :size=9}${color aaaaaa}$alignr ${totaldown eth0}${font}
${color slate grey}Uploaded ${font :size=9}${color aaaaaa}$alignr ${totalup eth0}${font}

${font Arial:bold:size=10}${color Tan1}HDD ${color white}${hr 2}
$font${color slate grey}ROOT ${font :size=9}${color aaaaaa}$alignc${fs_used /}/${fs_size /} $alignr${fs_free_perc /}%
${fs_bar /}${font}
$font${color slate grey}HOME ${font :size=9}${color aaaaaa}$alignc${fs_used /home}/${fs_size /home} $alignr${fs_free_perc /home}%
${fs_bar /home}${font}
$font${color slate grey}WORK ${font :size=9}${color aaaaaa}$alignc${fs_used /work}/${fs_size /work} $alignr${fs_free_perc /work}%
${fs_bar /work}${font}
${color white}${hr 2}



[/code:310ixcyc]
아토피에서 벗어나고싶은가? 그러면 국산농산물먹고 살게나!!

User avatar
deadsky
Posts: 1277
Joined: 2008/11/17 Mon 11:38 pm
Location: 사방 50km가 모두 산인 지역...
Contact:

Re: 콘키(conky) 놀이 해보아요.

Post by deadsky » 2009/02/21 Sat 12:30 am

세로로 세워두니까 가뜩이나 좁은 화면이 더 좁아보이더군요...그래서..가로로 다시 제작을 했습니다.

[attachment=0:15qrk8d4]
-5.png
-5.png (355.65 KiB) Viewed 5160 times
[/attachment:15qrk8d4]

[code:15qrk8d4]
background yes
use_xft yes
xftfont Bitstream Vera Sans Mono:size=8
background yes
use_xft yes
xftfont sans:style=Bold:size=10
xftalpha 1
update_interval 2
total_run_times 0
own_window yes
own_window_hints undecorated,below,skip_taskbar
own_window_type override
own_window_transparent yes
own_window_colour 555555
double_buffer yes
minimum_size 600 210
draw_shades yes
draw_outline no
draw_borders no
stippled_borders 8
border_margin 5
border_width 10
default_color white
default_shade_color black
default_outline_color black
alignment top_middle
gap_x 10
gap_y 10
no_buffers yes
uppercase no
cpu_avg_samples 1
net_avg_samples 1
override_utf8_locale yes
use_spacer yes
min_port_monitors 16
min_port_monitor_connections 256


TEXT

${voffset -40}
${offset 0}${font openlogos:size=20}u${font Arial:size=20}${color Tan1} Ubuntu 8.10
${offset 0}${font Arial:size=16}${color Ivory}$nodename
${offset 0}${font Arial:size=12}${time %G년} ${time %B %e일 %a}
${offset 0}${font Arial:bold:size=10}${color Tan1}SYSTEM ${color white}
${offset 0}$font${color aaaaaa}$sysname $kernel $machine
${offset 0}Uptime : ${uptime}
${offset 0}File System : ${fs_type}
${voffset -177}
${offset 220}${font Arial:bold:size=10}${color Tan1}PROCESSORS ${color white}
${offset 220}$font${color slate grey}CPU ${color aaaaaa}${cpu cpu}%
${offset 220} ${cpugraph 20,170 blue red}
${offset 220}${color slate grey}MEM: ${font :size=9}${color aaaaaa}$memperc% $mem/$memmax${font}
${offset 220} ${membar 5,170}
${offset 220}${color slate grey}SWAP: ${font :size=9}${color aaaaaa}$swapperc% $swap/$swapmax${font}
${offset 220} ${swapbar 5,170}
${voffset -155}
${offset 440}${font Arial:bold:size=10}${color Tan1}TOP PROCESSES ${color white}${font}
${offset 440}${color slate grey}${top_mem name 2}${font :size=9}${color aaaaaa}${top mem 2} %${font}
${offset 440}${color slate grey}$font${top_mem name 3}${font :size=9}${color aaaaaa}${top mem 3} %${font}
${offset 440}${color slate grey}$font${top_mem name 4}${font :size=9}${color aaaaaa}${top mem 4} %${font}
${offset 440}${color slate grey}$font${top_mem name 5}${font :size=9}${color aaaaaa}${top mem 5} %${font}
${offset 440}${font style=Bold:size=8}${color aaaaaa}Name PID CPU MEM
${offset 440}${font bitstreamverasansmono:size=8}${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1}
${offset 440}${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2}
${offset 440}${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3}
${offset 440}${top name 4} ${top pid 4} ${top cpu 4} ${top mem 4}
${offset 440}Mem usage
${offset 440}${font bitstreamverasansmono:size=8}${top_mem name 1} ${top_mem pid 1} ${top_mem cpu 1} ${top_mem mem 1}
${offset 440}${top_mem name 2} ${top_mem pid 2} ${top_mem cpu 2} ${top_mem mem 2}
${offset 440}${top_mem name 3} ${top_mem pid 3} ${top_mem cpu 3} ${top_mem mem 3}$font
${voffset -230}
${offset 660}${font Arial:bold:size=10}${color Tan2}NETWORK ${color white}
${offset 660}${color slate grey}IP on eth0 ${font :size=9}${color aaaaaa} ${addr eth0}${font}
${offset 660}${color slate grey}Down ${font :size=9}${color aaaaaa}${downspeed eth0}kb/s${font} ${downspeedgraph wlan0 20,120 F660AB F52887}
${offset 660}${color slate grey}Up ${font :size=9}${color aaaaaa}${upspeed eth0}kb/s${font} ${upspeedgraph wlan0 20,120 F660AB F52887}
${offset 660}${color slate grey}Downloaded ${font :size=9}${color aaaaaa} ${totaldown eth0}${font}
${offset 660}${color slate grey}Uploaded ${font :size=9}${color aaaaaa} ${totalup eth0}${font}
${voffset -156}
${offset 880}${font Arial:bold:size=10}${color Tan1}HDD ${color white}
${offset 880}$font${color slate grey}ROOT ${font :size=9}${color aaaaaa}${fs_used /}/${fs_size /} $alignr${fs_free_perc /}%
${offset 880}${fs_bar /}${font}
${offset 880}$font${color slate grey}HOME ${font :size=9}${color aaaaaa}${fs_used /home}/${fs_size /home} $alignr${fs_free_perc /home}%
${offset 880}${fs_bar /home}${font}
${offset 880}$font${color slate grey}WORK ${font :size=9}${color aaaaaa}${fs_used /work}/${fs_size /work} $alignr${fs_free_perc /work}%
${offset 880}${fs_bar /work}${font}
[/code:15qrk8d4]
아토피에서 벗어나고싶은가? 그러면 국산농산물먹고 살게나!!

User avatar
seungje
Posts: 224
Joined: 2008/05/26 Mon 1:15 pm
Location: 아파트

Re: 콘키(conky) 놀이 해보아요.

Post by seungje » 2009/02/26 Thu 7:43 pm

[quote="seungje":37ob6cop]
강분도님의 콘키 설정을 잘 사용하고 있습니다.
그런데, 위와 같이 더블버퍼를 YES로 설정했는데도 불구하고 콘키가 "종종" 깜빡거리는군요.

강분도님의 콘키설정을 거의 그대로 사용중입니다만,
위쪽의 시계가 5초 단위로 변합니다. 하지만 깜박거리는 증상은 랜덤한 것 같네요.
1~2분에 한번 정도씩 깜박인다고 해야할 듯....
[/quote:37ob6cop]

아래 링크에서 해답을 찾았습니다.
http://blog.daum.net/dietotheworld/98

콘키 실행시킬때, 실행옵션으로 더블버퍼를 주면 되는 것이더군요.

[code:37ob6cop]~conky -b[/code:37ob6cop]
SeuNgjE

bluelenz
Posts: 175
Joined: 2008/09/17 Wed 6:46 pm

Re: 콘키(conky) 놀이 해보아요.

Post by bluelenz » 2011/11/01 Tue 12:24 pm

넷북에 오랜만에 코분투를 설치하여 콘키 추가하고
넷북용으로 수정하여 올려봅니닷

[attachment=0:3j70fpzs]
2011-11-01.png
2011-11-01.png (800.69 KiB) Viewed 3680 times
[/attachment:3j70fpzs]

[code:3j70fpzs]

background no
xftfont Tahoma:pixelsize=10
use_xft yes
xftalpha 0.9
update_interval 3.0
total_run_times 0
own_window yes
own_window_type override
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_pager,skip_taskbar
own_window_colour ffffff
double_buffer yes
minimum_size 180 5
maximum_width 180
draw_shades yes
draw_outline no
draw_borders no
draw_graph_borders no
default_color white
default_shade_color black
default_outline_color green
alignment top_right
gap_x 5
gap_y 35
no_buffers yes
uppercase no
cpu_avg_samples 2
override_utf8_locale yes
#uppercase yes # set to yes if you want all text to be in uppercase

TEXT
${font Tahoma:pixelsize=12}${color gray}SYSTEM ${hr 1}${color}${font}

Hostname: ${alignr}${nodename}
Kernel: ${alignr}${kernel}
Uptime: ${alignr}${uptime}

Cpu: ${alignr}${freq} MHz
Processes: ${alignr}${processes} ($running_processes running)
Load: ${alignr}${loadavg}

Cpu1 ${alignr}${cpu cpu1}%
${cpubar cpu1 4}
Cpu2 ${alignr}${cpu cpu2}%
${cpubar cpu2 4}
${cpugraph cpu1 20,87} ${alignr}${cpugraph cpu2 20,87}
Ram ${alignr}${mem} / ${memmax} ($memperc%)
${membar 4}
Swap ${alignr}${swap} / ${swapmax} ($swapperc%)
${swapbar 4}

Highest CPU ${alignr} CPU% MEM%
${top name 1}${alignr}${top cpu 1}${top mem 1}
${top name 2}${alignr}${top cpu 2}${top mem 2}
${top name 3}${alignr}${top cpu 3}${top mem 3}

Highest MEM ${alignr} CPU% MEM%
${top_mem name 1}${alignr}${top_mem cpu 1}${top_mem mem 1}
${top_mem name 2}${alignr}${top_mem cpu 2}${top_mem mem 2}
${top_mem name 3}${alignr}${top_mem cpu 3}${top_mem mem 3}

Root: ${alignr}${fs_free /} / ${fs_size /}
${fs_bar 4 /}
WINXP: ${alignr}${fs_free /media/BA1C0E131C0DCB79} / ${fs_size /media/BA1C0E131C0DCB79}
${fs_bar 4 /media/BA1C0E131C0DCB79}
DATA: ${alignr}${fs_free /media/3EE05952E059120F} / ${fs_size /media/3EE05952E059120F}
${fs_bar 4 /media/3EE05952E059120F}

IP: ${alignr}${addr wlan0} (${wireless_essid wlan0})

Down ${downspeed wlan0} /s ${alignr}Up ${upspeed wlan0} /s
${downspeedgraph wlan0 20,87} ${alignr}${upspeedgraph wlan0 20,87}
Total ${totaldown wlan0} ${alignr}Total ${totalup wlan0}
[/code:3j70fpzs]

Post Reply