注册 登录  
 加关注
   显示下一条  |  关闭
温馨提示!由于新浪微博认证机制调整,您的新浪微博帐号绑定已过期,请重新绑定!立即重新绑定新浪微博》  |  关闭

My Unix World

不要迷恋Unix,Unix只是计算世界很小的一部分!

 
 
 

日志

 
 

.fvwm2rc part2  

2009-06-03 23:49:41|  分类: graphics-x-utili |  标签: |举报 |字号 订阅

  下载LOFTER 我的照片书  |

#########################################################################
# Start of Modules defination
#########################################################################

#------------------ Pager
*FvwmPagerBack grey60
*FvwmPagerFore black
*FvwmPagerFont -adobe-helvetica-bold-r-*-*-10-*-*-*-*-*-*-*
*FvwmPagerHilight #c3c3c3
*FvwmPagerGeometry -3-27
*FvwmPagerLabel 0 Desktop
*FvwmPagerSmallFont 5x8

#------------------ FvwmButtons
*FvwmButtonsFore Black
*FvwmButtonsBack #c3c3c3
*FvwmButtonsFont -adobe-helvetica-bold-r-*-*-10-*-*-*-*-*-*-*
# Geometry - really likes to pick its own size, but giving a position is OK
*FvwmButtonsGeometry -5-5
# Layout: specify rows or columns, not both
*FvwmButtonsRows 1

# Define the buttons to use.....
*FvwmButtons xclock clock.xpm Swallow "xclock" Exec xclock -bg \#c3c3c3 -geometry -1500-1500 -padding 0 &
#*GoodStuff xcmap NULL Swallow "xcmap" xcmap -geometry -1500-1500
*FvwmButtons (2x1) load NULL Swallow "xload" Exec nice -16 xload -nolabel -bg grey60 -update 5 -geometry -1500-1500
*FvwmButtons SeaMonkey nscape.xpm Exec "SeaMonkey" seamonkey &
*FvwmButtons xterm rterm.xpm Exec "xterm" xterm -ls -sb -fn 7x14 &
*FvwmButtons xfm Xfm.xpm Exec "Xfm" xfm &
#*FvwmButtons textedit textedit.xpm Exec "Textedit" textedit &
*FvwmButtons xcalc rcalc.xpm Exec "Calculator" xcalc &
*FvwmButtons xv xv.xpm Exec "xv" xv &
#*FvwmButtons gv gv.xpm Exec "gv" gv &
#*FvwmButtons seamonkey nscape.xpm Exec "SeaMonkey" seamonkey -geometry 920x650+90+5
*FvwmButtons kill rbomb.xpm Destroy
#*FvwmButtons (2x1) - whatever SwallowModule Exec "Desktop" FvwmPager 0 0
*FvwmButtons (2x1, Swallow(UseOld) "Desktop" 'FvwmPager 0 0')

#------------------ MiniButtons

Style "MiniButtons" NoTitle,NoHandles,Sticky,StaysOnTop,WindowListSkip,BorderWidth 0

*MiniButtonsFore Black
*MiniButtonsBack #c0c0c0
*MiniButtonsFont -adobe-helvetica-bold-r-*-*-10-*-*-*-*-*-*-*
*MiniButtonsGeometry -5-5
*MiniButtonsRows 1
*MiniButtonsPadding 1 1

*MiniButtons - mini-nscape.xpm Exec "SeaMonkey" seamonkey -geometry 790x543+0+0 &
*MiniButtons - mini-term.xpm Exec "XTerm" xterm -ls -sb -fn 7x14 &
*MiniButtons - mini-filemgr.xpm Exec "Xfm" xfm &
*MiniButtons - mini-calc.xpm Exec "Calculator" xcalc &
#*MiniButtons - mini-gv.xpm Exec "gv" gv &
*MiniButtons - mini-xv.xpm Exec "xv" xv &
*MiniButtons - mini-bomb.xpm Destroy

#------------------ Identify
*FvwmIdentBack #000080
*FvwmIdentFore Yellow
*FvwmIdentFont -adobe-helvetica-medium-r-*-*-12-*-*-*-*-*-*-*

