QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 617|回复: 1

谁能帮帮新手:用FVWM的键绑定功能时,系统不能识别控制键

[复制链接]
发表于 2004-12-6 22:40:56 | 显示全部楼层 |阅读模式
rt

这几天,装上了FVWM,感觉很灵活,我喜欢!

不能按照王垠主页上面说的键绑定方法,就是不好使!

我试过了,如果允许所有控制键,则好使,比如:

Key R A Menu RootMenu Nop

但是,如果我把第三个参数A改为 C,M,或者S,都不好使,没有反应

另外,我编译FVWM之前没有装stroke的包------是不是那里的毛病呢?

请兄弟们帮忙!

我是个FVWM的新手,请帮忙!
多谢!
 楼主| 发表于 2004-12-6 22:51:30 | 显示全部楼层
这是我的配置文件(以王垠的为蓝本):

ImagePath +:/usr/share/pixmaps:$HOME/pic
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  -*-simsun-medium-r-*-*-14-*-*-*-*-*-*-*
Style * IconFont  -*-simsun-medium-r-*-*-12-*-*-*-*-*-*-*
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 white, Background gray40
MenuStyle * ActiveFore yellow
MenuStyle * Font  -*-simsun-medium-r-*-*-14-*-*-*-*-*-*-*
MenuStyle * MenuFace TiledPixmap /root/pic/background.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

#设置标题栏上的按钮功能
Mouse 0 2 A Maximize

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 "firefox"            RandomPlacement, SloppyFocus
Style "NoResource" NoTitle BorderWidth 0, HandleWidth 0
Style "MPlayer" NoTitle, Layer 7
Style "RealPlayer" Layer 7
Style "emacs"            Icon gnu-animal.xpm
Style "AcroRead"        VariablePosition, VariableUSPosition
Style * RaiseTransient LowerTransient StackTransientParent
#Style * NoActiveIconOverride

# Styles for various common programs:
Style "FvwmButtons"        BorderWidth 0,NoHandles


#我的键盘热键设置
Key F3 A M Exec exec xmms

#设置是否鼠标移动切换窗口
EdgeScroll 0 0

