~/lib/conf/wm/menus
fvwmのメニューの設定.デスクトップ上をクリックするなどの際に,ポップアップして現れるもの.
######################## 各メニュー設定 ################### AddToMenu RootMenu #+ "XTerm" Exec exec xterm #+ "Rxvt" Exec exec rxvt #+ "" Nop #+ "Remote Logins" Popup Remote-Logins #+ "" Nop #+ "Fvwm Simple Config Ops" Popup Misc-Ops #+ "Refresh Screen" Refresh #+ "Recapture Screen" Recapture #+ "" Nop + "Apps" Popup Apps + "" Nop + "Restart Fvwm" Restart fvwm #+ "Fvwm Modules" Popup Module-Popup #+ "Fvwm Window Ops" Popup Window-Ops + "Fvwm" Popup Fvwm + "" 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 #+ "Editres" Exec exec editres #+ "" Nop #+ "XEmacs" Exec exec xemacs #+ "Mail" MailFunction xmh "-font fixed" #+ "" Nop #+ "XLok" Exec exec xlock -mode random #+ "" Nop #+ "Reset X defaults" Exec xrdb -load $HOME/.Xdefaults #AddToMenu Utilities "kterm" Exec exec kterm -sb #+ "netscape" Exec exec netscape #+ "netscape6" Exec exec ns6 #+ "emacs" Exec exec emacs #+ "rmail" Exec exec emacs -e mh-rmail #+ "smail" Exec exec emacs -e mh-smail #+ "mnews" Exec exec kterm -sb -e mnews #+ "xjdic" Exec exec kterm -sb -e xjdic #+ "audiotool" Exec exec /usr/openwin/bin/audiotool #+ "xkill" Exec exec xkill #+ "xlpr" Exec exec xlpr #+ "xnolok" Exec exec xlock -nolock #+ "xlock" Exec exec xlock AddToMenu Apps + "kterm" Exec exec kterm -sb + "emacs" Exec exec emacs + "firefox" Exec exec firefox AddToMenu Fvwm + "Fvwm Modules" Popup Module-Popup + "Fvwm Window Ops" Popup Window-Ops 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 100 100 + "" Nop + "Delete" Delete + "Close" Close + "Destroy" Destroy + "" Nop + "Refresh Screen" Refresh AddToMenu Window-Ops2 "Move" Move + "Resize" Resize + "Raise" Raise + "Lower" Lower + "Iconify" Iconify + "(Un)Stick" Stick + "" Nop + "ScrollBar" Module FvwmScroll 2 2 + "Identify" Module FvwmIdent + "" Nop + "Delete" Delete + "Destroy" Destroy + "Close" Close #+ "Print" PrintFunction # 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 # FvwmIdent WindowにマウスをあわせてクリックするとWindowの情報を表示 # FvwmTalk Fvwmのコマンドを実行する。例えば FvwmIdent とか。 # FvwmButtons FvwmIconMan Pager などが合体しているやつ # FvwmPager Pager(仮想デスクトップの位置関係を表示するやつ)を表示 # FvwmWinList Windowのリストを表示するやつ # FvwmBanner Fvwmのロゴを表示。意味なし # FvwmScroll WindowをクリックするとそのWindowにスクロールバーがつく # FvwmBacker 仮想デスクトップ毎に背景色をわけて設定するやつ # FvwmAuto マウスカーソルをあわせていると自動的にRaiseする # FvwmIconBox アイコンをまとめておく。Style "*" NoIcon のときのみ # FvwmIconMan アイコンをまとめておく #AddToMenu Module-Popup "FvwmModules" Title #+ "Identify" Module FvwmIdent #+ "Talk" Module FvwmTalk #+ "" Nop #+ "Button-Bar" Module FvwmButtons #+ "Pager (1 desks)" 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 Module-Popup "FvwnModules" Title + "Button-Bar" Module FvwmButtons + "Identify" Module FvwmIdent + "Pager" Module FvwmPager 0 1 + "WinList" Module FvwmWinList + "IconMan" Module FvwmIconMan #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 AddToMenu Quit-Verify "Restart Fvwm2" Restart fvwm2 + "" Nop + "Yes, Really Quit" Quit + "" Nop + "Restart Fvwm" Restart fvwm + "No, Don't Quit" Nop ######################## 簡易関数 ########################## # #AddToFunc MailFunction "I" Next [$0] Iconify -1 #+ "I" Next [$0] Focus #+ "I" None [$0] Exec $0 $1 # I=シングルクリック M=ドラッグ D=ダブルクリック AddToFunc Move-or-Raise "I" Raise + "M" Move + "D" Maximize 100 100 AddToFunc Move-or-Raise2 "M" Raise + "M" Move + "D" Lower AddToFunc Move-or-Iconify "M" Raise + "M" Move + "D" Iconify AddToFunc Resize-or-Raise "I" Raise + "M" Resize + "D" Maximize 100 100 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 AddToFunc FocusNextWindow #+ I Next [CurrentDesk] Raise + I Next [CurrentDesk] focus AddToFunc FocusPrevWindow #+ I Prev [CurrentDesk] Raise + I Prev [CurrentDesk] focus # RLOGIN machine fg bg #AddToFunc RLOGIN "I" Exec kterm -fg $1 -bg $2 -e rlogin $0 -8 # TELNET machine fg bg #AddToFunc TELNET "I" Exec kterm -fg $1 -bg $2 -e telnet $0 AddToFunc FocusAndWarp "I" Focus + "I" WarpToWindow 2p 2p AddToFunc DeiconifyFocusAndWarp "I" Iconify -1 + "I" FocusAndWarp AddToFunc ChangeDefaultFocus "I" Style "*" $0 + "I" Recapture AddtoFunc Focus-and-Raise + I Fucus + I Raise