#------------------ FvwmWinList
*FvwmWinListBack #c3c3c3
*FvwmWinListFore Black
*FvwmWinListFont -adobe-helvetica-bold-r-*-*-10-*-*-*-*-*-*-*
*FvwmWinListAction Click1 Iconify -1,Focus
*FvwmWinListAction Click2 Iconify
*FvwmWinListAction Click3 Module "FvwmIdent" FvwmIdent
*FvwmWinListUseSkipList
*FvwmWinListGeometry +0-1

#------------------ FvwmTaskBar
#Style "FvwmTaskBar" NoTitle,BorderWidth 4,HandleWidth 4,Sticky,StaysOnTop,WindowListSkip,CirculateSkip
# I don't like the taskbar to stay to top, since it covers the bottom
# part of SeaMonkey in full-screen mode:
#Style "FvwmTaskBar" NoTitle,BorderWidth 4,HandleWidth 4,Sticky,WindowListSkip,CirculateSkip

*FvwmTaskBarGeometry +0-0
*FvwmTaskBarFore Black
*FvwmTaskBarBack #c3c3c3
*FvwmTaskBarTipsFore black
*FvwmTaskBarTipsBack bisque
*FvwmTaskBarFont -adobe-helvetica-medium-r-*-*-*-120-*-*-*-*-*-*
*FvwmTaskBarSelFont -adobe-helvetica-bold-r-*-*-*-120-*-*-*-*-*-*
*FvwmTaskBarAction Click1 Iconify -1,Raise,Focus
*FvwmTaskBarAction Click2 Iconify
*FvwmTaskBarAction Click3 Module "FvwmIdent" FvwmIdent
*FvwmTaskBarUseSkipList
*FvwmTaskBarAutoStick
*FvwmTaskBarStartName Start
*FvwmTaskBarStartMenu StartMenu
# Just for fun, let's use the Linux penguin for the Start button:
*FvwmTaskBarStartIcon mini-penguin.xpm
#*FvwmTaskBarStartIcon mini-exp.xpm
*FvwmTaskBarShowTips
*FvwmTaskBarMailProg xterm -e mail

#########################################################################
# End of Module defination
#########################################################################


#########################################################################
# Start of Style defination
#########################################################################

# Set the decoration styles and window options
# Order is important!!!!
# If compatible styles are set for a single window in multiple Style
# commands, then the styles are ORed together. If conflicting styles
# are set, the last one specified is used.

# These commands should command before any menus or functions are defined,
# and before the internal pager is started.

#
# Default border and handle widths
#
Style "*" BorderWidth 5, HandleWidth 5

Style "Fvwm*" NoTitle, Sticky, WindowListSkip
Style "FvwmPager" StaysOnTop, NoHandles
Style "FvwmBanner" StaysOnTop
Style "FvwmButtons" NoTitle, NoHandles, Sticky, WindowListSkip,BorderWidth 5
Style "*lock" NoTitle, NoHandles, Sticky, WindowListSkip
Style "xbiff" NoTitle, Sticky, WindowListSkip

#
# Some mini-icons for the title bar
v#
#Style "*" TitleIcon mini-x2.xpm
#Style "*xterm*" TitleIcon mini-term.xpm
#Style "rxvt" TitleIcon mini-term.xpm
#Style "xcalc" TitleIcon mini-calc.xpm
#Style "xsession" TitleIcon mini-bx2.xpm
#Style "xv" TitleIcon mini-xv.xpm
#Style "SeaMonkey" TitleIcon mini-nscape.xpm
#Style "xmag" TitleIcon mini-zoom.xpm
#Style "textedit" TitleIcon mini-edit.xpm
#Style "tkps" TitleIcon mini-run.xpm
#Style "Ghostview" TitleIcon mini-gv.xpm
#Style "Xcolorsel" TitleIcon mini-colors.xpm
#Style "IDL*" TitleIcon mini-zoom.xpm
#Style "xeyes" TitleIcon mini-eyes.xpm
#Style "*fm*" TitleIcon mini-filemgr.xpm
# xman resource names
#Style "topBox" TitleIcon mini-book1.xpm
#Style "help" TitleIcon mini-book2.xpm
#Style "manualBrowser" TitleIcon mini-book2.xpm
# xpaint resource names
#Style "xpaint" TitleIcon mini-paint.xpm
#Style "Canvas" TitleIcon mini-paint.xpm
#Style "fatbits" TitleIcon mini-paint.xpm
#Style "filebrowser" TitleIcon mini-paint.xpm

