fvwm2.5.6@Magic Linux1.1
My fvwm2.5.6 has been install in my Mandrake9.0. I used some lnk to my MDK9.0 for my fvwm2.5.6. Then I edit the /usr/share/config/kdm/dkmrc like follow:ConfigVersion=2.0
PidFile=/var/run/kdm.pid
Xservers=/usr/share/config/kdm/Xservers
HaltCmd=/sbin/poweroff
LiloCmd=/sbin/lilo
LiloMap=/boot/map
RebootCmd=/sbin/reboot
UseLilo=false
AllowNullPasswd=true
AllowRootLogin=true
AllowShutdown=Root
AutoReLogin=false
Reset=/usr/share/config/kdm/Xreset
Resources=/usr/share/config/kdm/Xresources
Session=/usr/share/config/kdm/Xsession
Setup=/usr/share/config/kdm/Xsetup
Startup=/usr/share/config/kdm/Xstartup
AntiAliasing=false
ColorScheme=Default
DefaultUser=desktop
EchoMode=OneStar
FaceSource=AdminOnly
FailFont=Song,12,-1,5,75,0,0,0,0,0
FocusPasswd=false
GUIStyle=Default
GreetFont=SimSun,12,-1,5,50,0,0,0,1,0
GreetString=欢迎使用Magic linux
GreeterPosFixed=false
GreeterPosX=100
GreeterPosY=100
HiddenUsers=nfsnobody
Language=zh_CN
LogoArea=Logo
LogoPixmap=/usr/share/apps/kdm/pics/kdelogo.png
MaxShowUID=65535
MinShowUID=500
PreselectUser=None
SelectedUsers=
SessionTypes=default,kde,fvwm,/* ----There is my modifiers */
ShowUsers=None
SortUsers=true
StdFont=Song,12,-1,5,50,0,0,0,0,0
UseBackground=false
AllowNullPasswd=true
AllowRootLogin=true
AllowShutdown=All
NoPassEnable=false
NoPassUsers=
AutoLogin1st=true
AutoLoginEnable=false
AutoLoginUser=desktop
Enable=false
Willing=/usr/share/config/kdm/Xwilling
Xaccess=/usr/share/config/kdm/Xaccess
and I modifiers the file /usr/share/config/kdm/Xsession like follow:
#!/bin/bash
# Copyright (c) 1999-2002 Red Hat, Inc.
# redirect errors to a file in user's home directory if we can
errfile="$HOME/.xsession-errors"
if cp /dev/null "$errfile" 2> /dev/null ; then
chmod 600 "$errfile"
exec > "$errfile" 2>&1
else
errfile=`mktemp -q /tmp/xses-$USER.XXXXXX`
if [ $? -eq 0 ]; then
exec > "$errfile" 2>&1
fi
fi
if ! printenv PATH | grep -q /usr/X11R6/bin
then
PATH="${PATH}":/usr/X11R6/bin
fi
xsetroot -solid '#5477A0'
userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
userxkbmap=$HOME/.Xkbmap
sysresources=/etc/X11/Xresources
sysmodmap=/etc/X11/Xmodmap
sysxkbmap=/etc/X11/Xkbmap
# merge in defaults
if [ -f "$sysresources" ]; then
xrdb -merge "$sysresources"
fi
if [ -f "$userresources" ]; then
xrdb -merge "$userresources"
fi
# merge in keymaps
if [ -f "$sysxkbmap" ]; then
setxkbmap $(cat "$sysxkbmap")
XKB_IN_USE=yes
fi
if [ -f "$userxkbmap" ]; then
setxkbmap $(cat "$userxkbmap")
XKB_IN_USE=yes
fi
if [ -z "$XKB_IN_USE" -a ! -L /etc/X11/X ]; then
if grep '^exec.*/Xsun' /etc/X11/X > /dev/null 2>&1 && [ -f /etc/X11/XF86Config ]; then
xkbsymbols=`sed -n -e 's/^[ ]*XkbSymbols[ ]*"\(.*\)".*$/\1/p' /etc/X11/XF86Config`
if [ -n "$xkbsymbols" ]; then
setxkbmap -symbols "$xkbsymbols"
XKB_IN_USE=yes
fi
fi
fi
# xkb and xmodmap don't play nice together
if [ -z "$XKB_IN_USE" ]; then
if [ -f "$sysmodmap" ]; then
xmodmap "$sysmodmap"
fi
if [ -f "$usermodmap" ]; then
xmodmap "$usermodmap"
fi
fi
unset XKB_IN_USE
# run all system xinitrc shell scripts.
for i in /etc/X11/xinit/xinitrc.d/* ; do
if [ -x "$i" ]; then
. "$i"
fi
done
# is ssh-agent available?
SSHAGENT=
[ -x /usr/bin/ssh-agent ] && SSHAGENT="/usr/bin/ssh-agent"
# now, we see if xdm/gdm/kdm has asked for a specific environment
case $# in
1)
# if [ -x /usr/share/apps/switchdesk/Xclients.$1 ]; then
# exec -l $SHELL -c "$SSHAGENT /usr/share/apps/switchdesk/Xclients.$1";
# fi;
case $1 in
kde)
exec -l $SHELL -c "startkde"
;;
fvwm)
exec /usr/local/bin/fvwm
;; /* ---this my modifiers]
esac
esac
# otherwise, take default action
if [ -x "$HOME/.xsession" ]; then
exec -l $SHELL -c "$SSHAGENT $HOME/.xsession"
elif [ -x "$HOME/.Xclients" ]; then
exec -l $SHELL -c "$SSHAGENT $HOME/.Xclients"
elif [ -x /etc/X11/xinit/Xclients ]; then
exec -l $SHELL -c "$SSHAGENT /etc/X11/xinit/Xclients"
else
# should never get here; failsafe fallback
exec -l $SHELL -c "xsm"
fi
Now , I can login in fvwm2.5.6 locate at MDK9.0. But there is some problem in my fvwm2.5.6,who can help me?
Q1: it can't display any Chinese Language in fvwm2.5.6 manu!
Q2: It can't used fcitx to input Chinese.
My .fvwm2rc file :
magePath +:/usr/share/icons:/usr/share/pixmaps:/usr/share/icons/hicolor/48x48/apps:/usr/local/share/fvwm/icons:$HOME/.fvwm/icons
EdgeResistance 250 100
EdgeScroll 100 100
ColormapFocus FollowsMouse
ClickTime 750
DeskTopSize 2x2
# default Styles:
Style * BorderWidth 5, HandleWidth 5, DepressableBorder
Style * Icon kcmkwm.png
Style * MWMFunctions, MWMDecor, MWMButtons, HintOverride
Style * DecorateTransient, NoPPosition
Style * SloppyFocus, MouseFocusClickRaises
Style * SmartPlacement
Style * Font-misc-simsun-medium-r-normal--14-*-*-*-*-*-gbk-0,*-r-*
Style * IconFont-misc-simsun-medium-r-normal--12-*-*-*-*-*-gbk-0,*-r-*
Style * HilightFore black, HilightBack gainsboro
Style * IconBox 360x200+1-1, IconFill left bottom
Style * WindowShadeShrinks, WindowShadeSteps 100
TitleStyle height 22
AddTitleStyle ActiveDown VGradient 8 gold black
MenuStyle * MWM
MenuStyle * PopupDelayed, PopupDelay 160, Animation, TitleWarp
MenuStyle * Foreground Black, Background #c0c0c0
MenuStyle * ActiveFore Blue
MenuStyle * Font-misc-simsun-medium-r-normal--14-*-*-*-*-*-gbk-0,*-r-*
MenuStyle * MenuFace Black #c0c0c0
#MenuStyle * MenuFace TiledPixmap weird10dark.xpm
ButtonStyle All -- UseTitleStyle
ButtonStyle All ActiveDown VGradient 8 palevioletred black
ButtonStyle 1 Vector 7 \
65x15@0 25x55@1 45x55@0 35x85@1 75x45@0 55x45@1 65x15@0
ButtonStyle 6 16 20x20@1 30x20@1 50x40@1 70x20@1 80x20@1 80x30@0 60x50@0 80x80@0 70x80@0 50x60@0 30x80@0 20x80@0 20x70@0 40x50@1 20x30@0 20x20@1
CursorStyle ROOT 58
CursorStyle TITLE 62
CursorStyle STROKE 86
# Styles for various Fvwm modules:
Style "Fvwm*" Layer 5,NoTitle,Sticky, WindowListSkip
Style "Fvwm*" BorderWidth 2, CirculateSkipIcon, CirculateSkip
Style "FvwmPager" StaysOnTop
Style "FvwmBanner"StaysOnTop
Style "FvwmButtons" Icon toolbox.xpm, NeverFocus
Style "FvwmConsole" SloppyFocus
# Styles for your common terminal emulator programs:
Style "xterm" Icon /usr/share/icons/Bluecurve/48x48/apps/gnome-term-tiger.png, SloppyFocus
Style "rxvt" NoTitle, Icon /usr/share/icons/Bluecurve/48x48/apps/gnome-term-linux.png
Style "gv" ClickToFocus
Style "mozilla" RandomPlacement, SloppyFocus
Style "NoResource" NoTitle BorderWidth 0, HandleWidth 0
Style "xdaliclock" NoTitle, NoHandles, Sticky, WindowListSkip, ClickToFocus, Layer 6
Style "MPlayer" NoTitle, Layer 7
Style "RealPlayer" Layer 7
Style "fcitx" Layer 7, NoTitle, HandleWidth 1, Sticky, WindowListSkip
Style "emacs" Icon gnu-animal.xpm
Style "gv" Icon gv.xpm
Style "Xdvi help" NoTitle
Style "AcroRead" VariablePosition, VariableUSPosition
Style * RaiseTransient LowerTransient StackTransientParent
#Style * NoActiveIconOverride
# Styles for various common programs:
Style "xbiff" NoTitle, Sticky, WindowListSkip, ClickToFocus
Style "kcalc" Icon kcalc.xpm, NoButton 2,RandomPlacement,ClickToFocus
Style "xmh" Icon mail1.xpm, NoIconTitle,StickyIcon
Style "xmh" RandomPlacement, NoButton 2
Style "xman" Icon xman.xpm, RandomPlacement, ClickToFocus
Style "xmag" RandomPlacement, ClickToFocus
Style "FvwmButtons" BorderWidth 0,NoHandles
Read fvwm.strokes
# some simple default key bindings:
Key Tab A M -
Key Next A SCM Next [*] Focus
Key Prior A SCM Prev [*] Focus
Key F1 A M GotoDesk -1
Key F2 A M GotoDesk 1
Mouse 3 A M MoveToDesk 1
Mouse 1 A M MoveToDesk -1
Key F3 A A Module FvwmConsole -terminal rxvt -geometry 45x5-0+0 -bg gold -fg midnightblue -fn "--misc-SimSun-medium-r-normal-*-*-14-*-*-*-*-*-*"
Key F5 A C Exec exec import -window root shot.png
Key F11 A C Exec xscreensaver-command -lock
# some simple default mouse bindings:
Mouse 1 R A Menu RootMenu Nop
Mouse 2 R A Menu ProgramsMenu Nop
Mouse 3 WI SC CloseOrNot
Mouse 3 A MC Menu RootMenu Nop
Mouse 3 A S Move
DestroyFunc CloseOrNot
AddToFunc CloseOrNot
+ C Silent Close
+ M Nop
# for the title bar buttons:
Mouse 1 4 A Iconify
Mouse 1 6 A Close
Mouse 3 2 A Maximize-Func2
# for other parts of the window/borders/icons:
Mouse 1 F A Resize-or-Raise
Mouse 1 TS A Move-or-Raise
Mouse 1 I A Move-or-Iconify
######################## Initialization Functions ############################
DestroyFunc StartFunction
AddToFunc StartFunction
+ I Module FvwmButtons MainPanel
+ I Module FvwmAuto 500 Raise Nop
+ I Module FvwmAnimate
+ I Module FvwmTaskBar
# + I Exec exec xloadimage -onroot -fullscreen ~/pic/cat_20.jpg
+ I Exec exec /usr/bin/fcitx
DestroyFunc InitFunction
AddToFunc InitFunction
# + I Exec exec xscreensaver -no-splash
DestroyFunc ExitFunction
AddToFunc ExitFunction
+ I All (xdaliclock) Close
# + I All (xscreensaver) Close
+ I All (fcitx) Close
######################## Menus ###################
DestroyMenu RootMenu
AddToMenu RootMenu "FVWM2.5.6" Title
+ "My Computer" Exec exec konqueror
+ "G-terminal" Exec exec gnome-terminal
+ "K-terminal" Exec exec konsole
+ "" Nop
+ "Program" Popup ProgramsMenu
+ "Utilities" Popup Utilities
+ "Work" Popup Work
+ "NetWork" Popup NetWork
+ "Setting" Popup Setting
+ "" Nop
+ "Refresh" Refresh
+ "Recapture" Recapture
+ "" Nop
+ "Lock" Exec exec xscreensaver-command -lock
+ "Exit Fvwm%mini.exit.xpm%" Popup Quit-Verify
DestroyMenu ProgramsMenu
AddToMenu "ProgramsMenu" "Program" Title
+ "Mplayer"Exec exec gmplayer
+ "Gedit"Exec exec gedit
+ "Kate"Exec exec kate
+ "gv"Exec exec gv
+ "xpdf"Exec exec xpdf
+ "xmms" Exec exec xmms
+ "KingSoft" Exec exec Nop
+ "ksnopshot" Exec exec ksnopshot
+ "Gimp" Exec exec gimp
+ "Kpaint" Exec exec kpaint
+ "Kview" Exec exec kview
DestroyMenu Utilities
AddToMenu Utilities "Utilities" Title
+ "resource" Exec exec gnome-terminal -T Top -n Top -e top
+ "Kcalc" Exec exec kcalc
+ "Xman" Exec exec xman
+ "Xmag" Exec exec xmag
+ "" Nop
+ "Default" Exec xrdb -load $HOME/.Xdefaults
+ "ShotScreen" Exec import -window root shot.png
DestroyMenu Work
AddToMenu Work "Work" Title
+ "Scalc" Exec exec /usr/lib/OpenOffice.org1.0.2/program/scalc
+ "Simpress" Exec exec /usr/lib/OpenOffice.org1.0.2/program/simpress
+ "Swrite" Exec exec /usr/lib/OpenOffice.org1.0.2/program/swriter
+ "Smath" Exec exec /usr/lib/OpenOffice.org1.0.2/program/smath
DestroyMenu NetWork
AddToMenu NetWork "NetWork" Title
+ "Opera" Exec exec /mnt/MDK/usr/X11R6/bin/opera
+ "mozilla" Exec exec /usr/share/mozilla/mozilla
+ "Konquror" Exec exec konquror
+ "LinNeighborhood" Exec exec LinNeighborhood
+ "Gaim" Exec exec /mnt/MDK/usr/bin/gaim
+ "KBear" Exec exec kbear
DestroyMenu Setting
AddToMenu Setting "Setting" Title
+ "Edit System configurat" Exec exec kwrite ~/.fvwm/.fvwm2rc
+ "Krakconf" Exec exec kdesu drakconf
+ "Kprinter" Exec exec kprinter
DestroyMenu Quit-Verify
AddToMenu Quit-Verify "Exit?" Title
+ "Exit!"Quit
+ "Restart" Restart fvwm2
+ "Don't Exit" Nop
######################## Sample Functions ##########################
DestroyFunc Move-or-Raise
AddToFunc Move-or-Raise I Raise
+ "M" Move
+ "D" WindowShade
DestroyFunc Move-or-Raise2
AddToFunc Move-or-Raise2 "M" Raise
+ "M" Move
+ "D" Lower
DestroyFunc Maximize-Func
AddToFunc Maximize-Func "M" Maximize 0 100
+ "C" Maximize 0 80
+ "D" Maximize 100 98
DestroyFunc Maximize-Func2
AddToFunc Maximize-Func2 "M" Maximize 100 0
+ "C" Maximize 80 0
+ "D" Maximize 100 98
DestroyFunc Move-or-Iconify
AddToFunc Move-or-Iconify I Raise
+ "M" Move
+ "D" Iconify
DestroyFunc Resize-or-Raise
AddToFunc Resize-or-Raise I Raise
+ "M" Resize
+ "D" Lower
DestroyFunc Resize-or-Raise2
AddToFunc Resize-or-Raise2 "M" Raise
+ "M" Resize
+ "D" Lower
DestroyFunc Iconify-and-Raise
AddToFunc Iconify-and-Raise I Iconify
+ I Raise
################## FvwmButtons button-bar ################################
*FvwmButtonsBack bisque3
*MainPanel: Geometry 80x18+40+4
*MainPanel: Back #c0c0c0
*MainPanel: (Panel(down, indicator, delay 0, steps 1) \
PagerPanel "Module FvwmButtons PagerPanel")
*MainPanel: Font-misc-simsun-medium-r-normal--14-*-*-*-*-*-gbk-0,*-r-*
*PagerPanel: Geometry 80x352
*PagerPanel: (Swallow FvwmPager "Module FvwmPager 0 3")
*PagerPanel: Font-misc-simsun-medium-r-normal--14-*-*-*-*-*-gbk-0,*-r-*
########################## Icon Manager ####################################
# this FvwmIconMan setup is for swallowing in above button bar example
*FvwmIconMan*numManagers 1
*FvwmIconMan*Resolutionpage
*FvwmIconMan*backgroundbisque3
*FvwmIconMan*foregroundblack
*FvwmIconMan*font -misc-simsun-medium-r-normal--14-*-*-*-*-*-gbk-0,*-r-*
*FvwmIconMan*format "%t"
*FvwmIconMan*action Mouse 1 N sendcommand Focus, sendcommand "Iconify"
*FvwmIconMan*action Mouse 2 N sendcommand "Iconify 1"
*FvwmIconMan*action Mouse 3 N sendcommand "FvwmIdent"
*FvwmIconMan*followfocus true
*FvwmIconMan*sort none
*FvwmIconMan*plainbutton up black bisque3
*FvwmIconMan*selectbutton down black bisque3
*FvwmIconMan*focusbutton up yellow firebrick
*FvwmIconMan*focusandselectButton down yellow firebrick
*FvwmIconMan*dontshow icon=Untitled
#*FvwmIconMan*drawicons true
*FvwmIconMan*buttongeometry300x0
*FvwmIconMan*managergeometry 1x5
########################## Window-Identifier ###############################
# Just choose colors and a fonts
*FvwmIdentBack MidnightBlue
*FvwmIdentFore Yellow
*FvwmIdentFont-misc-simsun-medium-r-normal--14-*-*-*-*-*-gbk-0,*-r-*
########################### Pager #########################################
*FvwmPager: Rows 4
*FvwmPager: Columns 1
*FvwmPagerBack #908090
*FvwmPagerFore #484048
*FvwmPager:Font-misc-simsun-medium-r-normal--14-*-*-*-*-*-gbk-0,*-r-*
*FvwmPagerHilight #cab3ca
*FvwmPagerLabel 0 Main
*FvwmPagerLabel 1 Internet
*FvwmPagerLabel 2 Program
*FvwmPagerLabel 3 Amusement
*FvwmPager:SmallFont-misc-simsun-medium-r-normal--12-*-*-*-*-*-gbk-0,*-r-*
*FvwmPagerBalloons All
*FvwmPagerBalloonBack Yellow
*FvwmPagerBalloonFore Black
*FvwmPager:BalloonFont -misc-simsun-medium-r-normal--14-*-*-*-*-*-gbk-0,*-r-*
*FvwmPagerBalloonYOffset +2
*FvwmPagerBalloonBorderWidth1
*FvwmPagerBalloonBorderColorBlack
##########################FvwmWinList##################################
*FvwmWinListBack #908090
*FvwmWinListFore Black
*FvwmWinListFont-misc-simsun-medium-r-normal--14-*-*-*-*-*-gbk-0,*-r-*
*FvwmWinListAction Click1 Iconify -1,Focus
*FvwmWinListAction Click2 Iconify
*FvwmWinListAction Click3 Module "FvwmIdent" FvwmIdent
*FvwmWinListUseSkipList
*FvwmWinListGeometry +0-1
#for FvwmBacker
*FvwmBackerDesk 0 -solid steelblue
*FvwmBackerDesk 1 -solid midnightblue
#for FvwmScroll
*FvwmScrollBack grey40
*FvwmScrollFore green
*FvwmAnimate: Delay 25
*FvwmAnimate: Effect Random
*FvwmAnimate: Width 3
Style FvwmTaskBar HandleWidth 0, BorderWidth 0
*FvwmTaskBar: UseSkipList
*FvwmTaskBar: AutoStick
*FvwmTaskBar: DeskOnly
#*FvwmTaskBar: Action Click1 DeiconifyRaiseAndFocus
*FvwmTaskBar: Action Click2 Iconify On
*FvwmTaskBar: Action Click3 Lower
#*FvwmTaskBar: Action Click3 FvwmIdent
#*FvwmTaskBar: MailCommand Exec exec rxvt -e mutt
*FvwmTaskBar: 3DFvwm
*FvwmTaskBar: StartName Start
*FvwmTaskBar: StartMenu RootMenu
*FvwmTaskBar: Font-misc-simsun-medium-r-normal--14-*-*-*-*-*-gbk-0,*-r-*
#*FvwmTaskBar: Font"xft:Luxi Mono"
*FvwmTaskBar: SelFont-misc-simsun-medium-r-normal--14-*-*-*-*-*-gbk-0,*-r-*
*FvwmTaskBar: ShowTips
*FvwmTaskBar: ClockFormat %H:%M
*FvwmTaskBar: WindowButtonsRightMargin 20
*FvwmTaskBar: Back #c0c0c0
*FvwmTaskBar: Fore Black
*FvwmTaskBar: FocusFore blue
*FvwmTaskBar: IconBack #c0c0c0
*FvwmTaskBar: IconFore Black
#*FvwmTaskBar: Button Title hello, Icon mini.x.xpm, Action (Mouse 1) Module FvwmConsole
#*FvwmTaskBar: DateFormat "%A, %B %d, %Y"
#*FvwmTaskBar: WindowButtonsLeftMargin 20
#*FvwmTaskBar: HighlightFocus
#*FvwmTaskBar: AutoHide 6
Picture2
Picture 2 苦啊!成功地在Mlinux1.1下调用Mandrake9.0里装的FVWM2.5.6。可是没法用中文!看不了FVWM2.5.6菜单里的中文。也运行不了fcitx!在consle下运行fcitx提示error 12退出. :( change u fontset to:-*-simsun-medium-r-*-*-12-*-*-*-*-*-*-*
may be ok 改了,还是不行!也没有提到找不到simsun,怪怪的。 fvwm怎样加到ML的KDM中 拜托,你仔细看了最上面的贴了吗。我的英文很差。但是:“Then I edit the /usr/share/config/kdm/dkmrc like follow”还是可以知道什么意思吧? 兄弟辛苦。
页:
[1]