« 在 Ubuntu 啟用 FrameBuffer Console | 首頁 | 保留 ACL (Access Control List) 屬性的檔案處理指令 »
2008年12月14日
Conky - 美觀又實用的桌面工具
系統環境: Ubuntu 8.04 (Hardy), Gnome desktop,
Conky 1.5.1
桌布來源:
DanielSmithDesigns Weblog - Gray Moon Wallpaper
sudo vi /etc/apt/sources.list
#加入:
deb http://ppa.launchpad.net/m-buck/ubuntu hardy main
sudo apt-get update
sudo apt-get install conky conkyemail conkyforecast hddtemp
到 Weather.com 申請帳號, 取得 Partner ID 與 License Key (免費)
到 Yahoo! Weather 查詢台灣各城市代碼 (記下自己所在或鄰近城市的 TWXX... 代碼)
到 1001Fonts.com 下載 Radio Space 字型, 將 radio.ttf 解壓縮到 ~/.fonts, 並執行 fc-cache -fv
mkdir ~/bin
vi ~/bin/gethddtemp.sh
#!/bin/sh
sudo hddtemp /dev/sda | awk '{print $NF}'
chmod +x ~/bin/gethddtemp.sh
cp /usr/share/conkyforecast/conkyForecast.config ~/.conkyForecast.config
vi ~/.conkyForecast.config
CACHE_FOLDERPATH = /tmp/
CONNECTION_TIMEOUT = 5
EXPIRY_MINUTES = 30
TIME_FORMAT = %H:%M
DATE_FORMAT = %Y-%m-%d
LOCALE = en
XOAP_PARTNER_ID = your_partner_id
XOAP_LICENCE_KEY = your_license_key
zcat /usr/share/doc/conky/examples/conky.conf.gz > ~/.conkyrc
vi ~/.conkyrc
background yes
use_xft yes
xftfont Bitstream Vera Sans Mono:size=8
xftalpha 0.8
mail_spool $MAIL
update_interval 5.0
total_run_times 0
own_window no
own_window_type desktop
own_window_transparent yes
own_window_colour black
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager (取消註解)
double_buffer yes
minimum_size 280 5
draw_shades yes
draw_outline no
draw_borders no
draw_graph_borders no
stippled_borders 8
border_margin 4
border_width 1
default_color white
default_shade_color black
default_outline_color black
alignment middle_right
gap_x 12
gap_y 12
no_buffers yes
uppercase no
cpu_avg_samples 2
net_avg_samples 2
override_utf8_locale yes
use_spacer none
conky
Links:
Posted by Jamyy at 2008年12月14日 00:09