OpenBSD 桌面( 二 )


Style "xmh" Icon mail1.xpm, NoIconTitle,StickyIcon
Style "xmh" RandomPlacement, NoButton 2
Style "xman" Icon xman.xpm, RandomPlacement, ClickToFocus
Style "xmag" Icon mag_glass.xpm, RandomPlacement, ClickToFocus
Style "xgraph" Icon graphs.xpm, RandomPlacement, ClickToFocus
Style "xmosaic" Color Green/Yellow, ClickToFocus
Style "xdaliclock" NoTitle, NoHandles, Sticky, WindowListSkip, ClickToFocus[color=red:8fa26d1069]你看到, 我的桌面上有一个电子钟, 在这里定义它的显示类型, 这样我就可以在每一个虚拟桌面上都看到它了 。[/color:8fa26d1069]
#Style "xconsole" Icon rterm.xpm, WindowListSkip, Sticky
# some simple default key bindings:
Key Next A SCM Next [*] Focus
Key Prior A SCM Prev [*] Focus
# some simple default mouse bindings:
# for the root window:
Mouse 1 R A Menu RootMenu Nop
Mouse 2 R A Menu Window-Ops Nop
Mouse 3 R A WindowList
[color=red:8fa26d1069]窗口title上的各按键的定义说明[/color:8fa26d1069]
# for the title bar buttons:
Mouse 0 1 A Menu Window-Ops2 Close
Mouse 0 2 A Close
Mouse 0 4 A Iconify
Mouse 1 6 A Maximize-Func
# 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
Mouse 2 I A Iconify
Mouse 2 FST A Menu Window-Ops2 Nop
Mouse 3 TSIF A RaiseLower
[color=red:8fa26d1069] fvwm启动时的初始函数,配置文件中使用的模块要在这里启动 [/color:8fa26d1069]
######################## Initialization Functions ############################
AddToFunc InitFunction "I" Module FvwmPager 0 3 [color=red:8fa26d1069]虚拟桌面的启动情况[/color:8fa26d1069]
"I" Module FvwmButtons
"I" Module FvwmAuto 500 Raise Nop
"I" Exec exec /usr/X11R6/bin/xpmroot /usr/X11R6/lib/X11/xdm/pixmaps/openbsd.xpm[color=red:8fa26d1069]设置桌面背景图片[/color:8fa26d1069]
[color=red:8fa26d1069]fvwm重启时的操作[/color:8fa26d1069]
AddToFunc RestartFunction "I" Module FvwmPager 0 3
"I" Module FvwmButtons
"I" Module FvwmAuto 500 Raise Nop
"I" Exec exec /usr/X11R6/bin/xpmroot /usr/X11R6/lib/X11/xdm/pixmaps/openbsd.xpm
[color=red:8fa26d1069] 下面是菜单的配置情况, 当你安装了新的软件时, 可以在这里将它们加到菜单中去 。[/color:8fa26d1069]
######################## Menus ###################
AddToMenu RootMenu "Root Menu" Title
"XTerm%mini.xterm.xpm%" Exec exec xterm
"Rxvt" Exec exec rxvt
"Mozilla-Firefox" Exec exec firefox[color=red:8fa26d1069]我安装的上网软件[/color:8fa26d1069]
"" Nop
#"Remote Logins" Popup Remote-Logins
#"" Nop
"Utilities" Popup Utilities
"" Nop
"Fvwm Modules" Popup Module-Popup
"Fvwm Window Ops" Popup Window-Ops
"Fvwm Simple Config Ops" Popup Misc-Ops
"" Nop
"Refresh Screen" Refresh
"Recapture Screen" Recapture
"(Re)Start" Popup Quit-Verify
"" Nop
"Exit" Module FvwmForm QuitVerify
[color=red:8fa26d1069] 定义的子菜单[/color:8fa26d1069]
AddToMenu Utilities "Utilities" Title
"Top" Exec exec xterm -T Top -n Top -e top
"Calculator" Exec exec xcalc
"Xman" Exec exec xman
"Xmag" Exec exec xmag
"Editres" Exec exec editres
"" Nop
#"XEMacs" Exec exec xemacs
#"Mail" MailFunction xmh "-font fixed"
"Reset X defaults" Exec xrdb -load $HOME/.Xdefaults
AddToMenu Misc-Ops "Misc Config Opts" Title
"Sloppy Focus" ChangeDefaultFocus SloppyFocus
"Click To Focus" ChangeDefaultFocus ClickToFocus
"Focus Follows Mouse" ChangeDefaultFocus FocusFollowsMouse
"" Nop
"Colormap Follows Mouse" ColormapFocus FollowsMouse
"Colormap Follows Focus" ColormapFocus FollowsFocus
"" Nop
"Full Paging ON" EdgeScroll 100 100
"All Paging OFF" EdgeScroll 0 0
"Horizontal Paging Only" EdgeScroll 100 0
"Vertical Paging Only" EdgeScroll 0 100
"Partial Paging" EdgeScroll 50 50
"Full Paging && Edge Wrap" EdgeScroll 100000 100000
AddToMenu Window-Ops "Window Ops" Title

推荐阅读