2009年9月5日 星期六

ubuntu9.04再一個輕量級桌面icewm



















icewm套件庫中就有,linux還有好幾個桌面有空再來完看看,比較低階電腦用這些桌面很適合(大約使用100M的RAM,上上網,聽音樂,看一般電影,超好用的)

1.中文字型,依樣畫葫蘆(根據前面找到字型),這次我寫了一個小bash shell來替換,一次把主題全改成中文

icewm.sh(用sudo來執行)下載
=============================================================================
#!/bin/sh
for directory in `ls /usr/share/icewm/themes/ `
do
if [ -d "/usr/share/icewm/themes/$directory" ]
then
for file in `ls /usr/share/icewm/themes/$directory/*.theme`
do
if [ -f "$file" ]
then
#echo "$file"
cat add.txt>> "$file"
fi
done
fi
done

add.txt檔放字型下載
==============================================================
#FONTS#########################################################

TitleFontName="-*-AR PL UKai TW MBE-bold-r-normal-*-*-120-*-*-p-*--*-*"
TitleFontNameXft="AR PL UKai TW MBE:size=15:medium"

MenuFontName="-*-sans-bold-r-normal-*-*-110-*-*-p-*--*-*"
MenuFontNameXft="AR PL UKai TW MBE:size=15:medium"

NormalTaskBarFontName="-*-AR PL UKai TW MBE-medium-r-normal-*-*-100-*-*-p-*--*-*"
NormalTaskBarFontNameXft="AR PL UKai TW MBE:size=10:medium"

ActiveTaskBarFontName="-*-AR PL UKai TW MBE-bold-r-normal-*-*-100-*-*-p-*--*-*"
ActiveTaskBarFontNameXft="AR PL UKai TW MBE:size=10:bold"

NormalButtonFontName="-*-AR PL UKai TW MBE-medium-r-normal-*-*-100-*-*-p-*--*-*"
NormalButtonFontNameXft="AR PL UKai TW MBE:size=10:medium"

ActiveButtonFontName="-*-AR PL UKai TW MBE-bold-r-normal-*-*-100-*-*-p-*--*-*"
ActiveButtonFontNameXft="AR PL UKai TW MBE:size=10:bold"

LabelFontName="-AR PL UKai TW MBE-bold-r-normal-*-*-120-*-*-p-*--*-*"
LabelFontNameXft="AR PL UKai TW MBE:size=12:bold"

ToolTipFontName="-*-AR PL UKai TW MBE-medium-r-normal-*-*-100-*-*-p-*--*-*"
ToolTipFontNameXft="sans:size=10:medium"

ClockFontName="-*-AR PL UKai TW MBE-medium-r-normal-*-*-100-*-*-p-*--*-*"
ClockFontNameXft="AR PL UKai TW MBE:size=10:medium"

ApmFontName="-*-AR PL UKai TW MBE-medium-r-normal-*-*-120-*-*-p-*--*-*"
ApmFontNameXft="AR PL UKai TW MBE:size=12:medium"

InputFontName="-*-AR PL UKai TW MBE-medium-r-normal-*-*-120-*-*-p-*--*-*"
InputFontNameXft="AR PL UKai TW MBE:size=12:medium"

moveSizeFontName="-AR PL UKai TW MBE-bold-r-normal-*-*-120-*-*-p-*--*-*"
moveSizeFontNameXft="AR PL UKai TW MBE:size=12:bold"

QuickSwitchFontName="-AR PL UKai TW MBE-bold-r-normal-*-*-120-*-*-p-*--*-*"
QuickSwitchFontNameXft="AR PL UKai TW MBE:size=12:bold"

ListBoxFontName="-*-AR PL UKai TW MBE-medium-r-normal-*-*-120-*-*-p-*--*-*"
ListBoxFontNameXft="AR PL UKai TW MBE:size=11:medium"

NormalWorkspaceFontName="-*-AR PL UKai TW MBE-bold-r-normal-*-*-120-*-*-p-*--*-*"
NormalWorkspaceFontNameXft="AR PL UKai TW MBE:size=12:bold"

ActiveWorkspaceFontName="-*-AR PL UKai TW MBE-bold-r-normal-*-*-120-*-*-p-*--*-*"
ActiveWorkspaceFontNameXft="AR PL UKai TW MBE:size=12:bold"

StatusFontName="-AR PL UKai TW MBE-bold-r-normal-*-*-120-*-*-p-*--*-*"
StatusFontNameXft="AR PL UKai TW MBE:size=12:bold"

ToolButtonFontName="-*-AR PL UKai TW MBE-bold-r-normal-*-*-120-*-*-p-*--*-*"
ToolButtonFontNameXft="AR PL UKai TW MBE:size=12:bold"

FxFontName="-*-AR PL UKai TW MBE-bold-r-normal-*-*-120-*-*-p-*--*-*"
FxFontNameXft="AR PL UKai TW MBE:size=12:bold"

MinimizedWindowFontName="-*-AR PL UKai TW MBE-medium-r-normal-*-*-120-*-*-p-*--*-*"
MinimizedWindowFontNameXft="AR PL UKai TW MBE:size=12:medium"

2.再工具列放幾個執行圖

vi ~/.icewm/toolbar加入


# This is an example for IceWM's toolbar definition file.
#
# Place your variants in /etc/X11/icewm or in $HOME/.icewm
# since modifications to this file will be discarded when you
# (re)install icewm.
#
prog XTerm xterm x-terminal-emulator
#prog FTE fte fte
#prog Netscape netscape netscape
prog "Mozilla Firefox" /usr/share/pixmaps/firefox-3.0.png firefox
prog "nm-applet" /usr/share/pixmaps/gnome-nettool.xpm nm-applet
prog "gnome-screenshot" /usr/share/pixmaps/gnome-qeye.png gnome-screenshot
prog "Home Folder" /usr/share/icons/gnome/16x16/places/user-home.png /usr/bin/nautilus --no-desktop


3.登入執行shell(or指令)

vi ~/.icewm/startup加入

gkrellm -w &

存檔後
chmod u+x ~/.icewm/startup

4.讓背景放大整個桌面
sudo vi /usr/share/icewm/preferences

DesktopBackgroundScaled =1

沒有留言: