免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1064 | 回复: 0
打印 上一主题 下一主题

fvwm2rc-stroke [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-01-18 11:33 |只看该作者 |倒序浏览


文件:libstroke-0.5.1fvwm.tar.gz大小:170KB下载:
下载
I use the following excerpt in my .fvwm2rc file to define strokes.
Remember to unbind any mouse buttons from doing menus on the button(s) that
you choose for strokes!  (The repeated bindings are for similar-looking
strokes that we want to all map to the same action.)  Note, the context and
mod fields currently have no effect.
# Strokes
#        num                button        context        mod.        action
Stroke        14789                2        A        N        Exec exec xlock -mode blank&  
Stroke        258                2        A        N        Exec exec xterm&
Stroke        563214789        2        A        N        Exec exec exmh&
Stroke        53214789        2        A        N        Exec exec exmh&
Stroke        5321478                2        A        N        Exec exec exmh&
Stroke        5214789                2        A        N        Exec exec exmh&
Stroke        521478                2        A        N        Exec exec exmh&
Stroke        5321478                2        A        N        Exec exec exmh&
Stroke        453214789        2        A        N        Exec exec exmh&
Stroke        45321478        2        A        N        Exec exec exmh&
Stroke        4563214789        2        A        N        Exec exec exmh&
Stroke        456321478        2        A        N        Exec exec exmh&
Stroke        456214789        2        A        N        Exec exec exmh&
Stroke        45621478        2        A        N        Exec exec exmh&
Stroke        7415963                2        A        N        Exec exec netscape&
Stroke        74148963        2        A        N        Exec exec netscape&
Stroke        74158963        2        A        N        Exec exec netscape&
Stroke        7418963                2        A        N        Exec exec netscape&
Stroke        741236987        2        A        N        Destroy
Stroke        1478963                2        A        N        Popup "Apps"
Stroke        74123                2        A        N        Module "winlist" FvwmWinList transient
Stroke        74159                2        A        N        Move
Stroke        741569                2        A        N        Move
Stroke        741259                2        A        N        Move
Stroke        7412569                2        A        N        Move
Stroke        7415369                2        A        N        Move
Stroke 852                2        A        N        Menu "Apps" Nop
My full .fvwm2rc file (yes, a mess, but I'm working on it...
# The correct order for inserting configurations is:
# 1. Colors
# 2. Assorted configuration paramters such as ClickToFocus, or MWMBorders
# 3. Path setup (ModulePath, PixmapPath, IconPath)
# 4. Style settings, including the default style Style "*" ...
# 5. InitFunction and ResetFunction definitions.
# 6. Other Functions. Functions cannot be forward referenced from
#        other functions, but they can be backward referenced.
# 7. Menus definitions. Same caveats about forward referencing
# 8. Key and Mouse Bindings.
# 9. Module options.
# The order of steps 5, 6, and 7 is not critical, as long as there are
# no forward references to functions or menus.
# If you get it wrong, the most common problem is that color or font settings
# are ignored
###########################################################################
# set up the colors
#
# StdForeColor                 Black
# StdBackColor                LightSkyBlue
# HiForeColor                 yellow
# HiBackColor                PeachPuff1
# PagerBackColor        BlanchedAlmond
#Set the foreground and background color for selected windows
HilightColor   Black Red
############################################################################
# Now the fonts - one for menus, another for window titles, another for icons
#Font                        -adobe-helvetica-medium-r-*-*-12-*-*-*-*-*-*-*
#!Font                        -*-times-medium-i-*-*-*-120-*-*-*-*-*-* (new command=MenuStyle)
WindowFont                -adobe-helvetica-bold-r-*-*-12-*-*-*-*-*-*-*
#IconFont                -adobe-helvetica-medium-r-*-*-11-*-*-*-*-*-*-*
IconFont                fixed
###########################################################################
# Set up the major operating modes
#
########################      FOCUS STUFF     ##############################
# Set windows to auto-raise after 750 milliseconds if you like it.
# Autoraise can sometimes obscure pop-up windows. Performance is now
# similar to olvwm's auto-raise feature.
AddToFunc "InitFunction" "I" Module FvwmAuto 1500
+         "I" Module FvwmPager 0 3
########################      ICON STUFF     ##############################
# Auto Place Icons is a nice feature....
# This creates two icon boxes, one on the left side, then one on the
# bottom. Leaves room in the upper left for my clock and xbiff,
# room on the bottom for the Pager.
#need to make this better...
Style "*" IconBox -70 1 -1 -140
########################      MWM EMULATION     #######################
#
# My feeling is that everyone should use MWMDecorHints and MWMFunctionHints,
# since some applications depend on having the window manager respect them
# MWMFunction hints parses the function information in the MOTIF_WM_HINTS
# property, and prohibits use of these functions on the window. Appropriate
# portions of the window decorations are removed.
Style "*" MWMFunctions
# MWM is kinda picky about what can be done to transients, and it was keeping
# me from iconifying some windows that I like to iconify, so here's an
# over-ride that will allow me to do the operation, even tough the menu
# item is shaded out.
Style "*" HintOverride
# MWMDecor hints parses the decoration information in the MOTIF_WM_HINTS
# property, and removes these decoratons from the window. This does not affect
# the functions that can be performed via the menus.
Style "*" MWMDecor
#Set the foreground, background and stipple color and font for menus
MenuStyle   Black grey SlateGrey -*-times-medium-i-*-*-*-120-*-*-*-*-*-* mwm
# Maximize button does mwm-inversion thingy
Style "*" MWMButtons
########################      MISCELLANEOUS STUFF     #######################
# OpaqueMove has a number (N) attached to it (default 5).
# if the window occupies less than N% of the screen,
# then opaque move is used. 0


本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/6165/showart_68759.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP