fvwm2 本格稼動


しばらくGnomeを使っていたけど、Gnomeも重たく感じるようになった。
やっぱデスクトップ環境って要らないな〜と思ったので、 あらためてfvwm2を環境構築。

無変換キーとか必要ないのでショートカットとして使うため、カスタマイズ。

まずは .xinirc を編集。以前の環境をほとんどそのままコピー
#!/bin/sh
export LANG=ja_JP.eucJP XMODIFIERS=@im=kinput2
export LC_TIME=C
Xdir=/usr/X11R6
#PATH=$Xdir/bin:${PATH}:/usr/koeki/X11-contrib/bin
XFILESEARCHPATH=$Xdir/lib/X11/app-defaults:$XFILESEARCHPATH
#export XFILESEARCHPATH
#XAPPLRESDIR=$Xdir/lib/X11/app-defaults; export XAPPLRESDIR
xrdb $HOME/.Xdefaults
xsetroot
xclock -rv -chime -geometry 60x60-0+0&
##sleep 2
xmodmap $HOME/.xmodmap
xset bc r s 300 3
LANG=ja XMODIFIERS=@im=kinput2 fvwm2 &
kterm -fg ivory -bg DarkSlateGray -geo 80x37-0+60 -T kterm: -lsp 0&
emacs -geometry 84x32+0+0&
(sleep 6;kinput2 -canna) &
exec kterm -r -sb -geometry 80x18-80+0 -ls -C -T "console:"
   
これで X を立ち上げると kterm や emacs が自動で立ち上がる。
ちなみにキー割り当てをちょっとカスタマイズするために xmodmap を使う。 .xmodmap はこんなかんじ。
keycode 49	= Escape
keycode 64	= Meta_L Meta_L
keycode 123	= grave asciitilde
keycode 133	= backslash bar
keycode 131	= Alt_L
keycode 120	= Meta_L
keycode 129	= Alt_R
keycode 97	= Prior
keycode 103	= Next
keycode 99	= Home
keycode 105	= End
keycode 113	= Meta_R
keycode 117	= Control_R
keycode 115	= Muhenkan
keycode 116	= Muhenkan
add control	= Control_R
clear mod1
clear mod3
add mod1	= Meta_L
add mod1	= Meta_R
add mod3	= Alt_L
add mod3	= Alt_R

つぎに fvwm2 の設定ファイル .fvwm2rc を編集。 っていうかそのままもってきた。メニューバーとか、 ショートカットとか、仮想デスクトップの数とか…。ちと長い。
# this is a bare bones sample .fvwm2rc/system.fvwm2rc file for fvwm-2.
# It should be customized before install.  See other sample .fvwm2rc files
# for hints, as well as pointers from the various links on the official
# fvwm web page (see the FAQ).

#TitleStyle ActiveUp HGradient 16 Yellow tomato
# be sure to customize these paths for your installation:
ModulePath /usr/lib/X11/fvwm2
PixmapPath /usr/include/X11/pixmaps
IconPath   /usr/include/X11/bitmaps
# WIDTH

EdgeResistance 250 10
EdgeScroll 100 100
ClickTime 750

# make sure these fonts exist on your system:
WindowFont -misc-*-medium-*-*-*-14-*-*-*-*-*-*-*
IconFont -adobe-helvetica-bold-r-*-*-10-*-*-*-*-*-*-*

HilightColor black lemonchiffon
DeskTopSize 2x2
MenuStyle yellow grey60 grey40 -adobe-times-bold-r-*-*-14-*-*-*-*-*-*-* fvwm

ColormapFocus FollowsMouse

# default Styles:
Style "*"	BorderWidth 2, HandleWidth 7
Style "*"	Icon unknown1.xpm
Style "*"	ForeColor lemonchiffon, BackColor slategray
Style "*"	MWMFunctions, MWMDecor, HintOverride
#Style "*"	DecorateTransient, NoPPosition
Style "*"	NoPPosition
Style "*"	IconBox 0 -10 -280 -1
Style "*"	FocusFollowsMouse
Style "*"	SmartPlacement

