본문 바로가기

리눅스

conky 우측 + 하단 2개로 설정 변경~



오른쪽 설정은 아래 패키지가 필요합니다.

aur/conky-forecast 2.09-1 [installed] (155)   <<- 이넘은 싸이트 가입해서 코드 config에 등록해야하는듯
    Provides weather forecast information to be dislayed in conky.
aur/conky-google-calendar-bzr 24-1 [installed] (35)
    Provides calendar information to be dislayed in conky.


오른쪽 conky설정

# Generated by Conky GUI
# Check http://conkygui.sourceforge.net/
# For the latest version of Conky GUI

#27-11월-09 01:06:55 오전
#
#

# Conky
background yes
no_buffers yes
out_to_console no
top_cpu_separate no
max_port_monitor_connections 256
cpu_avg_samples 2
net_avg_samples 2
total_run_times 0
update_interval 1
music_player_interval 3

# Text
uppercase no
override_utf8_locale yes
short_units no
pad_percents 0
text_buffer_size 2048
max_user_text 16384
font Bitstream Charter:style=Regular
use_xft yes
xftalpha 0.8
xftfont DejaVu Sans:size=8

own_window yes

# 자체창을 투명화
own_window_transparent yes
own_window_type normal
own_window_hints undecorate,sticky,skip_taskbar,skip_pager

#테두리 표시
draw_borders no



# Graphics
double_buffer yes
draw_borders no
draw_graph_borders no
draw_shades no
draw_outline no
stippled_borders 0
max_specials 512

# Layout
alignment top_right
gap_x 5
gap_y 50
maximum_width 200
minimum_size 180 0
use_spacer none
border_margin 1
border_width 1

# Colors
default_color ffffff
default_outline_color ffffff
default_shade_color c0c0c0
color0 ff0000
color1 0000ff
color2 ffff00
color3 00ff00
color4 ffafaf
color5 ffc800
color6 ff00ff
color7 00ffff
color8 808080
color9 404040

# Net
mpd_host localhost
mpd_port 6600
mpd_password
imap    -i 0 -f  -p 0 -e

# stuff after 'TEXT' will be formatted on screen

TEXT
${font Eunjin:size=9}${color C1F8A8}날짜/시간  ${color}${font}${color white}${hr 2}
${font Eunjin:pixelsize=13}${alignc}${time %Y년 %m월 %d일 %A}${font}

${alignc 1}${font Eunjin black:size=19}${time %l:%M %P}${font}

${color}${font DejaVu Sans Mono:size=11}${execpi 60 LANG="en_US.utf-8" DJS=`date +%_d`; cal | sed '1d' | sed '/./!d' | sed 's/$/                     /' | fold -w 21 | sed -n '/^.\{21\}/p' | sed 's/^/${alignr} /' | sed /" $DJS "/s/" $DJS "/" "'${color tan2}'"$DJS"'${color}'" "/;LANG="ko_KR.utf-8"}
${font Eunjin:size=9}${color C1F8A8}인천 날씨  ${color}${font}${color white}${hr 2}

${voffset -10}${alignr 80}${font ConkyWeather:style=Bold:size=45}${execi 600 conkyForecast --location=KSXX0009 --datatype=WF}${font}
${voffset -50}${font Weather:size=40}y${font}  ${voffset -38}${font Arial Black:size=26}${execi 600 conkyForecast --location=KSXX0009 --datatype=HT}${font}

${voffset 0}${alignc 40}${execpi 600 conkyForecast --location=KSXX0009 --datatype=DW --startday=1 --shortweekday} ${alignc 5}${execpi 600 conkyForecast --location=KSXX0009 --datatype=DW --startday=2 --shortweekday} ${alignc -34}${execpi 600 conkyForecast --location=KSXX0009 --datatype=DW --startday=3 --shortweekday} ${alignc -69}${execpi 600 conkyForecast --location=KSXX0009 --datatype=DW --startday=4 --shortweekday}
${voffset 0}${alignc 75}${font ConkyWeather:size=30}${execpi 600 conkyForecast --location=KSXX0009 --datatype=WF --startday=1 --endday=4 --spaces=1}${font}
${voffset 0}${font DejaVu Sans:size=7}${alignc 25}${execpi 600 conkyForecast --location=KSXX0009 --datatype=HT --startday=1 --hideunits --centeredwidth=3}/${execpi 600 conkyForecast --location=KSXX0009 --datatype=LT --startday=1 --hideunits --centeredwidth=3} ${alignc -9}${execpi 600 conkyForecast --location=KSXX0009 --datatype=HT --startday=2 --hideunits --centeredwidth=3}/${execpi 600 conkyForecast --location=KSXX0009 --datatype=LT --startday=2 --hideunits --centeredwidth=3} ${alignc -42}${execpi 600 conkyForecast --location=KSXX0009 --datatype=HT --startday=3 --hideunits --centeredwidth=3}/${execpi 600 conkyForecast --location=KSXX0009 --datatype=LT --startday=3 --hideunits --centeredwidth=3} ${alignc -75}${execpi 600 conkyForecast --location=KSXX0009 --datatype=HT --startday=4 --hideunits --centeredwidth=3}/${execpi 600 conkyForecast --location=KSXX0009 --datatype=LT --startday=4 --hideunits --centeredwidth=3}${font}