#Style "rxvt" Icon term.xpm
#Style "xterm" Icon xterm.xpm
#Style "Appointment" Icon datebook.xpm
#Style "xcalc" Icon rcalc.xpm
#Style "xbiff" Icon mail1.xpm
#Style "xmh" Icon mail1.xpm, StartsOnDesk 2
#Style "xman" Icon xman.xpm
#Style "xvgr" Icon graphs.xpm
#Style "matlab" Icon math4.xpm
#Style "xmag" Icon mag_glass.xpm
#Style "xgraph" Icon graphs.xpm
#Style "xv" Icon xview.xpm
#Style "FvwmButtons" Icon toolbox.xpm
#Style "xconsole" Icon koala.xpm
#Style "xsession" Icon koala.xpm
#Style "textedit" Icon textedit.xpm
#Style "gv" Icon gv.xpm
Style "FvwmPager" StaysOnTop


#
# Set the default window colors. The syntax is:
# DefaultColors winforecolor winbackcolor titleforecolor titlebackcolor
# where:
# winbackcolor is the background (border) color of all windows,
# including the menu windows
# winforecolor is used for the menu text
# titlebackcolor is the background color used for title bars of
# non selected windows
# titleforecolor is the color of the title text of non selected windows
#
#DefaultColors Black #c3c3c3 #c3c3c3 grey51

#
# Text and background color for the title bar of the active (selected) window
#
#HilightColors White #000080

#
# Text and background color for the title bar of sticky windows
#
#StickyColors grey51 #60c080

# You can also use the Style command to set the colors of individual
# title bars of some non-selected windows

#Style "*" ForeColor #c3c3c3
#Style "*" BackColor grey51

#========================================================================#

#
# Set up the major operating modes
#

# Let's comment this out and be more UNIX-like :^)
# Style "*" ClickToFocus
# If we use the FvwmTaskBar we don't need the icons :-)
# Style "..." Icon is also commented below.
Style "*" NoIcon
Style "*" MWMFunctions
Style "*" HintOverride
Style "*" MWMDecor

OpaqueMoveSize 100
EdgeScroll 100 100
EdgeResistance 10000 0

#
# RandomPlacement prevents user interaction while placing windows:
#
Style "*" RandomPlacement

#
# NoPPosition instructs fvwm to ignore the PPosition field in window
# geometry hints. Emacs annoyingly sets PPosition to (0,0)!
#
Style "*" NoPPosition

#========================================================================#

#
# Set the desk top size in units of physical screen size
#
DeskTopSize 3x2

#########################################################################
# End of Style Defination
#########################################################################


#########################################################################
# Start of setting the envirenment
#########################################################################

#
# Fonts - one for window titles, another for icons, and another for the menus
#
WindowFont -adobe-helvetica-bold-r-*-*-12-*-*-*-*-*-*-*
IconFont fixed
MenuStyle black grey76 grey30 -adobe-helvetica-medium-r-*-*-*-120-*-*-*-*-*-* fvwm

#
# Stuff to do at start-up
#

AddToFunc "InitFunction"
+ "I" Module FvwmButtons
+ "I" Module FvwmPager 0 0
#+ "I" Exec exec urxvt -tr
#+ "I" Exec exec urxvt -fg lightgray -bg black -bc -tr -tint lightgray -sh 60 -sr
+ "I" Exec exec display -window root `xwininfo -root -status |grep -e -geometry` .wallpaper/view-green-grass.jpg
+ "I" Exec exec fcitx