# Styles for various Fvwm modules:
Style "Fvwm*"	    NoTitle,  Sticky, WindowListSkip
Style "Fvwm*"	    BorderWidth 2, CirculateSkipIcon, CirculateSkip
Style "FvwmPager"   StaysOnTop
Style "FvwmBanner"  StaysOnTop
Style "FvwmButtons" Icon toolbox.xpm, ClickToFocus

# Styles for your common terminal emulator programs:
Style "XTerm"	    Icon xterm.xpm, SloppyFocus, IconBox -70 1 -1 -140
Style "rxvt"	    Icon term.xpm, SloppyFocus, IconBox -70 1 -1 -140
Style "rxvt"	    MWMBorder, MWMButtons

# Styles for various common programs:
Style "*lock"	NoTitle, NoHandles, Sticky, WindowListSkip, ClickToFocus, StaysOnTop
Style "*alarm"	NoTitle, NoHandles, Sticky, WindowListSkip, ClickToFocus, StaysOnTop
Style "*load*"	NoTitle, NoHandles, Sticky, ClickToFocus, StaysOnTop
Style "*biff*"	NoTitle, Sticky, WindowListSkip, ClickToFocus, StaysOnTop
Style "xyoubin*" NoTitle, Sticky, WindowListSkip, ClickToFocus, StaysOnTop
Style "header"	NoTitle, Sticky, WindowListSkip, ClickToFocus, NoHandles
Style "MINI*"	NoTitle, Sticky, WindowListSkip, ClickToFocus
Style "xcalc"	Icon xcalc.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"	Icon mag_glass.xpm, RandomPlacement, ClickToFocus
Style "xgraph"	Icon graphs.xpm, RandomPlacement, ClickToFocus
Style "xmosaic" Color Green/Yellow, ClickToFocus


# 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

#   for the title bar buttons:
Mouse 0 1	A	Menu Window-Ops2 Close
Mouse 0 2	A	Maximize-Func
Mouse 0 4	A	Iconify

#   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

######################## Initialization Functions ############################
#AddToFunc InitFunction		  "I" Module FvwmButtons
#+			  "I" exec xsetroot -mod 2 2 -fg \#554055 -bg \#705070

#AddToFunc RestartFunction "I" Module FvwmButtons
#+			  "I" exec xsetroot -mod 2 2 -fg \#554055 -bg \#705070


######################## Menus ###################
AddToMenu RootMenu	"Root Menu"	Title
+			"Netscape7"	Exec exec ns7
+			"Netscape4"	Exec exec netscape
+			"kterm"		Exec exec kterm -g 80x25 -T Kterm:
+			"GIMP"		Exec exec gimp
+			"Emacs"		Exec exec emacs -g 80x40+0+0 -e mew
#+			"Rxvt"		Exec exec rxvt
+			""		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
+			""		Nop
+			"Exit Fvwm"	Popup Quit-Verify

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
+			"xco"		Exec exec xco
+			""		Nop
+			"Mule"		Exec exec mule
+			"Mail"		MailFunction xmh "-font fixed"
+			""		Nop
+			"XLock"		Exec exec xlock -mode random
+			""		Nop
+			"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		
+			"Move"		Move
+			"Resize"	Resize
+			"Raise"		Raise
+			"Lower"		Lower 
+			"(De)Iconify"	Iconify
+			"(Un)Stick"	Stick		
+			"(Un)Maximize"	Maximize
+			""		Nop
+			"Delete"	Delete
+			"Close"		Close
+			"Destroy"	Destroy
+			""		Nop
+			"Refresh Window" RefreshWindow