${font Eunjin:size=9}${color C1F8A8} 구글일정 ${color}${color white}${hr 2}
${execi 5000 conkyGoogleCalendar -u linukizx -p 구글암호 -d 5 --limit=4 --maxwidth=30 --nowho --timeformat="%l:%M %P" --dateformat="%y/%m/%d %a"}${font}
${font Eunjin:size=9}${color C1F8A8}메모 ${color}${font}${color white}${hr 2}
${font Eunjin:size=9}${execi 2000 cat ~/.conky/note.txt}${font}

${font Eunjin:size=9}${color C1F8A8}카운트다운 ${color}${font}${color white}${hr 2}
${font Eunjin:size=9}네트워크 관리사2급 시험
${execpi 1000 ~/.conky/countdown.sh 20091129}${font}

${font Eunjin:size=9}${color C1F8A8}MPD ${color}${font}${color white}${hr 2}
${color a4a4a4}${alignc 2}${font Daum_Regular:size=9}${color DAA520}
${alignc}${voffset -15}${mpd_status}
${color C1F8A8}Random:${color a4a4a4}${alignr}${mpd_random}
${color C1F8A8}Artist: ${color white}${mpd_artist}
${color C1F8A8}Title: ${color white}${mpd_title}
${color C1F8A8}Album: ${color white}${mpd_album}
${color white}${mpd_elapsed}${alignr}${mpd_length}
${color C1F8A8}${mpd_bar 3,200}${font}





conky 하단설정

#더블 버퍼 사용 여부 : 깜빡임 방지(버퍼를 켜도 속도저하 적음)
double_buffer yes

# 데몬형태로 실행 여부 (1, 0으로 결정)
background 0

# 항상 위
on_botton 0

#own window to run simultanious 2 or more conkys
own_window yes

# 자체창을 투명화
own_window_transparent yes
own_window_type normal
own_window_hints undecorate,sticky,skip_taskbar,skip_pager

#테두리 표시
draw_borders no
border_margin 1

#그림자 표시
draw_shades no

#위치
gap_x 1
gap_y 1

# conky의 화면 위치 (bottom_left는 왼쪽 하단부터 표시됨)
alignment bottom_left

# 업데이트 주기 (초 단위)
update_interval 5

#color
default_color  ffffff

#default_shade_color 000000

# 배경색상
own_window_colour 536f97

# XFT 사용 여부
use_xft yes

# 사용 폰트 및 크기 지정
xftfont Eunjin:pixelsize=11

#to prevent window from moving
use_spacer yes

# 최소 사이즈 지정 (배경색상 지정시 추천)
minimum_size 1275 0

# mpd (뮤직 플레이어 데몬)
mpd_host localhost
mpd_port 6600

# 실제 conky 표시 설정 (TEXT 밑부분)
TEXT
 호 스트명 : ${color 000000} ${nodename} ${color} 타입: ${color 000000} ${sysname} ${color} | 커널: ${color 000000}${kernel} ${color} | 업타임: ${color 000000}${font}${uptime_short}${color} | 하드디스크 ${color}Linux : ${color 000000}${font}${fs_free /} ${fs_bar 10,20 /}${color} Data1: ${color 000000}${font}${fs_free /media/data} ${fs_bar 10,20 /media/data} ${color} Data2 ${color 000000}${font}${fs_free /media/data2} ${fs_bar 10,20 /media/data2}${color} p2p ${color 000000}${font}${fs_free /media/p2p} ${fs_bar 10,20 /media/p2p}${color}
 CPU: ${color 000000}${font}${freq_g}GHz ${cpu cpu0}% ${color}/${color 000000} ${cpu cpu1}% ${cpubar 10,20}${color} | 메모리: ${color 000000}${font}${memperc}%  ${membar 10,20}${color}   |  스왑: ${color 000000}${font}${swapperc}% ${swapbar 10,20} ${color} |  ${color}프로세스: ${color 000000}${font}${processes}${color} | ${color}  LAN: 다운: ${color 000000}${font}${downspeed eth0} ${color}/${color 000000} ${color} 업: ${color 000000}${upspeed eth0} ${color} | 포트 ssh: ${color 000000}${tcp_portmon 22 22 count} ${color} ftp:${color 000000} ${tcp_portmon 21 21 count} ${color} web: ${color 000000}${tcp_portmon 80 80 count} ${color}smb: ${color 000000}${tcp_portmon 445 445 count}${color} ${alignr 5} ${color 000000} ${color} 날짜:${color 000000} ${time %Y /%m /%d /%a} ${color} 시간:${color 000000}${time %l:%M %p}

'리눅스' 카테고리의 다른 글

리눅스 cron을 이용한 정각알림 설정  (2) 2009.12.04
Conky_Mira  (3) 2009.11.17
fsarchiver 백업 / 복구 후기  (2) 2009.11.13