AddToFunc "RestartFunction"
+ "I" Module FvwmButtons
+ "I" Module FvwmPager 0 0
#+ "I" Exec exec urxvt -tr
#+ "I" Exec exec urxvt -fg lightgray -bg black -bc -tr -tint lightgray -sh 60 -sr
+ "I" Exec exec display -window root `xwininfo -root -status |grep -e -geometry` .wallpaper/view-green-grass.jpg
+ "I" Exec exec fcitx




#########################################################################
# End of setting the envirenment
#########################################################################


#########################################################################
# Start of Setting Window actions
#########################################################################

#=======================================================================
# A brief description
#define keboard usage:
#M(alt)is reserved.
#array used for page and cursor move
#.';/ used for window move
#1...0 used for resize window
#F1..F12 used for switch page, load modules, and menus.
#a...z for window op

#=======================================================================
# Up, Down, Left, Right used for scroll and cursor move

# scroll by 1 page
Key Left A 3 Scroll -10 0
Key Right A 3 Scroll +10 +0
Key Up A 3 Scroll +0 -10
Key Down A 3 Scroll +0 +10
#Key Up A CM GotoPage 0p -1p
#Key Down A CM GotoPage 0p +1p
#Key Left A CM GotoPage -1p 0p
#Key Right A CM GotoPage +1p 0p

# scroll by 1/10 of a page
Key Left A 3C Scroll -100 +0
Key Right A 3C Scroll +100 +0
Key Up A 3C Scroll +0 -100
Key Down A 3C Scroll +0 +100

# move the pointer by 1/10 of a page
Key Left A 3M CursorMove -1 0
Key Right A 3M CursorMove +1 +0
Key Up A 3M CursorMove +0 -1
Key Down A 3M CursorMove +0 +1

# move the pointer by 1% of a page
Key Left A 3S CursorMove -10 +0
Key Right A 3S CursorMove +10 +0
Key Up A 3S CursorMove +0 -10
Key Down A 3S CursorMove +0 +10

#=======================================================================
#move window around relatively.
#period . left
#apostrophe ' right
#semicolon ; up
#slash / down

# move the window by 1% of page
Key period A 3 Move w-1 w+0 Warp
Key apostrophe A 3 Move w+1 w+0 Warp
Key semicolon A 3 Move w+0 w-1 Warp
Key slash A 3 Move w+0 w+1 Warp

# move the window by 1/20 of a page
Key period A 3C Move w-5 w+0 Warp
Key apostrophe A 3C Move w+5 w+0 Warp
Key semicolon A 3C Move w+0 w-5 Warp
Key slash A 3C Move w+0 w+5 Warp

# move the window by 1/10 of page
Key period A 3M Move w-10 w+0 Warp
Key apostrophe A 3M Move w+10 w+0 Warp
Key semicolon A 3M Move w+0 w-10 Warp
Key slash A 3M Move w+0 w+10 Warp

# move the window by 1/5
Key period A 3S Move w-20 w+0 Warp
Key apostrophe A 3S Move w+20 w+0 Warp
Key semicolon A 3S Move w+0 w-20 Warp
Key slash A 3S Move w+0 w+20 Warp

#========================================================================
# Resize the window


Key 1 A 3 Resize 10 10
Key 2 A 3 Resize 20 20
Key 3 A 3 Resize 30 30
Key 4 A 3 Resize 40 40
Key 5 A 3 Resize 50 50
Key 6 A 3 Resize 60 60
Key 7 A 3 Resize 70 70
Key 8 A 3 Resize 80 80
Key 9 A 3 Resize 90 90
Key 0 A 3 Resize 100 100

Key 1 A 3C Resize 5 5
Key 2 A 3C Resize 15 15
Key 3 A 3C Resize 25 25
Key 4 A 3C Resize 35 35
Key 5 A 3C Resize 45 46
Key 6 A 3C Resize 55 55
Key 7 A 3C Resize 65 65
Key 8 A 3C Resize 75 75
Key 9 A 3C Resize 85 85
Key 0 A 3C Resize 95 95