AddToMenu Window-Ops2	"&Move"		Move
+			"&Resize"	Resize
+			"R&aise"	Raise		
+			"&Lower"	Lower		
+			"(De)&Iconify"	Iconify		
+			"(Un)&Stick"	Stick		
+			"(Un)Ma&ximize" Maximize
+			""		Nop		
+			"&Delete"	Delete	
+			"&Close"	Close
+			"Destroy"	Destroy		
+			""		Nop
+			"ScrollBar"	Module FvwmScroll 2 2	
+			"Print"		PrintFunction
+			"Print Reverse" PrintReverseFunction

# be sure to fill these in with your correct machine names:
#AddToMenu Remote-Logins "dopey" Exec rsh dopey rxvt -display $HOSTDISPLAY &
#+			"snoopy" Exec rsh snoopy rxvt -display $HOSTDISPLAY &
#+			"grumpy" Exec rsh grumpy rxvt -display $HOSTDISPLAY &
#+			"happy"	 Exec rsh happy rxvt -display $HOSTDISPLAY &
#+			"bailey" Exec rsh bailey rxvt -display $HOSTDISPLAY &
#+			"barnum" Exec rsh barnum rxvt -display $HOSTDISPLAY &
#+			"joker"	 Exec rsh joker rxvt -display $HOSTDISPLAY &
#+			"signal" Exec rxterm signal

AddToMenu Module-Popup	"FvwmModules"	Title
+			"Identify"	Module	FvwmIdent
+			"Talk"		Module	FvwmTalk
+			""		Nop
+			"Button-Bar"	Module	FvwmButtons
+			"Pager"		Module	FvwmPager 0 0
+			"Pager (2 desks)" Module  FvwmPager 0 1
+			"WinList"	Module	FvwmWinList
+			""		Nop
+			"Banner"	Module	FvwmBanner
+			"ScrollBar"	Module	FvwmScroll 50 50
+			"Background"	Module	FvwmBacker
+			"AutoRaise"	Module	FvwmAuto 200 Raise Nop
+			"Stop AutoRaise" KillModule FvwmAuto
+			""		Nop
+			"IconBox"	Module	FvwmIconBox
+			"IconMan"	Module	FvwmIconMan
+			""		Nop
+			"Form - Rlogin"	     Module FvwmForm Rlogin
+			"Form - MyFvwmTalk"  Module FvwmForm MyFvwmTalk
+			"Form - QuitVerify"  Module FvwmForm QuitVerify

AddToMenu Quit-Verify	"Really Quit Fvwm?" Title	
+			"Yes, Really Quit"  Quit	
+			""		    Nop 
+			"Restart Fvwm2"	    Restart fvwm2
+			"Restart Fvwm"	    Restart fvwm
+			""		    Nop 
+			"Start twm"	    Restart twm
+			"Start ctwm"	    Restart ctwm
+			"Start tvtwm"	    Restart tvtwm
+			"Start vtwm"	    Restart vtwm
+			"Start mwm"	    Restart mwm
+			"Start olwm"	    Restart /usr/openwin/bin/olwm
+			""		    Nop 
+			"Start dummy"	    Restart xterm
+			""		    Nop 
+			"No, Don't Quit"    Nop 

######################## Sample Functions ##########################

AddToFunc MailFunction	   "I" Next [$0] Iconify -1
+			   "I" Next [$0] Focus
+			   "I" None [$0] Exec $0 $1

AddToFunc Move-or-Raise		"I" Raise
+				"M" Move
+				"D" Lower

AddToFunc Move-or-Raise2	"M" Raise
+				"M" Move
+				"D" Lower

AddToFunc Maximize-Func		"M" Maximize	 0 100
+				"C" Maximize	 0 80
+				"D" Maximize	 100 100

AddToFunc Move-or-Iconify	"I" Raise
+				"M" Move
+				"D" Iconify

AddToFunc Resize-or-Raise	"I" Raise
+				"M" Resize
+				"D" Lower

