|
发表于 2005-10-15 09:59:42
|
显示全部楼层
怎麼這麼多人喜歡配置fvwm
用fvwm-themes
有很多fvwm 主題
下載 有rpm,和deb包的
http://fvwm-themes.sourceforge.net/
我用debian,下載
http://fvwm-themes.sourceforge.net/deb/
只需修改某主題下的字體配置文件fons即可
我寫了段腳本修改xp風格字體
[code:1]
#!/bin/bash
MFONT='"xft:PMingLiU:Medium:pixelsize=12:minspace=true:encoding=iso10646-1"'
MVER='/Vertical/ s/2 5/1 3/;s/2 3/1 2/'
sed -i.old -e "/FvwmIdent/ s@xft:Verdana@xft:PMingLiu@" fonts
sed -i.old -e "/\(Window\|Icon\)Title/ s@\".*\"@$MFONT@" windowlook
sed -i.old -e "/FuncFvwmSetFont-Menu/ s@\".*\"@$MFONT@" -e "$MVER" menustyle
sed -i.old -e "s@Font \".*\"@Font $MFONT@" modules/FvwmButtons-Panel
sed -i.old -e "s@\".*\"@$MFONT@" modules/fonts
[/code:1]
懶得每台去配置,用腳本
改隨機背景桌面,替換program菜單,裝入個人菜單,xp風格
[code:1]
#!/bin/bash
# Date :2005-8-25
# Create By Gan Jian Hui
/usr/bin/fvwm-themes-start -n
FVPDIR=~/.fvwm/themes/personal
[ -f $FVPDIR/menus-extra ] || ln -s /home/menus-extra $FVPDIR
cat > $FVPDIR/startup <<"EOF"
Exec exec xterm
EOF
# background
cat >$FVPDIR/background-extra <<"EOF"
SetEnv BGDIR ./.fvwm/images
DestroyFunc FuncFvwmStartThemeBackground
AddToFunc FuncFvwmStartThemeBackground
+ I DestroyModuleConfig FvwmBacker: *
#+ I *FvwmBacker: Command (Desk 0, Page * *) Exec fvwm-themes-root --center -f $BGDIR/bg08.jpg
#+ I *FvwmBacker: Command (Desk 1, Page * *) Exec fvwm-themes-root --center -f $BGDIR/bg09.jpg
#+ I *FvwmBacker: Command (Desk 2, Page * *) Exec fvwm-themes-root --center -f $BGDIR/bg05.jpg
#+ I *FvwmBacker: Command (Desk 3, Page * *) Exec fvwm-themes-root --center -f $BGDIR/bg07.jpg
PipeRead 'randombg.sh'
+ I FuncFvwmRestartModule FvwmBacker
DestroyFunc FuncFvwmStopThemeBackground
AddToFunc FuncFvwmStopThemeBackground
#+ I PipeRead `fvwm-themes-config --component colors --show-value read-file | grep -v /main | xargs -r echo Read`
EOF
# load
#
fvwm-themes-config --no-cfg-cache --load menus-extra@personal
fvwm-themes-config --no-cfg-cache --load startup@personal
fvwm-themes-config --no-cfg-cache --load background-extra@personal
fvwm-themes-config --theme current --variant settings/menu-system=replace
[/code:1]
簡單 快速 漂亮 方便 |
|