Key 1 A 3M Resize 110 110
Key 2 A 3M Resize 120 120
Key 3 A 3M Resize 130 130
Key 4 A 3M Resize 140 140
Key 5 A 3M Resize 150 150
Key 6 A 3M Resize 160 160
Key 7 A 3M Resize 170 170
Key 8 A 3M Resize 180 180
Key 9 A 3M Resize 190 190
Key 0 A 3M Resize 200 200

Key 1 A 3S Move 10 10
Key 2 A 3S Move 20 20
Key 3 A 3S Move 30 30
Key 4 A 3S Move 40 40
Key 5 A 3S Move 50 50
Key 6 A 3S Move 60 60
Key 7 A 3S Move 70 70
Key 8 A 3S Move 80 80
Key 9 A 3S Move 90 90
Key 0 A 3S Move 100 100


Key 1 A 3CS Move 10 90 Wrap
Key 2 A 3CS Move 20 80 Wrap
Key 3 A 3CS Move 30 70 Wrap
Key 4 A 3CS Move 40 60 Wrap
Key 5 A 3CS Move 50 50 Wrap
Key 6 A 3CS Move 60 40 Wrap
Key 7 A 3CS Move 70 30 Wrap
Key 8 A 3CS Move 80 20 Wrap
Key 9 A 3CS Move 90 10 Wrap
Key 0 A 3CS Move 100 0 Wrap

#========================================================================
# F1...F12

# 3 and F1...F12 used for menus
Key F1 A 3 WindowList
Key F2 A 3 Popup StartMenu
Key F3 A 3 Popup Window_Ops

# 3C and F1..12 used to load Fvwm modules
Key F1 A 3M Module FvwmConsole
Key F2 A 3M Module FvwmIdent

# 3S and F1...F12 used for page move
Key F1 A 3C Pick MoveToPage 0 0
Key F2 A 3C Pick MoveToPage 0 1
Key F3 A 3C Pick MoveToPage 1 0
Key F4 A 3C Pick MoveToPage 1 1
Key F5 A 3C Pick MoveToPage 2 0
Key F6 A 3C Pick MoveToPage 2 1
#Key F7 A 3C Pick MoveToPage 0 2
#Key F8 A 3C Pick MoveToPage 1 2
#Key F9 A 3C Pick MoveToPage 2 2


#=========================================================================

# switch between windows
Key Escape A 3
Key Tab A 3 WindowList Root c c NoCurrentDeskTitle
Key p A 3 Prev Focus
Key n A 3 Next Focus

# Operations on the selected window
Key Q A 3CS Pick Close
Key X A 3CS Pick Delete
Key K A 3CS Pick Destroy

Key B A 3 Pick Iconify
Key M A 3 Pick Maximize

Key S A 3 Pick WindowShade Toggle
Key C T 3 Pick Thumbnail

# Operations on all the Window
Key F A 3 All (AcceptsFocus CurrentPage !Iconic !Shaded) RefreshWindow
Key G A 3 All (AcceptsFocus CurrentPage !Iconic !Shaded) WindowShade Toggle
Key Q A 3CS All (AcceptsFocus CurrentPage !Iconic !Shaded) Close

Key E A 3C Exec emacs /home/liqix/liqix
Key R A 3C Exec rxvt
Key X A 3C Exec xterm
Key S A 3C Exec seamonkey
Key F A 3C Exec firefox
Key P A 3C Exec pidgin
Key A A 3C Exec xpdf -g '1024x768' -z '60' ~/liqix/calc/*.pdf
Key Q A 3C Exec qqscript
  评论这张
 
阅读(314)| 评论(0)
推荐 转载

历史上的今天

评论

<#--最新日志,群博日志--> <#--推荐日志--> <#--引用记录--> <#--博主推荐--> <#--随机阅读--> <#--首页推荐--> <#--历史上的今天--> <#--被推荐日志--> <#--上一篇,下一篇--> <#-- 热度 --> <#-- 网易新闻广告 --> <#--右边模块结构--> <#--评论模块结构--> <#--引用模块结构--> <#--博主发起的投票-->
 
 
 
 
 
 
 
 
 
 
 
 
 
 

页脚

网易公司版权所有 ©1997-2017