AddToFunc Resize-or-Raise2	"M" Raise
+				"M" Resize
+				"D" Lower

AddToFunc PrintFunction		"I" Raise
+				"I" Exec xdpr -id $w

AddToFunc PrintReverseFunction	"I" Raise
+				"I" Exec xdpr 1/2 -h -rv -id $w

AddToFunc Iconify-and-Raise	"I" Iconify
+				"I" Raise

# RLOGIN machine fg bg
AddToFunc RLOGIN "I" Exec xterm -fg $1 -bg $2 -e rlogin $0 -8

# TELNET machine fg bg
AddToFunc TELNET "I" Exec xterm -fg $1 -bg $2 -e telnet $0

AddToFunc FocusAndWarp "I" Focus
+		       "I" WarpToWindow $0 $1
#+			"I" WarpToWindow 2p 2p

AddToFunc DeiconifyFocusAndWarp "I" Iconify -1
+				"I" FocusAndWarp $0 $1

AddToFunc ChangeDefaultFocus "I" Style "*" $0
+			     "I" Recapture

################## FvwmButtons button-bar ################################
*FvwmButtonsBack bisque3
*FvwmButtons(Frame 2 Padding 2 2 Container(Rows 2 Frame 1 Padding 10 0 \
					   Swallow(Respawn)))
*FvwmButtons(NoSize Title Close, Icon bomb.xpm, Action Close)
*FvwmButtons(Title Resize Icon mini.resize.xpm Back bisque4 Action Resize)
#*FvwmButtons(Frame -3 Swallow(Respawn,NoHints) xclock \
#       `Exec exec xclock -bg darkolivegreen -padding 0 -geometry +2000+0`)
*FvwmButtons(3x1 Back darkolivegreen Fore white Frame 2 Padding 2 2 \
		 Container(Rows 1 Frame -2 Padding 1 1 Back darkolivegreen))
#*FvwmButtons(Frame 2 Title(Side,Right) Mail Fore white \
#	 Swallow(UseOld,NoRespawn)\
#	 xbiff `Exec exec xbiff -bg darkolivegreen -geometry +200+200`)
*FvwmButtons(2x1 Swallow (NoHints) "FvwmTalk" "FvwmTalk")
*FvwmButtons(End)
*FvwmButtons(End)


########################## Window-Identifier ###############################
# Just choose colors and a fonts
*FvwmIdentBack MidnightBlue
*FvwmIdentFore Yellow
*FvwmIdentFont -adobe-helvetica-medium-r-*-*-12-*-*-*-*-*-*-*

########################### Pager #########################################
*FvwmPagerBack #908090
*FvwmPagerFore #484048
*FvwmPagerFont -adobe-helvetica-bold-r-*-*-10-*-*-*-*-*-*-*
# *FvwmPagerHilight #cab3ca
*FvwmPagerHilight yellow
*FvwmPagerGeometry -1-1
*FvwmPagerLabel 0 Misc
*FvwmPagerLabel 1 Maker
*FvwmPagerLabel 2 Mail
*FvwmPagerLabel 3 Matlab
*FvwmPagerSmallFont 5x8

##########################FvwmWinList##################################
*FvwmWinListBack #908090
*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
				      

*FvwmBackerDesk 0 -solid steelblue
*FvwmBackerDesk 1 -solid midnightblue

*FvwmScrollBack grey40
*FvwmScrollFore green
	
############################################################
############################################################
# Note that icons are shown in the module
#    only if NoIcon commnand is applied.
#Style	   "*"	NoIcon