# some simple default key bindings:
#Key Tab A M -
#Key Next         A       SCM     Next
  • Focus
    #Key Prior        A       SCM     Prev
  • Focus

    #Key F4 A C Menu RootMenu Nop
    #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 F11 A C Exec xscreensaver-command -lock

    # some simple default mouse bindings:
    Mouse 2        R            A              Menu Programs Nop
    Mouse 3 R                        A                                Menu RootMenu Nop

    Mouse 3 W                        C                        CloseOrNot
    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
    + I Module FvwmPager
    + I Module FvwmAuto 500 Raise Nop
    + I Module FvwmAnimate
    + I Module FvwmTaskBar
    #+ I Exec exec xpmroot /root/pink.png
    + I Exec exec fcitx

    DestroyFunc InitFunction
    AddToFunc InitFunction           

    DestroyFunc ExitFunction
    AddToFunc ExitFunction
    + I All (fcitx) Close

    ######################## Menus ###################

    DestroyMenu RootMenu
    AddToMenu RootMenu        "菜单"        Title
    +                        "终端%monitor-5.png%" Exec exec gnome-terminal
    +                        ""                Nop
    +                       "程序%wm-icons-0.3.0/icons/14x14-general/programs.xpm%"      Popup Programs
    +                       "工具%wm-icons-0.3.0/icons/14x14-general/utility.xpm%"     Popup Utilities
    +                        ""                Nop
    +                       "刷新%wm-icons-0.3.0/icons/14x14-general/restart.xpm%"   Refresh
    +                        ""                Nop
    +                        "退出%button-shutdown.png%"        Popup Quit-Verify

    DestroyMenu Programs
    AddToMenu Programs "程序" Title
    +                        "x&mms" Exec exec xmms
    +                        "&firefox" Exec exec firefox
    +                        "LumaQQ" Exec exec lumaqq

    DestroyMenu Utilities
    AddToMenu Utilities     "工具" Title
    +                        "g&Vim"        Exec exec gvim
    +                        "&acrobat"  Exec exec acroread

    DestroyMenu Quit-Verify        
    AddToMenu Quit-Verify         "退出Fvwm?" Title       
    +                              "退出%button-shutdown.png%"  Quit       
    +           "重启%button-flash.png%"     Restart fvwm2

    ######################## 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
    ############################### Fvwm buttons ###############################
    *FvwmButtonsFore Gray60
    *FvwmButtonsBack Navy
    #设置FvwmButtons的背景图片

    #设置字体大小
    *FvwmButtonsFont 14x14
    #设置FvwmButtons出现在屏幕的位置
    *FvwmButtonsGeometry +0+250
    #设置FvwmButtons为7列1行
    *FvwmButtonsColumns 1
    *FvwmButtonsRows 7

    *FvwmButtons(Title Firefox,Icon firefox-icon.png,Action 'Exec firefox &')
    *FvwmButtons(Title Xmms,Icon xmms-icon.png,Action 'Exec xmms &')
    *FvwmButtons(Title gFtp,Icon gftp.png,Action 'Exec gftp &')
    #*FvwmButtons(Title gMplayer,Icon )

    ################################## Pager ##################################
    DeskTopSize 4x2
    *FvwmPager: Rows 1
    *FvwmPager: Columns 1
    *FvwmPagerFore white
    #设置FvwmPager出现在屏幕的位置
    *FvwmPagerGeometry +5+5
    #设置FvwmPager的背景色
    *FvwmPagerBack #909090
    ################## FvwmButtons button-bar ################################
    #*FvwmButtonsBack bisque3
    #*MainPanel: Geometry 80x18+40+4
    #*MainPanel: Back SeaGreen
    #*MainPanel: (Panel(down, indicator, delay 0, steps 1) \
    #                PagerPanel "Module FvwmButtons PagerPanel")
    #*MainPanel: Font  -*-simsun-medium-r-*-*-16-*-*-*-*-*-*-*
    #*PagerPanel: Geometry 80x352
    #*PagerPanel: (Swallow FvwmPager "Module FvwmPager 0 3")
    #*PagerPanel: Font  -*-simsun-medium-r-*-*-16-*-*-*-*-*-*-*

    ########################## Icon Manager ####################################
    # this FvwmIconMan setup is for swallowing in above button bar example
    *FvwmIconMan*numManagers 1
    *FvwmIconMan*Resolution  page
    *FvwmIconMan*background  bisque3
    *FvwmIconMan*foreground  black
    *FvwmIconMan*font        -*-magicsong-medium-r-*-*-16-*-*-*-*-*-gb2312.1980-0
    *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*buttongeometry  300x0
    *FvwmIconMan*managergeometry 1x5

    ########################## Window-Identifier ###############################
    # Just choose colors and a fonts
    *FvwmIdentBack MidnightBlue
    *FvwmIdentFore Yellow
    *FvwmIdentFont  -*-simsun-medium-r-*-*-14-*-*-*-*-*-*-*

    ########################### Pager #########################################
    #*FvwmPager: Rows 4
    #*FvwmPager: Columns 1
    #*FvwmPagerBack #908090
    #*FvwmPagerFore #484048
    #*FvwmPager:Font  -*-simsun-medium-r-*-*-14-*-*-*-*-*-*-*
    #*FvwmPagerHilight #cab3ca
    #*FvwmPagerLabel 0 Main
    #*FvwmPagerLabel 1 Internet
    #*FvwmPagerLabel 2 Program
    #*FvwmPagerLabel 3 Amusement
    #*FvwmPager:SmallFont  -*-simsun-medium-r-*-*-12-*-*-*-*-*-*-*
    #*FvwmPagerBalloons            All
    #*FvwmPagerBalloonBack         Yellow
    #*FvwmPagerBalloonFore         Black
    #*FvwmPager:BalloonFont         -*-simsun-medium-r-*-*-14-*-*-*-*-*-*-*
    #*FvwmPagerBalloonYOffset      +2
    #*FvwmPagerBalloonBorderWidth  1
    #*FvwmPagerBalloonBorderColor  Black

    ##########################FvwmWinList##################################
    *FvwmWinListBack #908090
    *FvwmWinListFore Black
    *FvwmWinListFont  -*-simsun-medium-r-*-*-14-*-*-*-*-*-*-*
    *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 开始
    *FvwmTaskBar: StartMenu RootMenu
    *FvwmTaskBar: Font  -*-simsun-medium-r-*-*-14-*-*-*-*-*-*-*
    #*FvwmTaskBar: Font  "xft:Luxi Mono"
    *FvwmTaskBar: SelFont  -*-simsun-medium-r-*-*-14-*-*-*-*-*-*-*
    *FvwmTaskBar: ShowTips
    *FvwmTaskBar: ClockFormat
    *FvwmTaskBar: WindowButtonsRightMargin 20

    *FvwmTaskBar: Back seagreen
    *FvwmTaskBar: Fore gold2
    *FvwmTaskBar: FocusFore cornsilk
    *FvwmTaskBar: IconBack darkgreen
    *FvwmTaskBar: IconFore white

    #*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
  • 回复

    使用道具 举报

    您需要登录后才可以回帖 登录 | 注册

    本版积分规则

    GMT+8, 2024-11-8 00:05 , Processed in 0.062793 second(s), 15 queries .

    © 2021 Powered by Discuz! X3.5.

    快速回复 返回顶部 返回列表