On Mon, Apr 05, 2004 at 12:34:52PM +0200, Dominik Vogt wrote: > As far as I understand Xinarama and multi-head, the setup you > describe is not possible. Either you are running Xinareama and > *one* fvwm, or you have a multi-head setup and one fvwm for each > screen. With Xinerama you can move windows to all video screens, > with multi-head you can't.
Yes, I got confused when fiddling things around attempting to get the
setup I wanted. I do indeed have Xinerama off, as when on that just
gives me a double-width desktop across the two minitors, which isn't
what I want.
> Can you please post:
>
> - the relevant parts of you X config
> - the lines you use to start fvwm
> - all Xinerama and Desktop settings from your .fvwm2rc
Files attached. Note I've switched to NOT using -s on the fvwm in
.xinitrc, and am instead using a "Read .fvwm2rc.<screen number>" in
~/.fvwm2rc and the relevant files in ~/.fvwm/ to get different Init
sections for the two fvwm2 instances.
> I need this information tu understand what you are doing.
If recoding is needed I'd guess that the setup would be:
1) Xinerama *on* so that windows can be moved between screens
2) fvwm2 code changed to treat the two screens as seperate
virtual desktops instead of as one double-width one.
3) FvwmPager code changed to specify independently which virtual
desktop is displayed on either screen.
The basic thing is to NOT have the two screens forming one virtual
desktop and to have a single FvwmPager for controlling what is displayed
on the seperate virtual desktops/screens.
thanks,
-Ath
--
- Athanasius = Athanasius(at)miggy.org / http://www.miggy.org/
Finger athan(at)fysh.org for PGP key
"And it's me who is my enemy. Me who beats me up.
Me who makes the monsters. Me who strips my confidence." Paula Cole - ME
Section "ServerLayout"
Identifier "XFree86 Configured"
Screen 0 "Screen0"
Screen 1 "Screen1" rightOf "Screen0"
InputDevice "Mouse0" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
EndSection
Section "ServerFlags"
Option "StandbyTime" "1800"
Option "SuspendTime" "3600"
Option "OffTime" "7200"
Option "Xinerama" "false"
EndSection
Section "Files"
RgbPath "/usr/X11R6/lib/X11/rgb"
ModulePath "/usr/X11R6/lib/modules"
FontPath "/usr/X11R6/lib/X11/fonts/misc/"
# 100dpi 75dpi PEX Speedo Type1 cyrillic encodings misc util
FontPath "/usr/X11R6/lib/X11/fonts/misc/"
FontPath "/usr/X11R6/lib/X11/fonts/75dpi/"
FontPath "/usr/X11R6/lib/X11/fonts/100dpi/"
FontPath "/usr/X11R6/lib/X11/fonts/PEX/"
FontPath "/usr/X11R6/lib/X11/fonts/Speedo/"
FontPath "/usr/X11R6/lib/X11/fonts/Type1/"
FontPath "/usr/X11R6/lib/X11/fonts/cyrillic/"
FontPath "/usr/X11R6/lib/X11/fonts/encodings/"
FontPath "/usr/X11R6/lib/X11/fonts/util/"
FontPath "/usr/local/X11R6/lib/X11/fonts/MathPCF/"
FontPath "/usr/share/fonts/truetype/"
EndSection
Section "Module"
Load "glx"
Load "dbe"
Load "dri"
Load "extmod"
Load "pex5"
Load "record"
Load "xie"
Load "nvidia"
EndSection
Section "InputDevice"
Identifier "Keyboard0"
Driver "keyboard"
Option "AutoRepeat" "500 30"
Option "XkbRules" "xfree86"
Option "XkbModel" "pc104"
Option "XkbLayout" "gb"
EndSection
Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "IMPS/2"
Option "Device" "/dev/input/mice"
Option "ZAxisMapping" "4 5"
Option "Buttons" "6"
EndSection
Section "Monitor"
Identifier "Belinea 103045 0"
VendorName "Belinea"
ModelName "103045"
HorizSync 30-86
VertRefresh 50-160
Option "DPMS" "on"
EndSection
Section "Monitor"
Identifier "Belinea 103045 1"
VendorName "Belinea"
ModelName "103045"
HorizSync 30-86
VertRefresh 50-160
Option "DPMS" "on"
EndSection
Section "Device"
### Available Driver options are:-
### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
### <string>: "String", <freq>: "<f> Hz/kHz/MHz"
### [arg]: arg optional
#Option "NoLogo" # [<bool>]
#Option "SWcursor" # [<bool>]
#Option "HWcursor" # [<bool>]
#Option "NoAccel" # [<bool>]
#Option "ShadowFB" # [<bool>]
#Option "Rotate" # [<str>]
#Option "VideoKey" # <i>
#Option "NvAGP" # <i>
#Option "PixmapCacheLines" # <i>
#Option "IgnoreEDID" # [<bool>]
#Option "NoDDC" # [<bool>]
#Option "ConnectedMonitor" # <str>
#Option "ConnectedMonitors" # <str>
#Option "TVStandard" # <str>
#Option "TVOutFormat" # <str>
#Option "NoRenderAccel" # [<bool>]
#Option "CursorShadow" # [<bool>]
#Option "CursorShadowAlpha" # <i>
#Option "CursorShadowXOffset" # <i>
#Option "CursorShadowYOffset" # <i>
#Option "HotkeySequence" # <str>
#Option "UseEdidFreqs" # [<bool>]
#Option "TwinView" # [<bool>]
#Option "TwinViewOrientation" # <str>
#Option "SecondMonitorHorizSync" # <str>
#Option "SecondMonitorVertRefresh" # <str>
#Option "MetaModes" # <str>
Identifier "Card0"
Driver "nvidia"
VendorName "NVidia"
BoardName "GeForce4 Ti 4800"
BusID "PCI:1:0:0"
Option "NoLogo" "on"
Screen 0
EndSection
Section "Device"
Identifier "Card1"
Driver "nvidia"
VendorName "NVidia"
BoardName "GeForce4 Ti 4800"
BusID "PCI:1:0:0"
Option "NoLogo" "on"
Screen 1
EndSection
Section "Screen"
Identifier "Screen0"
Device "Card0"
Monitor "Belinea 103045 0"
DefaultDepth 24
SubSection "Display"
Depth 1
Modes "1280x1024" "1024x768" "800x600" "640x480" "1600x1200"
"960x720" "512x384" "400x300" "320x240" "1152x864"
ViewPort 0 0
Virtual 1280 1024
EndSubSection
SubSection "Display"
Depth 4
Modes "1280x1024" "1024x768" "800x600" "640x480" "1600x1200"
"960x720" "512x384" "400x300" "320x240" "1152x864"
ViewPort 0 0
Virtual 1280 1024
EndSubSection
SubSection "Display"
Depth 8
Modes "1280x1024" "1024x768" "800x600" "640x480" "1600x1200"
"960x720" "512x384" "400x300" "320x240" "1152x864"
ViewPort 0 0
Virtual 1280 1024
EndSubSection
SubSection "Display"
Depth 15
Modes "1280x1024" "1024x768" "800x600" "640x480" "1600x1200"
"960x720" "512x384" "400x300" "320x240" "1152x864"
ViewPort 0 0
Virtual 1280 1024
EndSubSection
SubSection "Display"
Depth 16
Modes "1280x1024" "1024x768" "800x600" "640x480" "1600x1200"
"960x720" "512x384" "400x300" "320x240" "1152x864"
ViewPort 0 0
Virtual 1280 1024
EndSubSection
SubSection "Display"
Depth 24
Modes "1280x1024" "1024x768" "800x600" "640x480" "1600x1200"
"960x720" "512x384" "400x300" "320x240" "1152x864"
ViewPort 0 0
Virtual 1280 1024
EndSubSection
EndSection
Section "Screen"
Identifier "Screen1"
Device "Card1"
Monitor "Belinea 103045 1"
DefaultDepth 24
SubSection "Display"
Depth 1
Modes "1280x1024" "1024x768" "800x600" "640x480" "1600x1200"
"960x720" "512x384" "400x300" "320x240" "1152x864"
ViewPort 0 0
Virtual 1280 1024
EndSubSection
SubSection "Display"
Depth 4
Modes "1280x1024" "1024x768" "800x600" "640x480" "1600x1200"
"960x720" "512x384" "400x300" "320x240" "1152x864"
ViewPort 0 0
Virtual 1280 1024
EndSubSection
SubSection "Display"
Depth 8
Modes "1280x1024" "1024x768" "800x600" "640x480" "1600x1200"
"960x720" "512x384" "400x300" "320x240" "1152x864"
ViewPort 0 0
Virtual 1280 1024
EndSubSection
SubSection "Display"
Depth 15
Modes "1280x1024" "1024x768" "800x600" "640x480" "1600x1200"
"960x720" "512x384" "400x300" "320x240" "1152x864"
ViewPort 0 0
Virtual 1280 1024
EndSubSection
SubSection "Display"
Depth 16
Modes "1280x1024" "1024x768" "800x600" "640x480" "1600x1200"
"960x720" "512x384" "400x300" "320x240" "1152x864"
ViewPort 0 0
Virtual 1280 1024
EndSubSection
SubSection "Display"
Depth 24
Modes "1280x1024" "1024x768" "800x600" "640x480" "1600x1200"
"960x720" "512x384" "400x300" "320x240" "1152x864"
ViewPort 0 0
Virtual 1280 1024
EndSubSection
EndSection
#!/bin/sh
# $XConsortium: xinitrc.cpp,v 1.4 91/08/22 11:41:34 rws Exp $
userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/usr/X11R6/lib/X11/xinit/.Xresources
sysmodmap=/usr/X11R6/lib/X11/xinit/.Xmodmap
# merge in defaults and keymaps
if [ -f $sysresources ]; then
xrdb -merge $sysresources
fi
if [ -f $sysmodmap ]; then
xmodmap $sysmodmap
fi
if [ -f $userresources ]; then
xrdb -merge $userresources
fi
if [ -f $usermodmap ]; then
xmodmap $usermodmap
fi
rm -f ${HOME}/.netscape/lock
# start some nice programs
#xmodmap ${HOME}/.xmodmap-`uname -n`
# Mouse accel/start
xset m 3.6 2
# Keyboard delay/repeat
xset r rate 300 25
# Screen saver on
xset s blank
# Screen saver blank after 15min
xset s 1800
# Enable DPMS
xset +dpms
# DPMS standby/suspend/off
xset dpms 1800 3600 7200
# xset b off
xrdb -merge ${HOME}/.Xdefaults
rm -f ${HOME}/.licq/licq.pid
if [ `hostname -s` == "jimblewix" ];
then
fvwm2 -f ${HOME}/.fvwm2rc-jim
else
fvwm2
fi
# Trying to compile an old .fvwrc to the new fvwm-2.0 Format ########################################################################### # set up the colors # # OK some people like bright clear colors on their window decorations. # These people, I guess would mostly be from nice sunny/good weather places # line California. # # StdForeColor Black # StdBackColor LightSkyBlue # HiForeColor yellow # HiBackColor PeachPuff1 # PagerBackColor BlanchedAlmond # Me, I'm from Upstate New York, and live in New Hampshire, so I prefer # these dark muddy colors... # this is used for non-selected windows, menus, and the panner Style "*" ForeColor Black Style "*" BackColor #60a0c0 #Set the foreground and background color for selected windows HilightColor Black #c06077 Style "Black" Sticky Style "#60c0a0" Sticky ############################################################################ # Now the fonts - one for menus, another for window titles, another for icons WindowFont -adobe-helvetica-bold-r-*-*-12-*-*-*-*-*-*-* IconFont -*-fixed-medium-r-normal-*-14-*-*-*-*-*-*-* ########################################################################### # Set up the major operating modes # # Xinerama settings Xinerama off XineramaPrimaryScreen 0 Style * StartsOnScreen c ######################## 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. #AutoRaise 750 # Normally, we'll be in focus-follows mouse mode, but uncomment this # for mwm-style click-to-focus #ClickToFocus ######################## ICON STUFF ############################## # Auto Place Icons is a nice feature.... Style "*" IconBox [EMAIL PROTECTED] #Style "*" IconBox 100x700-0+0 # If you uncomment this, and make sure that the WindowList is bound to # something, it works pretty much like an icon manager. #SuppressIcons # With AutoPlacement, icons will normally place themselves underneath active # windows. This option changes that. #StubbornIconPlacement # If you want ALL you icons to follow you around the desktop (Sticky), try # this #StickyIcons ######################## 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. # MWMDecorHints # These are affect minor aspects for the look-and-feel. # Sub-menus placement mwm-style? # MWMMenus # mwm-style border reliefs (less deep than default fvwm) ? # MWMBorders # Maximize button does mwm-inversion thingy # MWMButtons ######################## MISCELLANEOUS STUFF ####################### # If you don't like the default 150 msec click delay for the complex functions # change this and uncomment it. #ClickTime 150 # 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 <= N <= 100 OpaqueMoveSize 100 # flip by whole pages on the edge of the screen. EdgeScroll 100 100 # A modest delay before flipping pages seems to be nice... # I thresh in a 50 pixel Move-resistance too, just so people # can try it out. EdgeResistance 250 50 #EdgeResistance 0 0 # I like to use a large virtual screen and move from page to page with the # pager. #EdgeResistance 10000 0 XORvalue 127 ######################## WINDOW PLACEMENT ####################### # RandomPlacement prevents user interaction while placing windows: # RandomPlacement # SmartPlacement makes new windows pop-up in blank regions of screen # if possible, or falls back to random or interactive placement. Style "*" SmartPlacement # NoPPosition instructs fvwm to ignore the PPosition field in window # geometry hints. Emacs annoyingly sets PPosition to (0,0)! #NoPPosition ######################## DECORATIONS ####################### # If you want decorated transient windows, uncomment this: #DecorateTransients ########################################################################### # Set up the virtual desktop and pager #set the desk top size in units of physical screen size DeskTopSize 3x2 # and the reduction scale used for the panner/pager *FvwmPagerDeskTopScale 48 ########################################################################## # Module path and paths to the icons # # ModulePath is a colon-separated list, just like regular unix PATH ModulePath /usr/lib/fvwm/2.4.6 ImagePath /usr/include/X11/pixmaps/:/usr/include/X11/bitmaps/ ############################################################################ # 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. # change the default width. Style "*" BorderWidth 2, HandleWidth 2, Color Black/#60a0c0,Icon unknown1.xpm Style "Fvwm*" NoTitle, Sticky, WindowListSkip Style "Fvwm Pager" StaysOnTop Style "FvwmBanner" StaysOnTop Style "FvwmButtons" NoTitle, NoHandles, Sticky, WindowListSkip,BorderWidth 0 Style "*lock" NoTitle, NoHandles, Sticky, WindowListSkip Style "xbiff" NoTitle, Sticky, WindowListSkip Style "Maker" StartsOnDesk 1 Style "matlab" StartsOnDesk 3 Style "signal" StartsOnDesk 3 Style "rxvt" Icon term.xpm Style "xterm" Icon xterm-linux.xpm, Color black/grey Style "color_xterm" Icon xterm-linux.xpm, Color black/grey Style "Appointment" Icon datebook.xpm Style "xcalc" Icon xcalc.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 "FvwmButtons" Icon toolbox.xpm Style "x11amp" NoTitle Style "xmms" NoTitle Style "LicqWharf" NoTitle, Sticky Style "licq" Sticky, NoIcon Style "xmoontool" Sticky Style "root" Sticky Style "rootJIM" Sticky Style "[EMAIL PROTECTED]" Sticky Style "wmWeather" Sticky, NoTitle Style "Blender" NoTitle Style "MPlayer" NoTitle, NoHandles, BorderWidth 0 Style "Buddy Ticker" Sticky +186+14 ## Init stuff per screen Read .fvwm2rc.$[screen] ############################################################################ # Stuff to do ona restart AddToFunc "RestartFunction" "I" Exec exec xsetroot -solid black + "I" Module FvwmPager 0 0 ############################################################################ ############################################################################ # Now define some handy complex functions # This one moves and then raises the window if you drag the mouse, # only raises the window if you click, or does a RaiseLower if you double # click AddToFunc "Move-or-Raise" "M" Move + "M" Raise + "C" Raise + "D" RaiseLower # This one maximizes vertically if you click (leaving room for the GoodStuff bar at the # bottom, or does a full maximization if you double click, or a true full vertical # maximization if you just hold the mouse button down. AddToFunc "maximize_func" "M" Maximize 0 100 + "C" Maximize 0 80 + "D" Maximize 100 100 # This one moves and then lowers the window if you drag the mouse, # only lowers the window if you click, or does a RaiseLower if you double # click AddToFunc "Move-or-Lower" "M" Move + "M" Lower + "C" Lower + "D" RaiseLower # This one moves or (de)iconifies: AddToFunc "Move-or-Iconify" "M" Move + "D" Iconify # This one resizes and then raises the window if you drag the mouse, # only raises the window if you click, or does a RaiseLower if you double # click AddToFunc "Resize-or-Raise" "M" Resize + "M" Raise + "C" Raise + "D" RaiseLower # This is provided as a hint only. # Move to a known page on the desktop, then start an application in a # known location. Could also switch to a known desktop, I guess #Function "abs_coord" # GoToPage "Immediate" 1,1 # Exec exec "Immediate" exec xcalc -geometry +100+100 #EndFunction ############################################################################## #now define the menus - defer bindings until later AddToMenu Shells "Shells" Title + "Xterm (6x10)" Exec exec /usr/bin/X11/xterm -sl 500 -j -ls -fn 6x10 + "Color Xterm (5x7 font)" Exec exec /usr/bin/X11/color_xterm -sl 500 -j -ls -fn 6x10 + "Color Rxvt (VT100 emulator)" Exec exec /usr/bin/X11/rxvt -font 6x10 -ls AddToMenu Screensaver "Screensaver" Title + "Bat" Exec exec xlock -nolock -nice 0 -mode bat + "Blank" Exec exec xlock -nolock -nice 0 -mode blank + "Blot" Exec exec xlock -nolock -nice 0 -mode blot + "Bob" Exec exec xlock -nolock -nice 0 -mode bob + "Bounce" Exec exec xlock -nolock -nice 0 -mode bounce + "Flame" Exec exec xlock -nolock -nice 0 -mode flame + "Galaxy" Exec exec xlock -nolock -nice 0 -mode galaxy + "Grav" Exec exec xlock -nolock -nice 0 -mode grav + "Helix" Exec exec xlock -nolock -nice 0 -mode helix + "Hop" Exec exec xlock -nolock -nice 0 -mode hop + "Hyper" Exec exec xlock -nolock -nice 0 -mode hyper + "Kaleid" Exec exec xlock -nolock -nice 0 -mode kaleid + "Life" Exec exec xlock -nolock -nice 0 -mode life + "Life3d" Exec exec xlock -nolock -nice 0 -mode life3d + "Maze" Exec exec xlock -nolock -nice 0 -mode maze + "Pyro" Exec exec xlock -nolock -nice 0 -mode pyro + "Qix" Exec exec xlock -nolock -nice 0 -mode qix + "Random" Exec exec xlock -nolock -nice 0 -mode random + "Rect" Exec exec xlock -nolock -nice 0 -mode rect + "Rock" Exec exec xlock -nolock -nice 0 -mode rock + "Rotor" Exec exec xlock -nolock -nice 0 -mode rotor + "Sphere" Exec exec xlock -nolock -nice 0 -mode sphere + "Spline" Exec exec xlock -nolock -nice 0 -mode spline + "Swarm" Exec exec xlock -nolock -nice 0 -mode swarm + "Wator" Exec exec xlock -nolock -nice 0 -mode wator + "Worm" Exec exec xlock -nolock -nice 0 -mode worm + "World" Exec exec xlock -nolock -nice 0 -mode world AddToMenu Screenlock "Lock Screen" Title + "Bat" Exec exec xlock -nice 0 -mode bat + "Blank" Exec exec xlock -nice 0 -mode blank + "Blot" Exec exec xlock -nice 0 -mode blot + "Bob" Exec exec xlock -nice 0 -mode bob + "Bounce" Exec exec xlock -nice 0 -mode bounce + "Flame" Exec exec xlock -nice 0 -mode flame + "Galaxy" Exec exec xlock -nice 0 -mode galaxy + "Grav" Exec exec xlock -nice 0 -mode grav + "Helix" Exec exec xlock -nice 0 -mode helix + "Hop" Exec exec xlock -nice 0 -mode hop + "Hyper" Exec exec xlock -nice 0 -mode hyper + "Kaleid" Exec exec xlock -nice 0 -mode kaleid + "Life" Exec exec xlock -nice 0 -mode life + "Life3d" Exec exec xlock -nice 0 -mode life3d + "Maze" Exec exec xlock -nice 0 -mode maze + "Pyro" Exec exec xlock -nice 0 -mode pyro + "Qix" Exec exec xlock -nice 0 -mode qix + "Random" Exec exec xlock -nice 0 -mode random + "Rect" Exec exec xlock -nice 0 -mode rect + "Rock" Exec exec xlock -nice 0 -mode rock + "Rotor" Exec exec xlock -nice 0 -mode rotor + "Sphere" Exec exec xlock -nice 0 -mode sphere + "Spline" Exec exec xlock -nice 0 -mode spline + "Swarm" Exec exec xlock -nice 0 -mode swarm + "Wator" Exec exec xlock -nice 0 -mode wator + "Worm" Exec exec xlock -nice 0 -mode worm + "World" Exec exec xlock -nice 0 -mode world AddToMenu Games "Games" Title + "Maze" Exec exec maze + "Spider" Exec exec spider + "Workman" Exec exec workman + "Xcuckoo" Exec exec xcuckoo + "Xeyes" Exec exec xeyes + "Xlander" Exec exec xlander + "Xlogo" Exec exec xlogo + "Xmahjongg" Exec exec xmahjongg + "Xroach" Exec exec xroach + "Xtetris" Exec exec xtetris + "Xvier" Exec exec xvier AddToMenu Applications "Applications" Title + "Firefox" Exec exec firefox + "GAIM" Exec exec gaim + "LoserJabber" Exec exec loserjabber + "XV" Exec exec xv + "MTV" Exec exec mtv + "GIMP" Exec exec gimp + "ICQ" Exec exec licq + "Xmcd" Exec exec xmcd + "Xmms" Exec exec xmms + "grip" Exec exec grip # This menu is invoked as a sub-menu - it allows you to quit, # restart, or switch to another WM. AddToMenu Quit-Verify "Really Quit Fvwm?" Title + "No, Don't Quit" Nop + "Restart fvwm2" Restart fvwm2 + "" Nop + "Yes, Really Quit" Quit # Provides a list of modules to fire off AddToMenu Module-Popup "Modules" Title + "FvwmConfig" Module FvwmConfig + "FvwmButtons" Module FvwmButtons + "Clean-Up" Module FvwmClean + "Identify" Module FvwmIdent + "SaveDesktop" Module FvwmSave + "Debug" Module FvwmDebug + "Pager" Module FvwmPager 0 0 + "FvwmWinList" Module FvwmWinList # Misc. not often used stuff AddToMenu Misc "Misc." Title + "Modules" Popup Module-Popup + "Unclutter" Exec exec unclutter # Xterms and the like AddToMenu Xterms "Xterm" Exec exec xterm -fn 6x10 + "Color Xterm" Exec exec color_xterm -fn 6x10 + "Color Xterm (ut)" Exec exec color_xterm +ut -fn 6x10 + "Color Rxvt" Exec exec rxvt -font 6x10 -ls + "Root Xterm" Exec exec xterm -geometry 80x24 -title root -e su - + "Loth Xterm" Exec exec xterm -geometry 80x24 -title Lothlorien -e su - loth AddToMenu MersinetTelnets "Mersinet Telnets" Title + "Server1" Exec exec color_xterm -T '[EMAIL PROTECTED]' -n '[EMAIL PROTECTED]' -e telnet server1.mersinet.co.uk + "Server2" Exec exec color_xterm -T '[EMAIL PROTECTED]' -n '[EMAIL PROTECTED]' -e telnet server2.mersinet.co.uk + "Server3" Exec exec color_xterm -T '[EMAIL PROTECTED]' -n '[EMAIL PROTECTED]' -e telnet server3.mersinet.co.uk + "Server4" Exec exec color_xterm -T '[EMAIL PROTECTED]' -n '[EMAIL PROTECTED]' -e telnet server4.mersinet.co.uk + "Server5" Exec exec color_xterm -T '[EMAIL PROTECTED]' -n '[EMAIL PROTECTED]' -e telnet server5.mersinet.co.uk + "NS0" Exec exec color_xterm -T '[EMAIL PROTECTED]' -n '[EMAIL PROTECTED]' -e telnet ns0.mersinet.co.uk + "Goliath" Exec exec color_xterm -T '@Goliath' -n '@Goliath' -e telnet goliath.mersinet.co.uk # Mersinet logins AddToMenu Mersinet "Mersinet" Title + "Server1" Exec exec color_xterm -T '[EMAIL PROTECTED]' -n '[EMAIL PROTECTED]' -e ssh s1 + "Server2" Exec exec color_xterm -T '[EMAIL PROTECTED]' -n '[EMAIL PROTECTED]' -e ssh s2 + "Server3" Exec exec color_xterm -T '[EMAIL PROTECTED]' -n '[EMAIL PROTECTED]' -e ssh s3 + "Server4" Exec exec color_xterm -T '[EMAIL PROTECTED]' -n '[EMAIL PROTECTED]' -e ssh s4 + "Server5" Exec exec color_xterm -T '[EMAIL PROTECTED]' -n '[EMAIL PROTECTED]' -e ssh s5 + "ns0" Exec exec color_xterm -T '[EMAIL PROTECTED]' -n '[EMAIL PROTECTED]' -e ssh ns0 + "Goliath" Exec exec color_xterm -T '@Goliath' -n '@Goliath' -e ssh -C goliath.mersinet.co.uk + "Telnets" Popup MersinetTelnets # Remote Logins AddToMenu Logins "Logins" Title + "Jimblewix" Exec exec color_xterm -ls -T '@Jimblewix' -n '@Jimblewix' -e ssh jim + "Emelia" Exec exec color_xterm -ls -T '@Emelia' -n '@Emelia' -e ssh emelia + "Kiki" Exec exec color_xterm -fn 9x15 -T '@Kiki' -n '@Kiki' -e ssh kiki + "Bowl" Exec exec color_xterm -fn 9x15 -geometry 80x28 -T '@Bowl' -n '@Bowl' -e ssh -C bowl.fysh.org + "[EMAIL PROTECTED]" Exec exec color_xterm -T '[EMAIL PROTECTED]' -n '[EMAIL PROTECTED]' -e ssh -C [EMAIL PROTECTED] + "velox" Exec exec color_xterm -ls -T '@Velox' -n '@Velox' -e ssh -C velox.critter.net. #+ "Surfers" Exec exec color_xterm -T 'Surfers' -n 'Surfers' -e ssh surf #+ "[EMAIL PROTECTED]" Exec exec color_xterm -T '[EMAIL PROTECTED]' -n '[EMAIL PROTECTED]' -e ssh asurf #+ "Sibling" Exec exec color_xterm -T '@Sibling' -n '@Sibling' -e ssh sib #+ "Elrond" Exec exec color_xterm -T '@Elrond' -n '@Elrond' -e ssh elrond + "EW-Too" Exec exec color_xterm -T '@ewtoo.org' -n '@ewtoo.org' -e ssh ewtoo + "evedb-t" Exec exec color_xterm -T 'EvE-DB' -n 'EvE-DB' -e telnet -l evedb www.eve-db.com + "[EMAIL PROTECTED]" Exec exec color_xterm -T '[EMAIL PROTECTED]' -n '[EMAIL PROTECTED]' -e ssh gcjim # This menu will fire up some very common utilities AddToMenu Utilities "Utilities" Title + "Xterms" Popup Xterms + "Logins" Popup Logins + "" Nop + "XSCreensaver(RUN)" Exec exec xscreensaver + "XSCreensaver(lock)" Exec exec xscreensaver-activate + "XSCreensaver(exit)" Exec exec xscreensaver-command -exit + "Monitor Off (xset)" Exec exec mon-off + "" Nop + "Applications" Popup Applications + "" Nop + "Games" Popup Games + "" Nop + "Misc" Popup Misc + "" Nop + "Exit Fvwm" Popup Quit-Verify + "" Nop + "Refresh Screen" Refresh # This defines the most common window operations AddToMenu WindowOps "Window Ops" Title + "Move" Function Move-or-Raise + "Resize" Function Resize-or-Raise + "Raise" Raise + "Lower" Lower + "(De)Iconify" Iconify + "(Un)Maximize" Function maximize_func + "Refresh Screen" Refresh + "(Un)Stick" Stick + "" Nop + "Close" Close + "Delete" Delete + "Destroy" Destroy # A trimmed down version of "Window Ops", good for binding to decorations AddToMenu WindowOps2 "Move" Move + "Resize" Resize + "Raise" Raise + "Lower" Lower + "Iconify" Iconify + "(Un)Stick" Stick + "" Nop + "ScrollBar" Module FvwmScroll 2 2 + "" Nop + "Close" Close + "Delete" Delete + "Destroy" Destroy ############################################################################# # One more complex function - couldn't be defined earlier because it used # pop-up menus # # This creates a motif-ish sticky menu for the title-bar window-ops # pop-up # Menu acts like normal twm menu if you just hold the button down, # but if you click instead, the menu stays up, motif style AddToFunc "window_ops_func" "C" PopUp WindowOps2 + "M" PopUp WindowOps2 # Motif would add # Delete "DoubleClick" ############################################################################## # This defines the mouse bindings # First, for the mouse in the root window # Button 1 gives the Utilities menu # Button 2 gives the Window Ops menu # Button 3 gives the WindowList (like TwmWindows) # I use the AnyModifier (A) option for the modifier field, so you can hold down # any shift-control-whatever combination you want! # Button Context Modifi Function Mouse 1 R A Menu Utilities Nop Mouse 2 R A Menu WindowOps Nop Mouse 3 R A WindowList #Mouse 3 R A Module "winlist" FvwmWinList transient # Now the title bar buttons # Any button in the left title-bar button gives the window ops menu # Any button in the right title-bar button Iconifies the window # Any button in the rightmost title-bar button maximizes # Note the use of "Mouse 0" for AnyButton. ## Title bar buttons 1 3 5 7 9 0 8 6 4 2 # Button Context Modifi Function Mouse 1 1 A Function "window_ops_func" Mouse 1 6 A Iconify Mouse 1 4 A Function "maximize_func" Mouse 1 2 A Close # Now the rest of the frame # Here I invoke my complex functions for Move-or-lower, Move-or-raise, # and Resize-or-Raise. # Button 1 in the corner pieces, with any modifiers, gives resize or raise Mouse 1 F A Function "Resize-or-Raise" # Button 1 in the title, sides, or icon, w/ any modifiers, gives move or raise Mouse 1 TS A Function "Move-or-Raise" # Button 1 in an icons gives move for a drag, de-iconify for a double-click, # nothing for a single click # Button 2 in an icon, w/ any modifiers, gives de-iconify Mouse 1 I A Function "Move-or-Iconify" Mouse 2 I A Iconify # Button 2 in the corners, sides, or title-bar gives the window ops menu Mouse 2 FST A Function "window_ops_func" # Button 3 anywhere in the decoration (except the title-bar buttons) # does a raise-lower Mouse 3 TSIF A RaiseLower # Button 3 in the window, with the Modifier-1 key (usually alt or diamond) # gives Raise-Lower. Used to use control here, but that interferes with xterm Mouse 3 W M RaiseLower ############################################################################ # Now some keyboard shortcuts. # An attempt to make Ctrl + Ins do a 'paste' Key Insert W C "Mouse 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 M Scroll -10 +0 # Key Right A M Scroll +10 +0 # Key Up A M Scroll +0 -10 # Key Down A M 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 + meta key, and move the pointer by 1/10 of a page # Key Left A SM CursorMove -10 +0 # Key Right A SM CursorMove +10 +0 # Key Up A SM CursorMove +0 -10 # Key Down A SM CursorMove +0 +10 # Keyboard accelerators Key F1 A M Popup "Utilities" Key F2 A M Popup "WindowOps" Key F3 A M Module "FvwmWinList" Key F4 A M Iconify Key F5 A M Move Key F6 A M Resize #Key F7 A M CirculateUp #Key F8 A M CirculateDown #Key F9 A M Exec exec resetv2 #Key Super_L A N Popup "Utilities" #Key Super_R A N Popup "Window Ops" #Key Hyper_R A N WindowList #Page Up/Page Down keys are used to scroll by one desktop page # in any context, press page up/down + control # in root context, just pressing page up/down is OK # # I prefer the non-wrapping scroll. These are for example purposes only #Key Next A C Scroll 100000 0 #Key Next R N Scroll 100000 0 #Key Prior A C Scroll -100000 0 #Key Prior R N Scroll -100000 0 Key W RWTSFI M Close AddToFunc "AltTabRaise" "I" FlipFocus $w + "I" Raise $w Key Tab RWTSFI M Next (!Sticky CurrentDesk CurrentPage !Iconic !wmWeather !XMMS !"XMMS Playlist" !Licq* !xclock !Misc) AltTabRaise ############################################################################ ############################################################################ #Definitions used by the modules ###################### GoodStuff button-bar ################################ # Colors *FvwmButtonsFore Black *FvwmButtonsBack #908090 # Font *FvwmButtonsFont -adobe-helvetica-bold-r-*-*-10-*-*-*-*-*-*-* # Geometry - really likes to pick its own size, but giving a position is OK *FvwmButtonsGeometry -1-90 # Layout: specify rows or columns, not both *FvwmButtonsColumns 1 # Define the buttons to use..... *FvwmButtons Kill rbomb.xpm Destroy # xterm or rxvts on remote machines can be done like this # Output re-direction is csh style, not sh style # You will want to substitute your own hosts here! #*GoodStuff Dopey rterm.xpm Exec exec "dopey" rsh dopey "exec xterm -T dopey -display $HOSTDISPLAY </dev/null >/dev/null " #*GoodStuff Grumpy rterm.xpm Exec exec "grumpy" rsh grumpy "exec xterm -T grumpy -display $HOSTDISPLAY </dev/null >/dev/null " #*GoodStuff Snoopy rterm.xpm Exec exec "snoopy" rsh snoopy "exec xterm -T snoopy -display $HOSTDISPLAY </dev/null >/dev/null " #*GoodStuff Xcalc rcalc.xpm Exec exec "Calculator" xcalc #*GoodStuff mail mail2.xpm Exec exec "xmh" xmh #*GoodStuff Paging clamp.xpm TogglePage #*GoodStuff xclock clock.xpm Swallow "xclock" xclock -bg \#908090 -geometry -1500-1500 -padding 0 ######################### No Clutter ######################################## # I only wrote NoClutter as a simple test case, but maybe some big sites like # universities really have usage problems (too many open windows).... # Time delays are in seconds. *FvwmNoClutter 3600 Iconify 1 *FvwmNoClutter 86400 Delete *FvwmNoCLutter 172800 Destroy ########################## 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 *FvwmPagerGeometry 180x115+0+0 *FvwmPagerLabel 0 Misc #*FvwmPagerLabel 1 FrameMaker #*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 #### Additions - npc OpaqueMoveSize 10 Style "*" SloppyFocus #Set the foreground, background and stipple color and font for menus MenuStyle Black grey SlateGrey -adobe-helvetica-medium-r-*-*-14-*-*-*-*-*-*-* fvwm
############################################################################# # Stuff to do at start-up AddToFunc "InitFunction" "I" Exec exec xsetroot -solid black + "I" Module FvwmPager 0 0 # Top Middle + "I" GotoPage 1 0 + "I" Exec exec color_xterm -geometry 80x24-0+0 + "I" Wait color_xterm + "I" Exec exec color_xterm -fn 9x15 -geometry 80x28+0+120 -T '@Bowl' -n '@Bowl' -e ssh -C bowl.fysh.org + "I" Wait color_xterm + "I" Exec exec color_xterm -fn 9x15 -geometry 80x28+0-0 -T '@Bowl' -n '@Bowl' -e ssh -C bowl.fysh.org + "I" Wait color_xterm #+ "I" Exec exec color_xterm -fn 7x13 -geometry 80x24-0-0 -T '[EMAIL PROTECTED]' -n '[EMAIL PROTECTED]' -e ssh -C -t bowl.fysh.org /home/athan/bin/rootsh #+ "I" Wait color_xterm # Top Right + "I" GotoPage 2 0 ## Bottom Left + "I" GotoPage 0 1 + "I" Exec exec color_xterm -fn 9x15 -geometry 141x24+0+120 -T 'Games' -n 'Games' + "I" Wait color_xterm + "I" Exec exec color_xterm -fn 9x15 -geometry 80x24+0-0 -T 'Games' -n 'Games' + "I" Wait color_xterm ## Bottom Middle + "I" GotoPage 1 1 #+ "I" Exec exec netscape + "I" Exec exec color_xterm -fn 7x13 -geometry 80x24-0+0 \#-50+0 + "I" Wait color_xterm #+ "I" Wait Netscape ## Bottom Right #+ "I" GotoPage 2 1 #+ "I" Exec exec color_xterm -fn 9x15 -fb 9x15B -geometry 80x24+0+115 -T jim -n jim -e ssh jim #+ "I" Wait color_xterm #+ "I" Exec exec color_xterm -fn 9x15 -fb 9x15B -geometry 80x24+0-0 -T jim -n jim -e ssh jim #+ "I" Wait color_xterm #+ "I" Exec exec color_xterm -fn 9x15 -fb 9x15B -geometry 80x24 -geometry 80x24-0-0 -T jim -n jim -e ssh jim #+ "I" Wait color_xterm ## Top Left + "I" GotoPage 0 0 + "I" Exec exec color_xterm -fn 9x15 -fb 9x15B +vb -geometry 80x28+0+120 \#+372+0 -T jim -n jim -e ssh jim + "I" Wait color_xterm + "I" Exec exec color_xterm -fn 9x15 -fb 9x15B +vb -geometry 80x28+0-0 \#+442+0 -T jim -n jim -e ssh jim + "I" Wait color_xterm + "I" Exec exec color_xterm -fn 7x13 -fb 7x13B +vb -geometry 78x72-0-0 -T jim -n jim -e ssh jim + "I" Wait color_xterm + "I" Exec exec color_xterm -geometry 80x24+150+350 \#-60+0 -iconic #+ "I" Exec exec color_xterm -geometry 80x24-0-0 + "I" Exec exec color_xterm -geometry 80x24+50+160 \#+265+0 -T 'root' -n 'root' -e su - + "I" Exec exec color_xterm -geometry 80x24+50+600 \#+350+0 -T 'rootJIM' -n 'rootJIM' -e ssh -t jim rootsh #+ "I" Exec exec xbiff -geometry +135+0 + "I" Exec exec wmWeather -station EGBE -metric -W -delay 5 -geometry +183+0 + "I" Exec exec xclock -geometry 180x30+250+0 -digital -padding 5 -update 1 -fn 7x13bold #+ "I" Exec exec xscreensaver + "I" Exec exec unclutter # 385/435 #+ "I" Exec exec xmoontool -c -geometry +50+50 \#+525+0 -iconic #+ "I" Exec exec licq \#+550+0 + "I" Exec exec xmms + "I" Exec exec fvwm2 -f $HOME/.fvwm2rc-screen1 ############################################################################
############################################################################# # Stuff to do at start-up AddToFunc "InitFunction" "I" Exec exec xsetroot -solid black + "I" Module FvwmPager 0 0 ############################################################################
pgpJ5roQrrKaS.pgp
Description: PGP signature