############################################################
*FvwmIconBoxIconBack	#cfcfcf
*FvwmIconBoxIconHiFore	black
*FvwmIconBoxIconHiBack	LightSkyBlue
*FvwmIconBoxBack	#5f9ea0
#*FvwmIconBoxFore	blue
*FvwmIconBoxGeometry	5x1+0+0
*FvwmIconBoxMaxIconSize 64x38
*FvwmIconBoxFont	-adobe-helvetica-medium-r-*-*-12-*-*-*-*-*-*-*
*FvwmIconBoxSortIcons	IconName
*FvwmIconBoxPadding	4
*FvwmIconBoxLines	10
*FvwmIconBoxSBWidth	11
*FvwmIconBoxPlacement	Left Top
*FvwmIconBoxPixmap	fvwm.xpm
#*FvwmIconBoxHideSC Horizontal
*FvwmIconBoxSetWMIconSize
*FvwmIconBoxHilightFocusWin
#*FvwmIconBoxResolution		 Desk
*FvwmIconBoxMouse	1	Click		RaiseLower
*FvwmIconBoxMouse	1	DoubleClick	Iconify
*FvwmIconBoxMouse	2	Click		Iconify -1, Focus
*FvwmIconBoxMouse	3	Click		Module FvwmIdent
*FvwmIconBoxKey		r	RaiseLower
*FvwmIconBoxKey		space	Iconify
*FvwmIconBoxKey		d	Close
*FvwmIconBoxKey		n	Next
*FvwmIconBoxKey		p	Prev
*FvwmIconBoxKey		h	Left
*FvwmIconBoxKey		j	Down
*FvwmIconBoxKey		k	Up
*FvwmIconBoxKey		l	Right
#
# Icon file specifications
#
# Mostly, you don't have to specify icon files, as FvwmIconBox now
# reads icon files specified in Style commands.
#
*FvwmIconBox		"Fvwm*"		-

# FvwmForm alias - rlogin to host via xterm
*RloginWarpPointer
*RloginFont	    *helvetica*m*r*n*14*
*RloginButtonFont   *helvetica*m*o*n*14*
*RloginInputFont    *cour*m*r*n*14*
*RloginFore	    Black
*RloginBack	    Light Gray
*RloginItemFore		 Wheat
*RloginItemBack		 Gray50
# begin items
*RloginLine	    center
*RloginText	    "Login to Remote Host"
*RloginLine	    center
*RloginText	    "Host:"
*RloginInput	    HostName  20   ""
*RloginLine	    center
*RloginSelection    UserSel   single
*RloginChoice	    Default   Default	on   "same user"
*RloginChoice	    Custom    Custom	off  "user:"
*RloginInput	    UserName  10   ""
*RloginLine	    expand
*RloginButton	    quit "Login" ^M
*RloginCommand Exec xterm  -T xterm@$(HostName) -e rlogin $(HostName) $(Custom?-l $(UserName))
*RloginButton	    restart   "Clear"
*RloginCommand Beep
*RloginButton	    quit "Cancel"
*RloginCommand Nop

# FvwmForm alias - query exit ala mwm
*QuitVerifyGrabServer
*QuitVerifyWarpPointer
*QuitVerifyFont		 *helvetica*m*r*n*14*
#*QuitVerifyButtonFont	  *helvetica*m*o*n*14*
*QuitVerifyButtonFont	 7x13bold
*QuitVerifyFore		 Black
*QuitVerifyBack		 Light Gray
*QuitVerifyItemFore Wheat
*QuitVerifyItemBack Gray50
# begin items
*QuitVerifyLine		 center
*QuitVerifyText		 "Do you really want to exit FVWM?"
*QuitVerifyLine		 expand
*QuitVerifyButton   quit      " Exit "
*QuitVerifyCommand  Quit
*QuitVerifyButton   quit      "Cancel"
*QuitVerifyCommand  Nop

