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

Moderator: Dry8r3aD

User avatar
강분도
Posts: 6059
Joined: 2008/03/31 Mon 5:47 pm
Contact:

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

Post by 강분도 » 2008/06/29 Sun 5:21 pm

[b:3bhc979r]콘키(conky)[/b:3bhc979r]는 적은 메모리(400K) 를 사용 하면서 시스템의 상황을 보여 주는 매력 적인 프로그램 입니다.
메인 : http://conky.sourceforge.net/
참고1 : http://wiki.kldp.org/wiki.php/Conky
참고2 raskolnikov님 글 : http://www.ubuntu.or.kr/viewtopic.php?f=9&t=201&p=561
우분투 설치 : sudo apt-get install conky
그래서 이벤트 성으로 [color=#4040FF:3bhc979r]스샷과 코드를 올리는 놀이[/color:3bhc979r]를 해보고자 합니다. :D
설정 파일은 ~/.conkyrc 입니다.
[attachment=0:3bhc979r]
conky.png
conky.png (13.61 KiB) Viewed 20039 times
[/attachment:3bhc979r]
[b:3bhc979r][color=#8080BF:3bhc979r]저의 콘키의 특징은 시간 , 듀얼CPU , 아파치 서버와 메일서버 감시 입니다.
그리고 시작(세션)으로 등록 하기 위한 설정 : #own_window_type override # 배경문제로 OFF ...[/color:3bhc979r][/b:3bhc979r]
[code:3bhc979r]# Kang Bundo-CONKY
# A comprehensive conky script, configured for use on
# Ubuntu / Debian Gnome, without the need for any external scripts.
#
# Based on conky-jc and the default .conkyrc.
# bundo@bundo.biz

# Create own window instead of using desktop (required in nautilus)
own_window yes
#own_window_type override
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager

# Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes

# fiddle with window
use_spacer true
#yes
use_xft yes

# Xft font when Xft is enabled
xftfont Terminus:size=7
#override_utf8_locale yes
# Update interval in seconds
update_interval 5.0

# Minimum size of text area
# minimum_size 250 5

# Draw shades?
draw_shades no

# Text stuff
draw_outline no # amplifies text if yes
draw_borders no
#font Sans
#Sans
uppercase no # set to yes if you want all text to be in uppercase

# Stippled borders?
stippled_borders 3

# border margins
border_margin 9

# border width
border_width 10

# Default colors and also border colors, grey90 == #e5e5e5
default_color F8F9E5

own_window_colour brown
own_window_transparent yes

# Text alignment, other possible values are commented
#alignment top_left
alignment top_right
#alignment bottom_left
#alignment bottom_right

# Gap between borders of screen and text
gap_x 10
gap_y 10

# stuff after 'TEXT' will be formatted on screen
# $sysname $kernel on $machine
# CPU ${freq}
#
TEXT
${font Arial Black:pixelsize=32}${alignc}${color D661E5}${time %H:%M:%S}${font terminus:size=8}$color
${color B4ADF8}SYSTEM ${hr 2}$color
$sysname $kernel on $machine CPU: ${freq}mhz ${alignr}Temp: ${acpitemp}
$nodename $machine Gnome Myojok special Editions 2.22.2
${color EC806F}CPU ${hr 2}$color
CORE: ${freq}MHz Load: ${loadavg} Uptime:$uptime
CPU0: ${cpu cpu0}% ${cpubar cpu0 5,92}${alignr}CPU1: ${cpu cpu1}% ${cpubar cpu1 5,92}
${cpugraph cpu 000000 AF8DDC}
${color 63F4FD}NAME PID CPU% MEM%$color
${color #ddaa00}${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1}
${color #B4AAAA}${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2}
${color #B4AAAA}${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3}
${color #B4AAAA}${top name 4} ${top pid 4} ${top cpu 4} ${top mem 4}
${color #888888}${top name 5} ${top pid 5} ${top cpu 5} ${top mem 5}

${color F3F0A8}MEMORY / DISK ${hr 2}$color
RAM: ${color FEBE71}$memperc$color% ${membar 6}$color
SWAP: $swapperc% ${swapbar 6}$color

Root: ${fs_free_perc /} % ${fs_bar 6 /}$color
C-dv: ${fs_free_perc /media/disk} % ${fs_bar 6 /media/disk}$color
D-dv: ${fs_free_perc /media/disk-1} % ${fs_bar 6 /media/disk-1}$color
Back: ${fs_free_perc /media/sda3} % ${fs_bar 6 /media/sda3}

${color 8DE798}NETWORK (${addr eth0}) ${hr 2}$color
Down: $color${downspeed eth0} k/s ${alignr}Up: ${upspeed eth0} k/s
${downspeedgraph eth0 25,140 000000 ff0000} ${alignr}${upspeedgraph eth0
25,140 000000 00ff00}$color
Total: ${totaldown eth0} ${alignr}Total: ${totalup eth0}
Inbound: ${tcp_portmon 1 32767 count} Outbound: ${tcp_portmon 32768
61000 count}${alignr}Total: ${tcp_portmon 1 65535 count}

${color orange}Web_Apache ${hr 2}${color D7FF95}
${execi 30 tail -n5 /usr/local/apache/logs/bundo-access_log |awk '{print $1, $4, $7, $16, $17, $18, $20, $22}' | fold -w50}

${color F4A1EE}EXIM ${hr 2}$color
${color BD8220}${execi 30 tail -n5 /var/log/exim4/mainlog |awk '{print $2, $6}'| fold -w50}
${color1}$hr[/code:3bhc979r]

raskolnikov
Posts: 169
Joined: 2008/04/21 Mon 12:15 am
Contact:

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

Post by raskolnikov » 2008/06/29 Sun 5:50 pm

[b:xs3w0n8t]**콘키(Conky)에 대해서 잘 모르시는 분들을 위해서 이 글을 씁니다.**[/b:xs3w0n8t]



저는 외국사이트에서 눈동냥을 하며 콘키설정 파일들을 받아서 사용합니다.
kldp wiki에 있는 한국어 [url=http://wiki.kldp.org/wiki.php/Conky:xs3w0n8t][color=#FF0000:xs3w0n8t]conky페이지[/color:xs3w0n8t][/url:xs3w0n8t]도 보신다면 도움이 많이 되실겁니다.

[attachment=1:xs3w0n8t]
screenshotfont.png
screenshotfont.png (923.34 KiB) Viewed 20237 times
[/attachment:xs3w0n8t]
일단 전체적인 사진을 보세요.

테마에 관심이 많으신 분이라면 윈도우즈테마 사이트인 [url=http://mytheme.net/v3.0/index.php:xs3w0n8t][color=#FF0000:xs3w0n8t]마이테마쩜넷[/color:xs3w0n8t][/url:xs3w0n8t]을 방문하신 적이 있으실 것 같은데요, "[url=http://www.samurize.com/modules/news/:xs3w0n8t][color=#FF0000:xs3w0n8t]사무라이즈[/color:xs3w0n8t][/url:xs3w0n8t]"라는 프로그램과 비슷한 프로그램입니다. 어떤것이 먼저 나왔는지는 확실히 모르겠지만, 아무래도 콘키가 먼저 세상에 나오지 않았을까 조심스럽게 짐작합니다.

콘키는 자신이 꾸미는 만큼 자신을 보여줍니다. 그만큼 자유롭다는 말입니다.
이제 제 콘키 사진을 공개하겠습니다.
[attachment=0:xs3w0n8t]
conky.png
conky.png (58.13 KiB) Viewed 20096 times
[/attachment:xs3w0n8t]

이것의 원본은 [url=http://gnome-look.org:xs3w0n8t][color=#FF0000:xs3w0n8t]gnome-look.org[/color:xs3w0n8t][/url:xs3w0n8t]의 [url=http://thrynk.deviantart.com/:xs3w0n8t][color=#FF0000:xs3w0n8t]lyrae[/color:xs3w0n8t][/url:xs3w0n8t]님이 만드신 것입니다.
저는 lyrae님의 테마들을 정말 좋아합니다. 굉장히 깔끔하고 각진 모양새가 윈도우와 확연히 다른 모습이어서 좋습니다.

제가 사용하는 소스를 공개합니다.

[code:xs3w0n8t]#avoid flicker

double_buffer yes



#own window to run simultanious 2 or more conkys

own_window yes

own_window_transparent no

own_window_type normal

own_window_hints undecorate,sticky,skip_taskbar,skip_pager



#borders

draw_borders no

border_margin 1



#shades

draw_shades no



#position

gap_x 6

gap_y 6

alignment top_left



#behaviour

update_interval 1



#colour

default_color 8f8f8f

#default_shade_color 000000

own_window_colour 262626



#font

use_xft yes

xftfont Tahoma:pixelsize=10



#to prevent window from moving

use_spacer no

minimum_size 1268 0



#mpd

mpd_host localhost

mpd_port 6600



TEXT

${voffset -1} Kernel: ${color e0e0e0}${kernel} ${color} | Cpu1: ${color e0e0e0}${font}${cpu cpu1}% ${color} | Cpu2: ${color e0e0e0}${font}${cpu cpu2}% ${color} | Mem: ${color e0e0e0}${font}${mem} ${color} | Swap: ${color e0e0e0}${font}${swap} ${color} | ${color} Up: ${color e0e0e0}${font}${uptime_short}${color} | ${color} Net: ${color e0e0e0}${font}${downspeed wlan0} Kb/s ${color} ${totaldown wlan0} Downloaded${color} | ${color} ${color e0e0e0}${upspeed wlan0} Kb/s ${color} ${totalup wlan0} Uploaded${color} | ${color}Root: ${color e0e0e0}${font}${fs_free /} ${color} Home: ${color e0e0e0}${font}${fs_free /Home} ${color} | ${color}Mail: You have ${color e0e0e0}${texeci 100 python ~/.scripts/gmail.py} ${color}new email(s). ${execi 100 python ~/.scripts/gmail_subj.py} | ${color}Processes: ${color e0e0e0}${font}${processes}${color}[/code:xs3w0n8t]

gmil을 연동해서 새로운 메일을 알려주는 팁은 [url=http://www.ubuntu.or.kr/viewtopic.php?f=9&t=201&p=561:xs3w0n8t][color=#FF0000:xs3w0n8t]이쪽[/color:xs3w0n8t][/url:xs3w0n8t]으로 가시면 자세히 알수있습니다.

마지막으로 글에 링크를 많이 걸어 놓았는데요 한번쯤 찾아가 보시면 많은 도움이 되시리라 믿습니다.
그럼 더 멋진 레이아웃을 기대하며 이 글을 마칩니다.

raskolnikov
Posts: 169
Joined: 2008/04/21 Mon 12:15 am
Contact:

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

Post by raskolnikov » 2008/07/07 Mon 5:05 pm

강분도님? 콘키놀이는 어째.. 인기가 없습니다? ㅠㅠ

User avatar
suapapa
Posts: 130
Joined: 2008/04/16 Wed 3:33 pm
Location: 수아네
Contact:

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

Post by suapapa » 2008/07/08 Tue 2:11 pm

마침 저도 콩키웠습니다.
http://web.suapapa.net:8080/wordpress/?p=272

이게 아닌가?
:oops:

mara
Posts: 25
Joined: 2008/06/17 Tue 3:12 am

저도 참가해봅니다.

Post by mara » 2008/07/31 Thu 12:06 am

허접하지만.
TheRob 의 콘키 기본 골격에 날씨 스크립트 추가한 겁니다.
이것저것 좀 많이 빼버렸음에도 날씨 스크립트 넣었더니 1.5mb로 점유 메모리가 좀 높아졌네요.
그림 때문에 폰트 몇 개가 더 추가로 필요합니다.

원, 참고 사이트
[url:26vgl7s9]http://www.gnome-look.org/content/show.php/Conky+%5BTheRob%5D?content=74972[/url:26vgl7s9]
[url:26vgl7s9]http://ubuntu-utah.ubuntuforums.org/showthread.php?t=666842&highlight=conky[/url:26vgl7s9]

[code:26vgl7s9]background yes
font Snap.se:size=8
xftfont Snap.se:size=8
use_xft yes
xftalpha 0.1
update_interval 1.0
total_run_times 0
own_window yes
own_window_type override
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
draw_shades yes
draw_outline no
draw_borders no
draw_graph_borders no
minimum_size 206 5
maximum_width 206
default_color ffffff
default_shade_color 000000
default_outline_color 000000
alignment top_right
gap_x 6
gap_y 22
no_buffers yes
cpu_avg_samples 2
override_utf8_locale yes
uppercase no # set to yes if you want all text to be in uppercase
use_spacer no
use_xft yes

TEXT
${font Snap.se:size=8}${hr 1}
${color}${font Bandal:style=Bold:pixelsize=16}${alignc}${color }${time %B %e일 }${time (%a), %G년}
${font Snap.se:size=8}${voffset -5}${color1}${hr 1}
${font LCD:style=Bold:pixelsize=56}${alignc}${time %H:%M:%S}${font Snap.se:size=8}

${color}${font OpenLogos:size=12}T ${font Bandal:style=Bold:pixelsize=12}시스템${font Snap.se:size=8} ${hr 1 }
Kernel: $alignr$kernel
Uptime: $alignr$uptime
Processes: ${alignr}$processes ($running_processes running)
Load: ${alignr}$loadavg

${color}${font StyleBats:size=10}A ${font}CPU ${alignc} ${freq}MHz / ${acpitempf}°C ${alignr}(${cpu cpu1}%)
${cpubar 4 cpu1}
${color}${font StyleBats:size=10}Q ${font}RAM ${alignr}$mem / $memmax ($memperc%)
${membar 4}

${color}${font Webdings:size=10}i${font} Highest CPU $alignr CPU% MEM%
${hr 1}
${top name 1}$alignr${top cpu 1}${top mem 1}
${top name 2}$alignr${top cpu 2}${top mem 2}

${color}${font Webdings:size=10}i${font} Highest MEM $alignr CPU% MEM%
${hr 1}
${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}

${color}${font Martin Vogel's Symbols:size=12}H${font Bandal:style=Bold:pixelsize=12}인터넷 IP: ${addr eth0} ${font Snap.se:size=8}${hr 1}
Down ${downspeed eth0} k/s ${alignr}Up ${upspeed eth0} k/s
${downspeedgraph eth0 25,107 cccccc ffffff} ${alignr}${upspeedgraph eth0 25,107 cccccc ffffff}
Total ${totaldown eth0} ${alignr}Total ${totalup eth0}

${color}${font weather:size=12}g ${font Bandal:style=Bold:pixelsize=12}기상 상태${font Snap.se:size=8}${hr 1}
${execi 3600 perl ~/.scripts/weather.pl KSXX0014 c w}
${voffset -45}$alignr${offset -50}${font weather:size=45}${execi 3600 perl ~/.scripts/weather.pl KSXX0014 c cp}$font
${voffset -45}$alignr${offset -60}${execi 3600 perl ~/.scripts/weather.pl KSXX0014 c t}
${voffset 15}$alignr${offset -10}${execi 3600 perl ~/.scripts/weather.pl KSXX0014 c c}
${voffset -5}${color1}$hr[/code:26vgl7s9]
Attachments
back.png
back.png (486.66 KiB) Viewed 19286 times

mara
Posts: 25
Joined: 2008/06/17 Tue 3:12 am

conky 풀스크린

Post by mara » 2008/08/18 Mon 7:12 pm

위에 올린 파일 수정 한겁니다. 단, 이대로는 바탕화면에서 작업을 못하는 문제가 생기므로
바탕화면 안 쓰는 사람 이외엔 수정하셔서 쓰셔야겠죠. 정9 폰트, weather 폰트 필요.

링크 [url:3nnwfxvl]http://ubuntu.or.kr/download/file.php?id=1000[/url:3nnwfxvl]

[code:3nnwfxvl]#Conky
background yes
no_buffers yes
cpu_avg_samples 1
update_interval 1
total_run_times 0

#Text
uppercase no # set to yes if you want all text to be in uppercase
override_utf8_locale yes
font Bandal:size=9
xftfont Bandal:size=9
use_xft yes
xftalpha 0.1

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

#Graphics
double_buffer yes
draw_shades yes
draw_outline no
draw_borders no
draw_graph_borders no

#Layout
alignment top_left
gap_x 8
gap_y 2
minimum_size 1265 20
maximum_width 1265
use_spacer none

#Colors
default_color ffffff
default_shade_color 000000
default_outline_color 000000

TEXT
${voffset 65}${color}${font OpenLogos:size=12}T ${font} Kernel $kernel | Uptime $uptime | Processes $processes($running_processes running) | CPU ${freq}MHz/${acpitempf}°C${tab 11}${cpubar cpu1 5, 50} (${cpu cpu1}%) | RAM $mem/$memmax${tab 10}${membar 5, 50} ($memperc%) | IP: ${addr eth0} | Download ${downspeed eth0} k/s : Total ${totaldown eth0} | Upload ${upspeed eth0} k/s : Total ${totalup eth0}
${voffset 788}Weather${font Snap.se:size=8}
${execi 3600 perl ~/.scripts/weather.pl KSXX0014 c w}
${voffset -45} ${offset 100}${font weather:size=35}${execi 3600 perl ~/.scripts/weather.pl KSXX0014 c cp}$font
${voffset -12}${offset 90}${execi 3600 perl ~/.scripts/weather.pl KSXX0014 c c}
${voffset 5}${font Webdings:size=10}i${font} Highest MEM $alignc ${font Aerial:style=Bold:pixelsize=12} ${tab 100}AUDACIOUS${font} : [ ${exec audtool current-song} - ${exec audtool current-song-output-length}/${exec audtool current-song-length} ] $alignr ${font Webdings:size=10}i${font} Highest CPU
${top_mem name 1}${tab 55}${top_mem cpu 1}${top_mem mem 1} ${alignr}${top name 1} ${top cpu 1}${top mem 1}
${top_mem name 2}${tab 55}${top_mem cpu 2}${top_mem mem 2} ${alignr}${top name 2} ${top cpu 2}${top mem 2}[/code:3nnwfxvl]

날씨 스크립트 : 날씨 설정 파일. 홈폴더 아래 .scripts 로, 근데 한 주간 날씨는 안 된다는 문제가...
[code:3nnwfxvl]#!/usr/bin/perl

use Switch;
use Encode;
use Text::Wrap;


# This script was written by lvleph and inspired by the original conky weather script written by azhag (azhag@bsd.miki.eu.org)
# Modyfied by LazarusHC to list more details

$code=$ARGV[0]; #zipcode or weather.com city code
$system=$ARGV[1]; #f for imperial c for metric
$what=$ARGV[2]; #what are we looking for?
$file="/tmp/weather.html"; #temp holding weather
$update=3600; #time in seconds to update $file if set to 0 don't use $file

$leadspace=" "; #spacing before each high low
$trailspace=" "; #spacing after each high low.
$fspaces=""; #spacing between condition symbols.
$dspaces=" "; #spacing between each day
$lines="\n\n\n\n"; #each \n represents one line between the days and temps

$Text::Wrap::columns = 58;
$initial_tab=""; #tab before first line in weather output
$subsequent_tab="\t"; #tab before each subsequet line in weather output

$degree= encode_utf8( "\x{00B0}" ); #give me the degree symbol, not everyone has same locale

#ensure user inputs proper system
if($system !=~ "c" || $system !=~ "f"){$what=0;} #this will give usage error

switch($what){ #determine what user wants
case "c" { #if current conditions
&file_op; #save weather to $file
while(<FILE>){ #cycle through file
if (/<em>Current conditions/ .. /<h3>/){ #found current conditions
($cn2) = /<h3>(\b.+\b)<\/h3>/; #save current conditions
if($cn2){print "$cn2\n"; exit;}
}
}
}
case "w" { #if list
&file_op; #save weather to file
while(<FILE>){ #cycle through file
if (/<dt>Feels Like:<\/dt>/ .. /<dd>/){ #found feels like temp
($tmf) = /<dd>(-?\d+)/; #sav temp
}
if (/<dt>Humidity:<\/dt>/ .. /<dd>/){ #found current humidity
($hmt) = /<dd>(\d+\%)/; #save current humidity
}
if (/<dt>Wind:<\/dt>/ .. /<dd>/){ #found wind conditions
($wnd) = /<dd>(\b.+\b)<\/dd>/; #save wind conditions
#do we have current conditions?
if($tmf && $hmt && $wnd){
print "기온: $tmf$degree\n";
print "습도: $hmt\n";
print "바람: $wnd\n"; exit;}
}
}
}
case "cp" { #if current conditions symbol
&file_op; #save weather to $file
while(<FILE>){ #cycle through file
if (/<em>Current conditions/ .. /<h3>/){ #found current conditions
($cnd) = /<h3>(\b.+\b)<\/h3>/; #save current conditions
#do we have current conditions? Then translate into symbol
if($cnd){cond_symb($cnd); print "$ctext\n"; exit;}
}
}
}
case "t" { #if current temp
&file_op; #save weather to $file
while(<FILE>){ #cycle through file
if (/<div id="forecast-temperature">/ .. /<h3>/){ #found current temp
($tmp) = /<h3>(-?\d+)/; #save current temp
#do we have current temp? Then print
if($tmp){print "$1$degree\n"; exit;}
}
}
}
case /[1-5]d$/ { #display the days up to specified day
&file_op; #save weather to $file
my $day=(split "t", $what)[0]; #how many days are we looking for
my $count=0;
while(<FILE>){
if(/<th>(\b.+\b)<\/th>/ && ++$count<=$day){ #look for the conditions upto specified day
$days[$count-1]=$1; #save day
&day_space($days);
}
elsif($count>=$day){print "$dtext\n"; exit;} #don't keep lopking if everything has been found
}
}
case /[1-5]dp$/ { #display the conditions from today through day $days
&file_op; #save weather to $file
my $day=(split "p", $what)[0]; #how many days are we looking for
my $flag=0; #set flag for when we find start of conditions
my $count=0;
while(<FILE>){
if(/^<tr class="titles">\s*$/){$flag=1;} #found the start of conditions
elsif($flag && /(\b.+\b)<\/td>/ && ++$count<=$day){ #look for the conditions upto specified day
$cnd[$count-1]=$1; #save conditions
&cond_symb ($cnd[$count-1]); #translate conditions to symbol
#exit;
}
elsif($count>=$day){print "$ctext\n"; exit;} #don't keep looking if everything has been found
}
}
case /[1-5]t$/ { #display the temps from today through day $days
&file_op; #save weather to $file
my $count=0;
my $day=(split "t", $what)[0]; #how many days are we looking for
while(<FILE>){
#get the high temp
(my $high) = /<td><strong>High: (-?\d+)&deg;<\/strong><span>Low: \-?\d+&deg;<\/span><\/td>/;
#get the low temp
(my $low) = /<td><strong>High: \-?\d+&deg;<\/strong><span>Low: (-?\d+)&deg;<\/span><\/td>/;
#print the high and low temp for the specified day
if($high=~/\d+/ && $low=~/\d+/ && ++$count<=$day){print "$leadspace$high$degree/$low$degree$trailspace";}
elsif($count>=$day){print "\n"; exit;} #don't keep looking if everything has been found
}
}
case /[1-5]dt$/ {
&file_op; #save weather to $file
my $count1 = my $count2=0;
my $day=(split "dt", $what)[0]; #how many days are we looking for
my $flag=1; #print days once
while(<FILE>){
#get the high temp
(my $high) = /<td><strong>High: (-?\d+)&deg;<\/strong><span>Low: \-?\d+&deg;<\/span><\/td>/;
#get the low temp
(my $low) = /<td><strong>High: \-?\d+&deg;<\/strong><span>Low: (-?\d+)&deg;<\/span><\/td>/;
#print the high and low temp for the specified day
if(/<th>(\b.+\b)<\/th>/ && ++$count1<=$day){ #look for the conditions upto specified day
$days[$count1-1]=$1; #save day
&day_space($days);
}
elsif($high=~/\d+/ && $low=~/\d+/ && ++$count2<=$day){$ttext.=$leadspace.$high.$degree."/".$low.$degree.$trailspace;}
elsif($count1>=$day && $count2>=$day){print "$dtext\n$lines$ttext\n"; exit;} #don't keep lopking if everything has been found
}
}
case /[1-7]w$/ { #display the weather forecast in words from today through day $days
&file_op; #save weather to $file
my $num=(split "w", $what)[0]; #how many are we looking for
my $count=0; #initialize count
while(<FILE>){ #cycle through file
#get the weather
(my $when) = /<li><strong>(\b.+\b\:)<\/strong>/;
(my $weather) = /<\/strong>(.+)<\/li>/;
$weather=$when.$weather;
#print weather
if($when && ++$count<=$num){
#print "$when";
print wrap($initial_tab, $subsequent_tab, $weather);
print "\n";
}
elsif($count>=$num){exit;} #don't keep looking if everything has been found
}
}
case /[1-5]p$/ { #if conditions of specified day
&file_op; #save weather to $file
my $day=(split "p", $what)[0]; #what day are we looking for
my $flag=0; #set flag for when we find start of conditions
my $count=0;
while(<FILE>){
if(/^<tr class="titles">\s*$/){$flag=1;} #found the start of conditions
elsif($flag && /(\b.+\b)<\/td>/ && ++$count==$day){ #look for the conditions for specified day
$cnd=$1; #save conditions
&cond_symb ($cnd); #translate conditions to symbol
}
elsif($count>=$day){print "$ctext\n"; exit;} #don't keep looking if everything has been found
}
}
case /[1-5]$/ { #if temp of specified day
&file_op; #save weather to $file
while(<FILE>){
#get the high temp
($high) = /<td><strong>High: (-?\d+)&deg;<\/strong><span>Low: \-?\d+&deg;<\/span><\/td>/;
#get the low temp
($low) = /<td><strong>High: \-?\d+&deg;<\/strong><span>Low: (-?\d+)&deg;<\/span><\/td>/;
#print the high and low temp for the specified day
if($high && $low && ++$count==$what){print "$high$degree/$low$degree\n";}
}
}
else { #didn't give proper options
&usage; #print usage error
}
}

#print "\n"; # need endline to make things look nice

close FILE;

sub file_op { #do file operations
if(-e $file ){ #does the file exist and is not empty?
my $size=`stat -c %s $file`;
if($size >= 1000){
my $date=`date -u +%s`; #get current date in seconds
my $created=`stat -c %Y $file`; #get creation date of file in seconds
$age=$date - $created; #determine age of file
}
else{
$age=$update+1;
}
}
else{ #if file doesn't exist make it and set to update the file
`touch $file`;
$age=$update+1;
}

if ($age>=$update){ #only get a new file every hour
#obtain the weather forecast and store it in $file
`wget -O - http://weather.yahoo.com/forecast/"$code"_"$system".html > $file`;
}
open(FILE, $file) or die "Could not open file $file: $!\n";
}

sub usage { #if correct options haven't been passed usage error
print "Usage error weather.pl <citycode> <system> <option>\n";
print "weather.pl <citycode> <system> <option>\n";
print "\t<citycode> - weather.com city code\n";
print "\t<system> - c for metric or f for imperial\n";
print "\t<option> - Only one option can be entered at a time\n";
print "\t\tc displays current conditions\n";
print "\t\tw displays list of current conditions\n";
print "\t\tcp displays current conditions symbol\n";
print "\t\tt displays current temp in chosen system\n";
print "\t\t[1-5]d displays the days up to specified day\n";
print "\t\t[1-5]dp displays condition symbol for days up to specified day\n";
print "\t\t[1-5]t displays high/low temp in chosen system up to specified day\n";
print "\t\t[1-5]dt displays days and then high/low temp in chosen system up to specified day\n";
print "\t\t[1-7]w displays the weather in words up number specified\n";
print "\t\t[1-5]p displays conditions for specified day\n";
print "\t\t[1-5] displays high/low temp in chosen system for specified day\n";
}

sub cond_symb { #translates conditions into symbol in weather font
if ($_ =~ "Partly Cloudy"){$_="c";}
elsif ($_ =~ "Fair" || $_ =~ "Sun" || $_ =~ "Clear"){$_="A";}
elsif ($_ =~ "Cloud" || $_ =~ "Fog"){$_="e";}
elsif ($_ =~ "Storm" || $_ =~ "Thunder" || $_ =~ "T-"){$_="i";}
elsif ($_ =~ "Snow" || $_ =~ "Flurries" || $_ =~ "Wintry"){$_="k";}
elsif ($_ =~ "Rain" || "Drizzle"){$_="h";}
elsif ($_ =~ "Shower"){$_="g";}
$ctext.=$_.$fspaces;
}

sub day_space { #Adds spaces for aligment
if ($_ =~ "Today"){$_=" Today ";}
elsif ($_ =~ "Tonight"){$_="Tonight";}
elsif ($_ =~ "Tomorrow"){$_="Tomorrow";}
elsif ($_ =~ "Thu"){$_=" Thu ";}
elsif ($_ =~ "Fri"){$_=" Fri ";}
elsif ($_ =~ "Sat"){$_=" Sat ";}
elsif ($_ =~ "Sun"){$_=" Sun ";}
elsif ($_ =~ "Mon"){$_=" Mon ";}
elsif ($_ =~ "Tue"){$_=" Tue ";}
elsif ($_ =~ "Wed"){$_=" Wed ";}
$dtext.=$_.$dspaces;
}[/code:3nnwfxvl]

dmsqls7353
Posts: 57
Joined: 2009/01/16 Fri 9:30 pm

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

Post by dmsqls7353 » 2009/01/19 Mon 3:19 pm

아직 초보라서 코드가 복잡할 수 있습니다 ^^

[code:13b4gds9]
background no

use_xft yes

xftfont Terminus:size=10

xftalpha 0.8

update_interval 0.2 <원하는것으로 바꾸세요. (단위: 초)

total_run_times 0

own_window no

double_buffer yes

minimum_size 250 1

draw_shades yes

draw_outline no

draw_borders no

stippled_borders 8

border_margin 1

border_width 1

default_color white
default_shade_color black
default_outline_color white

alignment top_right

gap_x 1
gap_y 1

no_buffers yes

uppercase no

cpu_avg_samples 2

net_avg_samples 2

override_utf8_locale yes

use_spacer yes

TEXT



${font eunjin}${alignc}${time %Y년 %m월 %d일}
${color yellow}--------------------------------
${offset 54}${color white}${font bandal:size=32}${time %H:%M:%S}${font}
${color yellow}--------------------------------${color}

${font eunjin:style=Bold:size=9}시스템 상태${hr 2}${font}
${font terminus:style=Bold}${color red}Kernel:${font} ${color white}${alignr}$kernel
${font terminus:style=Bold}${color orange}UpTime:${font} ${color }${alignr}$uptime
${font terminus:style=Bold}${color yellow}CPU:${font}${alignr}${color } $cpu% ${acpitemp}C
${offset 7}${cpugraph 20,250 000000 ffffff}
${font terminus:style=Bold}${color green}MEM:${font}${color }${alignr}$memperc% $mem/$memmax
${offset 7}${membar 10,250}
${font terminus:style=Bold}${color cyan}Load:${font}${alignr}${color }$loadavg

${offset 15}${color #CCCCCC}${font eunjin:size=9}프로세스${hr 1}${font}
${offset 15}${color slate grey}${font terminus:style=Bold}Processes:${font}${alignr}${color }$processes
${offset 15}${color slate grey}${font terminus:style=Bold}Running:${font}${alignr}${color }$running_processes

${offset 20}${font eunjin:size=9}Highest CPU${hr 1}
${offset 20}${color #FF9900}${font terminus:size=8}${top name 1}$alignr${top_mem cpu 1}${top_mem mem 1}
${offset 20}${color #FFCC00}${top name 2}$alignr${top_mem cpu 2}${top_mem mem 2}
${offset 20}${top name 3}$alignr${top_mem cpu 3}${top_mem mem 3}${color }${font}

${offset 20}${font eunjin:size=9}Highest MEM${hr 1}
${offset 20}${color #FF9900}${font terminus:size=8}${top_mem name 1}$alignr${top_mem cpu 1}${top_mem mem 1}
${offset 20}${color #FFCC00}${top_mem name 2}$alignr${top_mem cpu 2}${top_mem mem 2}
${offset 20}${top_mem name 3}$alignr${top_mem cpu 3}${top_mem mem 3}${font}
${offset 15}${color #CCCCCC}${hr 1}${color }

${color}${font eunjin:size=9:style=Bold}하드디스크${hr 2}${font}
${color red}${font terminus:style=Bold}ROOT:${font}${color }${alignr}${fs_used /}/${fs_size /}
${fs_bar 20,250 /}
${color orange}${font terminus:style=Bold}SWAP:${font}${color }${alignr}$swap/$swapmax
${swapbar 20,250}
${color yellow}${font terminus:style=Bold}HOME02_DATA:${font}${color}${alignr}${fs_used /media/HOME02_DATA}/${fs_size /media/HOME02_DATA}
${fs_bar 20,250 /media/HOME02_DATA}

${color }${font eunjin:size=9:style=Bold}네트워크${hr 2}${font}
${color slate grey}${font terminus:style=Bold}IP Address:${color }${font}${alignr}${addr eth0}

${font terminus:style=Bold}${color red}Down ${font}${color}${downspeed eth0} k/s${alignr}${font terminus:style=Bold}${color green}Up ${font}${color}${upspeed eth0} k/s
${downspeedgraph eth0 30,107 cccccc ffffff} ${alignr}${upspeedgraph eth0 30,107 cccccc ffffff}
Total ${totaldown eth0} ${alignr}Total ${totalup eth0}
[/code:13b4gds9]
Attachments
conky.png
conky.png (83.99 KiB) Viewed 15892 times
수능이 끝나 들뜬 상태에 있는 물질입니다.
현재 진행중인 놀이: Base16KR (한글을 이용한 바이너리 데이터의 표현) - Click Here!!

dmsqls7353
Posts: 57
Joined: 2009/01/16 Fri 9:30 pm

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

Post by dmsqls7353 » 2009/01/21 Wed 3:22 pm

위에것을 변형해서 아래로 붙여보았습니다...

TEXT 부분만 올립니다..
[code:2atygltf]
TEXT
${font terminus:style=Bold:size=14}${color slate grey}Linux ${color }$kernel${font terminus:style=Bold}${alignr}${color slate grey}Now[${color }${time %Y-%m-%d %H:%M:%S}${color slate grey}]${color } / ${color slate grey}UpTime[${color}$uptime${color slate grey}]${color}
${hr 2}
${font terminus:style=Bold}${color slate grey}CPU: ${font}${color } $cpu% ${acpitemp}C / ${font terminus:style=Bold}${color slate grey}Load: ${font}${color }$loadavg${alignr}${font terminus:style=Bold}${color slate grey}MEM: ${font}${color }$memperc% $mem/$memmax
${cpugraph 20,310 ffffff ffffff}${alignc}${font terminus:size=14:style=Bold}${offset 128}Running Processes:${color slate grey}$running_processes/$processes${color }${font }${alignr}${membar 20,240}
${font terminus:style=Bold}${color slate grey}Highest CPU${alignr}Highest MEM${font}${color}
${color #FF9900}${font terminus:size=8}${top_mem cpu 1} ${top name 1}$alignr${top_mem name 1}${top_mem mem 1}
${color #FFCC00}${top_mem cpu 2} ${top name 2}$alignr${color #FFCC00}${top_mem name 2}${top_mem mem 2}${color}${font}
${hr 2}
${color slate grey}${font terminus:style=Bold}ROOT: ${font}${color } ${fs_used /}/${fs_size /} ${color slate grey}${font terminus:style=Bold} HOME02_DATA:${font}${color} ${fs_used /media/HOME02_DATA}/${fs_size /media/HOME02_DATA}${alignr}${color slate grey}${font terminus:style=Bold}SWAP:${font}${color } $swap/$swapmax
${fs_bar 20,250 /} ${fs_bar 20,250 /media/HOME02_DATA}${alignr}${swapbar 20,250}
${color }${hr 2}
${font terminus:style=Bold}${color red}Down ${font}${color}${downspeed eth0} k/s${alignr}${font terminus:style=Bold}${color green}Up ${font}${color}${upspeed eth0} k/s
${downspeedgraph eth0 25,110 cccccc ffffff}${alignc}${offset 50}${color slate grey}${font terminus:style=Bold:size=14}IP Address: ${color }${addr eth0}${font}${alignr}${upspeedgraph eth0 25,107 cccccc ffffff}
${font terminus:size=8}${color orange}Total ${totaldown eth0} ${alignr}Total ${totalup eth0}${font}${color}
${hr 2}
[/code:2atygltf]
Attachments
conkyshot.png
conkyshot.png (180.39 KiB) Viewed 15799 times
수능이 끝나 들뜬 상태에 있는 물질입니다.
현재 진행중인 놀이: Base16KR (한글을 이용한 바이너리 데이터의 표현) - Click Here!!

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

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

Post by bluelenz » 2009/01/24 Sat 9:49 pm

[attachment=0:35ghzbqm]
sss.png
sss.png (289.7 KiB) Viewed 15706 times
[/attachment:35ghzbqm]
현재는 왼쪽처럼 screenlets 의 perfectclock 을 추가해서 이렇게 쓰고 있구요
예전엔 오른쪽처럼 날씨를 넣어서 좀더 길게 썼습니다

왼쪽 건
[code:35ghzbqm]
background no
font Bandal:size=10
#xftfont Bandal:size=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 220 5
maximum_width 220
draw_shades yes
draw_outline no
draw_borders no
#border_width 5
#border_margin 10
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 SDKwangSoo M:size=20}${time %B %d}일(${time %a})${font}${font Sequence BRK:size=20}${alignr}${time %H:%M}${font}
${font Bandal:size=11}${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 25,107} ${alignr}${cpugraph cpu2 25,107}

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}

${font Bandal:size=11}${color gray}FILESYSTEM ${hr 1}${color}${font}

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

${font Bandal:size=11}${color gray}NETWORK ${hr 1}${color}${font}

IP: ${alignr}${addr eth0}

Down ${downspeed eth0} k/s ${alignr}Up ${upspeed eth0} k/s
${downspeedgraph eth0 25,107} ${alignr}${upspeedgraph eth0 25,107}
Total ${totaldown eth0} ${alignr}Total ${totalup eth0}

${font Bandal:size=11}${color gray}${hr 1}${color}${font}
[/code:35ghzbqm]

그리고 날씨 포함된 오른쪽 건
[code:35ghzbqm]
background no
font Bandal:size=10
#xftfont Bandal:size=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 220 5
maximum_width 220
draw_shades yes
draw_outline no
draw_borders no
#border_width 5
#border_margin 10
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 SDKwangSoo M:size=20}${time %B %e}일 (${time %a})${font}${font Sequence BRK:size=20}${alignr}${time %H:%M}${font}
${color white}SYSTEM ${hr 1}${color}

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

CPU: ${alignr}${freq} MHz
Processes: ${alignr}${processes} (${running_processes running})
Load: ${alignr}$l{oadavg}

CPU1 ${alignr}${cpu cpu1}%
${cpubar cpu1 4}
CPU2 ${alignr}${cpu cpu2}%
${cpubar cpu2 4}
${cpugraph cpu1 25,107} ${alignr}${cpugraph cpu2 25,107}

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}

${color white}FILESYSTEM ${hr 1}${color}

Root: ${alignr}${fs_free /} / ${fs_size /}
${fs_bar 4 /}

${color white}NETWORK ${hr 1}${color}

Down ${downspeed eth0} k/s ${alignr}Up ${upspeed eth0} k/s
${downspeedgraph eth0 25,107} ${alignr}${upspeedgraph eth0 25,107}
Total ${totaldown eth0} ${alignr}Total ${totalup eth0}

${color white}WEATHER ${hr 1}${color}

Anyang
${execi 1800 ~/scripts/weather.sh KSXX0002}

Songnam
${execi 1800 ~/scripts/weather.sh KSXX0024}

Seoul
${execi 1800 ~/scripts/weather.sh KSXX0037}
[/code:35ghzbqm]

근데 날씨 포함했던 건 세로가 길어지다보니 뺀게 좀 있군요
사용하실 분은 적절히 골라서 편집하시면 될 것 같습니다

그리고 날씨 포한한 건 conky 만으로는 날씨가 안 나오구요
curl 을 설치하고( sudo apt-get install curl )
~/scripts/weather.sh 파일과
~/scripts/weather.xslt 파일이 필요합니다

weather.sh
[code:35ghzbqm]
#!/bin/sh

#
# Grab weather data from weather.com and format it according to the given XSLT
# Script written by boojit
# Modified by Hellf[i]re
# The orignal script and xslt can be downloaded from http://pondol.com/weather.tar.gz

# Usage:
# ${execi 1800 /home/johan/.weather.sh SWXX0006}
# Usage Example:
# ${execi 1800 /home/user/weather/weather.sh 03833}

# your Location ID: use http://xoap.weather.com/search/search?where=[yourcity] to find it
# U.S. users can just use their zip code; doubt that works for anyone else though (YMMV)
LOCID=$1

# s=standard units, m=metric units
UNITS=m

# where this script and the XSLT lives
RUNDIR=~/scripts

# there's probably other stuff besides CURL that will work for this, but i haven't
# tried any others.
# you can get curl at http://curl.haxx.se/
CURLCMD=/usr/bin/curl

# get it at http://xmlsoft.org/XSLT/
XSLTCMD=/usr/bin/xsltproc

# you probably don't need to modify anything below this point....

# CURL url. Use cc=* for current forecast or dayf=10 to get a multi-day forecast
CURLURL="http://xoap.weather.com/weather/local/$LOCID?cc=*&unit=$UNITS&dayf=2"

# The XSLT to use when translating the response from weather.com
# You can modify this xslt to your liking
XSLT=$RUNDIR/weather.xslt

#filter (if you want to convert stuff to lower-case or upper case or something)
#FILTER="|gawk '{print(tolower(\$0));}'"


#####
eval "$CURLCMD \"$CURLURL\" 2>/dev/null| $XSLTCMD $XSLT - $FILTER"
[/code:35ghzbqm]

weather.xslt
[code:35ghzbqm]
<!--

This XSLT is used to translate an XML response from the weather.com
XML API.

You can format this file to your liking. Two things you may feel
like doing:

1) Modify the layout of the fields or static text already defined
2) Add other fields from the XML response file that aren't referenced in this
XSLT. You can grab a full list by just doing a:
wget "http://xoap.weather.com/weather/local/$LOCID?cc=*&unit=$UNITS"
(change $LOCID and $UNITS to suit your needs)
-->

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" >
<xsl:output method="text" disable-output-escaping="yes"/>
<xsl:template match="weather">
<xsl:apply-templates select="cc"/>
<xsl:apply-templates select="dayf/day[@d='1']"/>
</xsl:template>


<xsl:template match="cc">

<xsl:text> Temperature: </xsl:text><xsl:value-of select="tmp"/><xsl:value-of select="/weather/head/ut"/><xsl:if test="tmp != flik"> (Feel: <xsl:value-of select="flik"/><xsl:value-of select="/weather/head/ut"/>)</xsl:if>
<xsl:text>
Conditions: </xsl:text><xsl:value-of select="t"/>
<xsl:text>
Wind: </xsl:text>
<xsl:choose>
<xsl:when test="wind/s = 'calm'"><xsl:text>0</xsl:text></xsl:when>
<xsl:otherwise><xsl:value-of select="wind/s"/></xsl:otherwise>
</xsl:choose>
<xsl:value-of select="/weather/head/us"/>
<xsl:choose>
<xsl:when test="wind/s = 'calm'"><xsl:text>(0mph)</xsl:text></xsl:when>
<xsl:otherwise><xsl:text> (</xsl:text><xsl:value-of select="round(wind/s * 0.6214)"/><xsl:text>mph)</xsl:text></xsl:otherwise>
</xsl:choose>
<xsl:text> (</xsl:text><xsl:value-of select="wind/t"/>
<xsl:text>)</xsl:text>
</xsl:template>

<xsl:template match="dayf/day[@d='1']">
<xsl:text>
Tomorrow:
</xsl:text><xsl:value-of select="low"/><xsl:value-of select="/weather/head/ut"/>
<xsl:text> to </xsl:text><xsl:value-of select="hi"/><xsl:value-of select="/weather/head/ut"/>
<xsl:text>, </xsl:text><xsl:value-of select="part[@p='d']/t"/>
</xsl:template>
</xsl:stylesheet>
[/code:35ghzbqm]

만든지 오래 된 파일이라서 세세한 내용은 잘 기억 안 나구요; 좀 지저분합니다

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

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

Post by seungje » 2009/01/28 Wed 4:41 pm

[quote="강분도":20rlfmw6][b:20rlfmw6]콘키(conky)[/b:20rlfmw6]는 적은 메모리(400K) 를 사용 하면서 시스템의 상황을 보여 주는 매력 적인 프로그램 입니다.

[code:20rlfmw6]# Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes[/code:20rlfmw6]
[/quote:20rlfmw6]

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

KLDP의 예전 문서를 뒤져보니

[quote:20rlfmw6]8.1 conky 화면이 깜빡거릴때는
/etc/X11/xorg.conf에 모듈부분에 Load "dbe" 를 추가해주세요 (더블 버퍼링)[/quote:20rlfmw6]

이라고 나오긴 하는데, 저의 xorg.conf(우분투8.10)는 아예 모듈 섹션이 없군요. -@-



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

원래 이런건지, 아니면 무언가 옵션을 수정해주면 해결이 될 수 있는건지 궁금하네요. :shock:
SeuNgjE

Post Reply