# MyTalk & MyFvwmTalk from Dave Goldberg
# MyTalk Form - dissappears after use
*MyTalkWarpPointer
*MyTalkFont *helvetica*m*r*n*14*
*MyTalkButtonFont *helvetica*m*o*n*14*
*MyTalkInputFont *cour*m*r*n*14*
*MyTalkFore Red
*MyTalkBack Gray
*MyTalkItemFore Blue
*MyTalkItemBack Gray
*MyTalkLine center
*MyTalkText "Fvwm Function"
*MyTalkInput Func 40 ""
*MyTalkLine expand
*MyTalkButton quit "Run" ^M
*MyTalkCommand $(Func)
*MyTalkButton restart "Clear" ^R
*MyTalkButton quit "Cancel" ^C
*MyTalkCommand Nop
# MyFvwmTalk Form - sticks around
*MyFvwmTalkWarpPointer
*MyFvwmTalkFont *helvetica*m*r*n*14*
*MyFvwmTalkButtonFont *helvetica*m*o*n*14*
*MyFvwmTalkInputFont *cour*m*r*n*14*
*MyFvwmTalkFore Red
*MyFvwmTalkBack Gray
*MyFvwmTalkItemFore Blue
*MyFvwmTalkItemBack Gray
*MyFvwmTalkLine center
*MyFvwmTalkText "Fvwm Function"
*MyFvwmTalkInput Func 40 ""
*MyFvwmTalkLine expand
*MyFvwmTalkButton restart "Run" ^M
*MyFvwmTalkCommand $(Func)
*MyFvwmTalkButton restart "Clear" ^R
*MyFvwmTalkCommand Nop
*MyFvwmTalkButton restart "Iconify" ^Z
*MyFvwmTalkCommand Next [MyFvwmTalk] Iconify
*MyFvwmTalkButton quit "Quit" ^C
*MyFvwmTalkCommand Nop

# to change banner pixmap
#*FvwmBannerPixmap fvwm3.xpm
#*FvwmBannerTimeout 2

# Arrow Keys
# press arrow + control anywhere, and scroll by 1 page
Key Left	A	C	Scroll -100 0
Key Right	A	C	Scroll +100 +0
Key Up		A	C	Scroll +0 -100
Key Down	A	C	Scroll +0 +100

# press arrow + meta key, and scroll by 1/10 of a 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

# press shift arrow + control anywhere, and move the pointer by 1% of a page
Key Left	A	SC	CursorMove -1 0
Key Right	A	SC	CursorMove +1 +0
Key Up		A	SC	CursorMove +0 -1
Key Down	A	SC	CursorMove +0 +1

# press shift arrow + control anywhere, and move the pointer by 10% of a page
# Key Left	A	S	CursorMove -10 0
# Key Right	A	S	CursorMove +10 +0
# Key Up	A	S	CursorMove +0 -10
# Key Down	A	S	CursorMove +0 +10

# press shift arrow + meta key, and move the pointer by 1/10 of a page
Key Left	A	S3	CursorMove -10 +0
Key Right	A	S3	CursorMove +10 +0
Key Up		A	S3	CursorMove +0	-10
Key Down	A	S3	CursorMove +0	+10

# Resize functions
Key r	A	SC	Resize
key z	a	SC	Maximize
Key m	A	SC	Maximize 0 95
Key m	A	SC3	Maximize 0 101
Key t	A	SC	Maximize 100 0
Key o	A	SC	Move
Key e	A	SC	Move

# vi-like CursorMove 5% functions
Key h	A	C3	CursorMove -5 0
Key j	A	C3	CursorMove 0 +5
Key k	A	C3	CursorMove 0 -5
Key l	A	C3	CursorMove +5 0

# ws-like CursorMove 5% functions
Key s	A	C3	CursorMove -2 0
Key d	A	C3	CursorMove +2 +0
Key e	A	C3	CursorMove +0 -2
Key x	A	C3	CursorMove +0 +2

# Source
Key s	A	SC	Restart fvwm2
Key F6	A	C	Restart fvwm2

# Raise or Lower
Key 9	A	C	RaiseLower
Key 0	A	C	Iconify

# vi-like scroll functions
Key h	A	SC	Scroll -25 0
Key j	A	SC	Scroll 0 +25
Key k	A	SC	Scroll 0 -25
Key l	A	SC	Scroll +25 0

# Emulate Mouse clicks
Key m		A	3	FakeMouse1
Key comma	A	3	FakeMouse2
Key period	A	3	FakeMouse3

# emacs-like circulate bindings.
Key n	A	SC	Next [CurrentDesk *] DeiconifyFocusAndWarp
Key p	A	SC	Prev [CurrentDesk *] DeiconifyFocusAndWarp

# Keyboard accelerators
Key F1		A	C	Popup "Window-Ops"
Key F2		A	C	Popup "Utilities"
Key F4		A	C	WindowList
Key 1		A	SC	WindowList
Key 2		A	SC	Popup "Window-Ops"
Key F5		A	C	Move
#Key F6		A	N	Resize

# CenterOnCirculate

Key 1	A	C	Next [CurrentDesk emacs*]DeiconifyFocusAndWarp 0 0
Key 2	A	C	Next [CurrentDesk kterm:]DeiconifyFocusAndWarp 0 0
Key 3	A	C	Next [CurrentDesk console:]DeiconifyFocusAndWarp 0 0
Key h	A	3	Next [CurrentDesk kterm-h:]DeiconifyFocusAndWarp 0 0
Key j	A	3	Next [CurrentDesk kterm-j:]DeiconifyFocusAndWarp 0 0
Key k	A	3	Next [CurrentDesk Kterm:]DeiconifyFocusAndWarp 0 0
Key l	A	3	Next [CurrentDesk kterm-l:]DeiconifyFocusAndWarp 0 0
# Warp to Mule
Key 1	A	3	Next [mule?1*]DeiconifyFocusAndWarp
Key 2	A	3	Next [mule?2*]DeiconifyFocusAndWarp
Key 3	A	3	Next [mule?3*]DeiconifyFocusAndWarp
Key 4	A	3	Next [mule?4*]DeiconifyFocusAndWarp
Key 5	A	3	Next [mule?5*]DeiconifyFocusAndWarp
Key 6	A	3	Next [mule?6*]DeiconifyFocusAndWarp
Key 7	A	3	Next [mule?7*]DeiconifyFocusAndWarp
Key 8	A	3	Next [mule?8*]DeiconifyFocusAndWarp
Key 9	A	3	Next [mule?9*]DeiconifyFocusAndWarp
Key m	A	3S	Next [*MINI*]DeiconifyFocusAndWarp
# Warp to applications
Key n	A	3	Next [!Iconic *etscape*]FocusAndWarp 50 50
Key n	A	S3	Next [Iconic *etscape*]DeiconifyFocusAndWarp 50 50
Key d	A	3	Next [CurrentDesk *dvi*]DeiconifyFocusAndWarp 50 50
Key g	A	S3	Next [CurrentDesk *hostview*]DeiconifyFocusAndWarp 50 50
Key p	A	3	Next [CurrentDesk *agicPoi*]DeiconifyFocusAndWarp 50 50
Key i	A	3	Next [CurrentDesk display]DeiconifyFocusAndWarp 3 10
Key g	A	3	Next [CurrentDesk Gimp*]DeiconifyFocusAndWarp 3 10
Key v	A	3	Next [CurrentDesk GQv*]DeiconifyFocusAndWarp 3 10
Key q	A	3	Next [CurrentDesk GQm*]DeiconifyFocusAndWarp 20 90
Key s	A	3	Next [CurrentDesk Script*]DeiconifyFocusAndWarp 3 10
Key x	A	3	Next [CurrentDesk xv]DeiconifyFocusAndWarp 3 10
Key t	A	3	Next [CurrentDesk Tgif]DeiconifyFocusAndWarp 50 50

ctrl+1 でemacs、ctrl+2 で kterm、ctrl+3 でconsole、 無変換+k で Kterm、無変換+n で Netscape などなどのショートカット。
Generated with mkdiary.rb