Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#1 Le 12/04/2014, à 09:55

jpcorriou

un environnement de bureaux virtuels performant: fvwm

Bonjour,
Je suis enseignant scientifique et travaille avec de nombreuses fenêtres ouvertes simultanément et
consulte différents systèmes x-windows. Malgré tout ce que je peux voir (gnome, ubuntu, pour les plus courants),
je reste fidèle à fvwm2 que je trouve le plus performant malgré sa réputation de vieillot.
En particulier, je travaille avec 12 bureaux virtuels (3x4) et passe très rapidement de l'un à l'autre.
De plus, fvwm est très dépouillé et laisse l'utilisateur concentré sur son travail, ce qui augmente son efficacité.
Pour personnaliser ses applications, il suffit de modifier le code .fvwm2rc que je vous joins.

Mon code (pas optimisé, mais qui marche) doit être installé comme .fvwm2rc dans /home/utilisateur
(bien sûr, vous devrez avoir installé fvwm2 auparavant, par exemple avec synaptic).

# Pour avoir le clavier azerty
setxkbmap fr

##########################################################################
# FVWM - F? Virtual Window Manager, Version 2.x (fvwm) Configuration File
# Created April 1996
#
# Modified 31 mars 2011
##########################################################################
# PATH Setup
#
# Not normally needed; use configure to set defaults at compile time.
#
# IMPORTANT: if you decide to set a ModulePath, please note that modules
#            are normally installed into a version-dependent
#	     directory.  Be sure to update this file after installing
#	     a new version.
#
# Colon separated unix directory paths for Modules, and for images
# the following lines are extremely important for correct operation

##################### Tres, tres IMPORTANT #################
### a actualiser apres chaque nouvelle mise a jour du systeme
############################################################
# ModulePath /usr/X11R6/lib/X11/fvwm2/fvwm/2.5.10
ModulePath /usr/lib/fvwm/2.6.5
#ImagePath  /usr/include/X11/pixmaps
ImagePath  /usr/include/X11/bitmaps
# ImagePath  /usr/include/X11/pixmaps:/usr/local/include/X11/pixmaps
# IconPath  /usr/share/xclass/icons 
IconPath  /usr/share/fvwm 
############################################################################
# COLORS and FONTS
#
### On trouve les couleurs dans le fichier /usr/lib/X11/rgb/txt

# Set the fore and back border colors for the window that has focus
Style * HilightFore linen, HilightBack SteelBlue4

# Set fore/back border colors for all other windows
Style * Color linen/VioletRed4

# Set colors/font for pop-up menus
Menustyle * fvwm, Font -adobe-times-bold-r-*-*-14-*-*-*-*-*-*-*
MenuStyle * Foreground maroon, Background grey60, Greyed grey40
#Menustyle * fvwm, Font 7x13bold
#MenuStyle * Foreground black, Background grey, Greyed slategrey

# Set fonts to use on title bar and icon label
Style * Font            9x15
# Style * Font            -adobe-times-bold-r-*-*-18-*-*-*-*-*-*-*
Style * IconFont        9x15
# Style * IconFont        -adobe-helvetica-bold-r-*-*-10-*-*-*-*-*-*-*

############################################################################
# ICON Setup
#
# Auto Place Icons is a nice feature (Left Top Right Bottom)
Style * IconBox 0 0 100 500

# If you don't want icons for some or all windows (or all of them!)
# Style * NoIcon

# If you want ALL icons to follow you around the desktop (Sticky)
#Style * StickyIcon

############################################################################
# FOCUS Setup
#
# Does the window with focus control the colormap, or the one under the mouse
ColormapFocus FollowsFocus
# ColormapFocus FollowsMouse

# Uncomment this to force you to click in a window to give it focus
Style * ClickToFocus

# default: focus follows mouse
#Style * MouseFocus

# If you knock your mouse out of the xterm, it keeps focus while in root window
#Style "*term"		SloppyFocus

############################################################################
# MISC Setup
#
# click/release must occur in <n milliseconds to be a "click"
ClickTime 50

# if the window occupies less than n% of the screen, draw it opaque
#OpaqueMoveSize 5

# flip by whole pages on the edge of the screen, but delay for a half second
EdgeScroll 0 0
EdgeResistance 500 20

# MWM Emulation: Don't ignore hints for functions and transient decoration
Style * MWMFunctions, MWMDecor

# Changes the look of the "rubberband" you see when moving windows (0 - 255)
XORvalue 31

###########################################################################
# PAGER Setup
#
# set the desk top size in units of physical screen size (width x height)
DeskTopSize 4 3

############################################################################
# WINDOW Placement
#
# TileCascadePlacement makes new windows pop-up in blank regions of screen,
# if this fails, windows are placed randomly
Style * TileCascadePlacement

############################################################################
# STYLE Flag Setup
#
# (decorations and window options)
# Note: Order is important!! If compatible styles are set, styles are ORed
# together. If conflicting styles are set, the last one specified is used.

# change the default width, set a global icon, and give borders to popups
Style * BorderWidth 7, HandleWidth 7, Icon x.xpm, DecorateTransient

Style "Fvwm*"		NoTitle, Sticky, WindowListSkip
Style "*lock"		NoTitle, Sticky, WindowListSkip
Style "xbiff"		NoTitle, Sticky, WindowListSkip
Style "xload"		NoTitle, Sticky, WindowListSkip, ClickToFocus
Style "xsession"	NoTitle, Sticky, WindowListSkip, ClickToFocus
Style "xconsole"	NoTitle, Sticky, WindowListSkip, ClickToFocus
Style "xfsm"		NoTitle, Sticky, WindowListSkip, ClickToFocus
Style "xdaliclock"	NoTitle, Sticky, WindowListSkip, ClickToFocus
Style "FvwmButtons"	ClickToFocus

Style "xemacs"          Icon emacs.xpm
Style "ddd"             Icon xdbx.xpm
Style "xv"              Icon XV.xpm
Style "rxvt"            Icon NeXTterm4.xpm
Style "netscape"        Icon netscape3.xpm
Style "*term"		Icon NeXTterm2.xpm
Style "ezppp"           Icon PhoneTTOffhook.xpm
Style "xmcd"            Icon DiskCD.xpm
Style "uc"              Icon NeXTterm.xpm

Style "xcalc"		Icon xcalc.xpm
Style "xman"		Icon xman.xpm
Style "emacs"		NoPPosition
Style "Mosaic"		NoPPosition

#############################################################################
# START-UP Functions
#
AddToFunc "StartFunction" I Module FvwmButtons
+                           I Module FvwmTaskBar
#+		I Module FvwmPager 0 0
#+		I Module FvwmAudio
+		I Next (AcceptsFocus !iconic CurrentScreen xterm) Focus
+		I CursorMove 30 40

# Uncomment this to make windows auto-raise after [x] milliseconds
# AddToFunc "StartFunction" I Module FvwmAuto 0

############################################################################
# BUTTON Setup
#

## Buttons actually being used (duplicated below)
# small up triangle
ButtonStyle 2 4 50x35@1 65x65@0 35x65@0 50x35@1
# small down triangle
ButtonStyle 4 4 50x65@1 35x35@1 65x35@1 50x65@0
# Stylized X
ButtonStyle 3 16 20x20@1 30x20@1 50x40@1 70x20@1 80x20@1 80x30@0 60x50@0 80x80@0 70x80@0 50x60@0 30x80@0 20x80@0 20x70@0 40x50@1 20x30@0 20x20@1

##############################################################################
# MENU Setup
#

# This defines the most common window operations
AddToMenu Window-Ops    "Window Ops"    Title
+                       "Move"          Move-or-Raise2
+                       "Resize"        Resize-or-Raise2
+                       "Raise"         Raise
+                       "Lower"         Lower
+                       "(De)Iconify"   Iconify
+                       "(Un)Stick"     Stick
+                       "(Un)Maximize"  maximize_func
+                       ""              Nop
+                       "Delete"        Delete
+                       "Close"         Close
+                       "Destroy"       Destroy
+                       ""              Nop
+                       "Refresh Screen" Refresh

# A trimmed down version of "Window Ops", good for binding to decorations
AddToMenu Window-Ops2   "Move"          Move-or-Raise
+                       "Resize"        Resize-or-Raise
+                       "Raise/Lower"   RaiseLower
+                       "Iconify"       Iconify
+                       "(Un)Stick"     Stick
+                       ""              Nop
+                       "Delete"        Delete
+                       "Close"         Close
+                       "Destroy"       Destroy
+                       ""              Nop
+                       "ScrollBar"     Module FvwmScroll 2 2
+                       "Print"         PrintFunction

AddToMenu FvwmCommands	"Fvwm Commands" Title
+	                "Restart Fvwm"  Restart
+			"Fvwm Setup"	Popup FvwmSetup
+ 			"Fvwm Modules"  Popup FvwmModules
+	                "" Nop
+ 			"Exit Fvwm"     Quit

AddToMenu FvwmSetup	"Fvwm Setup" Title
+			"Change Scrolling"	Popup FvwmScroll

AddToMenu FvwmScroll	"Change Scroll Behavior" Title
+			"OFF"   EdgeScroll 0 0
+			"ON"    EdgeScroll 100 100
+			"Horizontal Only"       EdgeScroll 100 0
+			"Vertical Only"         EdgeScroll 0 100
+			"Partial"               EdgeScroll 50 50

AddToMenu FvwmModules	"Fvwm Modules" Title
+                       "Animate"       Module  FvwmAnimate
+                       "Audio"         Module  FvwmAudio
+                       "Auto"          Module  FvwmAuto
+                       "Background"    Module  FvwmBacker
+                       "Banner"        Module  FvwmBanner
+                       "Button-Bar"    Module  FvwmButtons
+                       "Cascade"       Module  FvwmCascade
+                       "Cpp"           Module  FvwmCpp
+                       "Event"         Module  FvwmEvent
+                       "Form"          Module  FvwmForm
+                       "IconBox"       Module  FvwmIconBox
+                       "IconMan"       Module  FvwmIconMan
+                       "Identify"      Module  FvwmIdent
+                       "M4"            Module  FvwmM4
+                       "Pager"         Module  FvwmPager 0 0
+                       "Rearrange"     Module  FvwmRearrange
+                       "Save"          Module  FvwmSave
+                       "SaveDesk"      Module  FvwmSaveDesk
+                       "Save"          Module  FvwmSave
+                       "Scroll"        Module  FvwmScroll
+                       "Talk"          Module  FvwmTalk
+                       "Tile"          Module  FvwmTile
+                       "WinList"       Module  FvwmWinList
+			""		Nop
#+                       "Clean-Up"     Module  FvwmClean
+                       "Debug"         Module  FvwmDebug
#+                       "Prompt"        Module  FvwmPrompt "hello" raise

AddToMenu RootMenu "Root Menu"  Title
+               ""              Nop
+               ""              Nop
+		"" 		Nop
+               "Xterm        %mini-term.xpm%"         Popup Xterm
+               "Editors        %mini-edit.xpm%"       Popup Editors
+		"Latex      %mini-modules.xpm%"	Popup Latex
+		"Applications      %mini-modules.xpm%"	Popup Applications
+		"Network      %mini-nscape.xpm%"	Popup Network
+		"File Managers        %mini-filemgr.xpm%"	Popup FileMan
+               "Bourse        %mini-edit.xpm%"       Popup Bourse
+		"Utilities      %mini-calc.xpm%"	Popup Utilities
+               "Graphics        %mini-graph.xpm%"      Popup Graphics
+               "Modules         %mini-modules.xpm%"		Popup Module-Popup
+		"" 		Nop
+               ""              Nop
+               "Lockscreen      %mini-lock.xpm%"   Popup Lockscreen
+		"" 		Nop
+               ""              Nop
+               "Man Pages     %mini-book1.xpm%"     exec xman &
+		"Fvwm Commands        %mini-stop.xpm%"	Popup FvwmCommands
+		"" 		Nop
+               ""              Nop
+		"" 		Nop
+               ""              Nop
+		"" 		Nop
+               ""              Nop
+		"kill        %mini-bomb.xpm%"	        destroy  

AddToMenu Xterm 	"Xterm" Title                                          
+ "Small Xterm	(8x13 font)%mini-term.xpm%" 	Exec xterm -sb -sl 500 -j -ls -fn 8x13 -title "Small xterm" &
+ ""					    	Nop
+ "Mean Xterm	(9x15 font)%mini-term.xpm%" 	Exec xterm -sb -sl 500 -j -ls -fn 9x15 -title "Mean xterm" &
+ ""					    	Nop
+ "Normal Xterm	(8x14 font)%mini-term.xpm%" 	Exec xterm -sb -sl 500 -j -ls -fn 8x14 -title "Normal xterm" &
+ ""					    	Nop
+ "Xterm	(7x14 font)%mini-term.xpm%"	Exec xterm -sb -sl 500 -j -ls -fn 7x14 &
+ "Color Rxvt	(VT100)%mini-term.xpm%"		Exec rxvt -font 7x14 -ls &
+ "Color Xterm	(7x14 font)%mini-term.xpm%" 	Exec xterm -sb -sl 500 -j -ls -fn 7x14 -fb 7x14bold -title "Color xterm" &
+ ""					    	Nop
+ "Large Xterm	(10x20 font)%mini-term.xpm%" 	Exec xterm -sb -sl 500 -j -ls -fn 10x20 &
+ "Large Rxvt	(10x20 font)%mini-term.xpm%" 	Exec rxvt -font 10x20 -ls &
+ "Large Color Xterm	(10x20 font)%mini-term.xpm%" Exec xterm -sb -sl 500 -j -ls -fn 10x20 &


AddToMenu Applications 	"Applications" Title
+                       ""           Nop
+                       ""           Nop
+	                "Ghostview"	Exec gv &
+	                "Scilab"	Exec scilab & 
+	                "Matlab"	Exec /usr/local/matlab5/bin/matlab &
#+	                "Octave"	Exec  "xterm -e octave" &
+	                "Octave"	Exec  qtoctave &
+	                "Maple"	Exec xmaple &


AddToMenu Latex 	"Latex" Title
+                       ""           Nop
+                       ""           Nop
+	                "Ghostview"	Exec gv &
+	                "Acrobat Reader"	Exec acroread &
+	                "TexMaker"	Exec texmaker &
+	                "Kile"	Exec kile &
+	                "Evince"	Exec evince &


AddToMenu Utilities 	"Utilities" Title
+                       ""           Nop
+                       ""           Nop
#+	                "Agenda" Exec exec plan &
+	                "Calculator" Exec exec xcalc &
#+	                "xpdf" Exec exec xpdf &
+	                "Acrobat" Exec exec acroread &
+	                "Graver CD" Exec exec gnomebaker &
#+	                "xclipboard" Exec exec xclipboard &

AddToMenu Bourse 	"Utilities" Title
+                       ""           Nop
+                       ""           Nop
+	                "EclipseTrader" Exec exec trader &

AddToMenu Network 	"Network" Title
+                       ""           Nop
+                       ""           Nop
+	                "SeaMonkey"       exec seamonkey &
+	                "Firefox"       exec firefox &
+	                "Chromium Browser"       exec chromium-browser &
+	                "Thunderbird"       exec thunderbird &
#+	                "Mozilla"       exec mozilla &
+	                "FileZilla" exec filezilla &
+	                "FileRunner" exec fr &
#+	                "Archie" exec xarchie &
+                       ""           Nop
+                       ""           Nop


AddToMenu Editors	"Editors" Title
+                       ""           Nop
+                       ""           Nop
#+                       "Textedit"   exec /usr/openwin/bin/textedit &
+                       "Gedit"   exec gedit &
#+                       "TexMaker"   exec texmaker &
+                       "Emacs"   exec xemacs &
+                       "Open-Office"   exec soffice &
#+                       "xedit"   exec xedit &
+	                "Kwrite" exec kwrite &
+	                "Acrobat" Exec exec acroread &
#+	                "Amaya (html)" Exec exec amaya &
+	                "Bluegriffon (html)" Exec exec bluegriffon &
+	                "SeaMonkey (html)" Exec exec seamonkey &
+	                "Scribus (publisher)" Exec exec scribus &
#+	                "xcoral" Exec exec xcoral &


AddToMenu FileMan	"FileManagers" Title
+                       ""             Nop
+                       ""             Nop
+	                "File Manager" exec pcmanfm &
+	                "Bloc notes" exec xpad &
#+                       "xfilemanager" exec xfilemanager &
#+	                "tkdesk" exec tkdesk &


AddToMenu Graphics	"Graphics"     Title
+                       ""             Nop
+                       ""             Nop
+                       "xfig"         exec xfig &
+                       "Picasa"         exec picasa &
+                       "F-Spot"         exec f-spot &
+                       "Shotwell"         exec shotwell &
+                       ""             Nop
+                       ""             Nop
+	                "xpaint"       exec xpaint &
+                       "xgrab"        exec xgrab &
+	                "xv"           exec xv &
+	                "gimp"         exec gimp &
+	                "ImageMagick"         exec imagemagick &

#
# Provides a list of modules to fire off
#
AddToMenu "Module-Popup" "Modules" Title
+ "Buttons"				Module FvwmButtons
+ "Clean-Up%mini-pencil.xpm%"		Module FvwmClean
+ "Configure%mini-hammer.xpm%"		Module FvwmConfig
+ "Debug%mini-bug2.xpm%"		Module FvwmDebug
+ "Identify%mini-question.xpm%"		Module FvwmIdent
+ "Pager"				Module FvwmPager 0 3
+ "Save Desktop"			Module FvwmSave
+ "Talk"				Module FvwmTalk
+ "Task bar%mini-exp.xpm%" 		Module FvwmTaskBar
+ "Window List%mini-windows.xpm%"	Module FvwmWinList

AddToMenu FvwmCommands	"Fvwm Commands" Title
+	                "Restart Fvwm2" Restart fvwm2
+			"Fvwm Setup"	Popup FvwmSetup
+ 			"Fvwm Modules"  Popup FvwmModules
+	                ""              Nop
+                       ""              Nop
+                       ""              Nop
+ 			"Exit Fvwm"     Quit


AddToMenu Lockscreen 	"Lockscreen" Title
+                       ""           Nop
+                       ""           Nop
+ "Lock Screen (a-h)%mini-lock.xpm%"	Popup Screenlock1
+ "Lock Screen (i-z)%mini-lock.xpm%"	Popup Screenlock2
+ 			"XScreenSaver" 	Popup XScreensaver
+                       ""           Nop
+                       ""           Nop

AddToMenu Screenlock1 "Lockscreen (a-k)" Title
+ "Ant%mini-rball.xpm%"         Exec xlock -nice 0 -mode ant &
+ "Bat%mini-rball.xpm%"         Exec xlock -nice 0 -mode bat &
+ "Blank%mini-rball.xpm%"       Exec xlock -nice 0 -mode blank &
+ "Blot%mini-rball.xpm%"        Exec xlock -nice 0 -mode blot &
+ "Bouboule%mini-rball.xpm%"    Exec xlock -nice 0 -mode bouboule &
+ "Bob%mini-rball.xpm%"         Exec xlock -nice 0 -mode image &
+ "Bounce%mini-rball.xpm%"      Exec xlock -nice 0 -mode bounce &
+ "Braid%mini-rball.xpm%"       Exec xlock -nice 0 -mode braid &
+ "Bug%mini-rball.xpm%"         Exec xlock -nice 0 -mode bug &
+ "Clock%mini-rball.xpm%"       Exec xlock -nice 0 -mode clock &
+ "Daisy%mini-rball.xpm%"       Exec xlock -nice 0 -mode daisy &
+ "Demon%mini-rball.xpm%"       Exec xlock -nice 0 -mode demon &
+ "Eyes%mini-rball.xpm%"        Exec xlock -nice 0 -mode eyes &
+ "Flag%mini-rball.xpm%"        Exec xlock -nice 0 -mode flag &
+ "Flame%mini-rball.xpm%"       Exec xlock -nice 0 -mode flame &
+ "Forest%mini-rball.xpm%"      Exec xlock -nice 0 -mode forest &
+ "Galaxy%mini-rball.xpm%"      Exec xlock -nice 0 -mode galaxy &
+ "Geometry%mini-rball.xpm%"    Exec xlock -nice 0 -mode geometry &
+ "Grav%mini-rball.xpm%"        Exec xlock -nice 0 -mode grav &
+ "Helix%mini-rball.xpm%"       Exec xlock -nice 0 -mode helix &
+ "Hop%mini-rball.xpm%"         Exec xlock -nice 0 -mode hop   &
+ "Hyper%mini-rball.xpm%"       Exec xlock -nice 0 -mode hyper &
+ "Kaleid%mini-rball.xpm%"      Exec xlock -nice 0 -mode kaleid &

AddToMenu Screenlock2 "Lock Screen (l-z)" Title
+ "Laser%mini-rball.xpm%"       Exec xlock -nice 0 -mode laser &
+ "Life%mini-rball.xpm%"        Exec xlock -nice 0 -mode life   &
+ "Life1d%mini-rball.xpm%"      Exec xlock -nice 0 -mode life1d &
+ "Life3d%mini-rball.xpm%"      Exec xlock -nice 0 -mode life3d &
+ "Lightning%mini-rball.xpm%"   Exec xlock -nice 0 -mode lightning &
+ "Lissie%mini-rball.xpm%"      Exec xlock -nice 0 -mode lissie &
+ "Marquee%mini-rball.xpm%"     Exec xlock -nice 0 -mode marquee &
+ "Maze%mini-rball.xpm%"        Exec xlock -nice 0 -mode maze &
+ "Mountain%mini-rball.xpm%"    Exec xlock -nice 0 -mode mountain &
+ "Nose%mini-rball.xpm%"        Exec xlock -nice 0 -mode nose &
+ "Penrose%mini-rball.xpm%"     Exec xlock -nice 0 -mode penrose &
+ "Petal%mini-rball.xpm%"       Exec xlock -nice 0 -mode petal &
+ "Puzzle%mini-rball.xpm%"      Exec xlock -nice 0 -mode puzzle &
+ "Pyro%mini-rball.xpm%"        Exec xlock -nice 0 -mode pyro &
+ "Qix%mini-rball.xpm%"         Exec xlock -nice 0 -mode qix &
+ "Random%mini-rball.xpm%"      Exec xlock -nice 0 -mode random &
+ "Rock%mini-rball.xpm%"        Exec xlock -nice 0 -mode rock &
+ "Rotor%mini-rball.xpm%"       Exec xlock -nice 0 -mode rotor &
+ "Shape%mini-rball.xpm%"       Exec xlock -nice 0 -mode shape &
+ "Slip%mini-rball.xpm%"        Exec xlock -nice 0 -mode slip &
+ "Sphere%mini-rball.xpm%"      Exec xlock -nice 0 -mode sphere &
+ "Spiral%mini-rball.xpm%"      Exec xlock -nice 0 -mode spiral &
+ "Spline%mini-rball.xpm%"      Exec xlock -nice 0 -mode spline &
+ "Swarm%mini-rball.xpm%"       Exec xlock -nice 0 -mode swarm &
+ "Swirl%mini-rball.xpm%"       Exec xlock -nice 0 -mode swirl &
+ "Tri%mini-rball.xpm%"         Exec xlock -nice 0 -mode tri &
+ "Triangle%mini-rball.xpm%"    Exec xlock -nice 0 -mode triangle &
+ "Wator%mini-rball.xpm%"       Exec xlock -nice 0 -mode wator &
+ "Wire%mini-rball.xpm%"        Exec xlock -nice 0 -mode wire &
+ "World%mini-rball.xpm%"       Exec xlock -nice 0 -mode world &
+ "Worm%mini-rball.xpm%"        Exec xlock -nice 0 -mode worm &

############## Pour relancer le screensaver apres arret de l'ordinateur
############## faire Reinitialize dans le menu de screensaver
########################################################################

AddToMenu XScreensaver 	"XScreenSaver" 	Title
+			"Blank"		Exec xscreensaver-command -activate
+			"Lock" 		Exec xscreensaver-command -lock
+			"Demo"         	Exec xscreensaver-command -demo
+			"Preferences"  	Exec xscreensaver-command -prefs
+			"Reinitialize" 	Exec xscreensaver-command -restart
+			"Kill"         	Exec xscreensaver-command -exit
+			"Launch"       	Exec xscreensaver &

############################################################################
# COMPLEX FUNCTIONS
#
AddToFunc warp-or-run		I Next (AcceptsFocus CirculateHit $0) Iconify -1
+				I Next (AcceptsFocus CirculateHit $0) Focus
+				I None (AcceptsFocus CirculateHit $0) $1

AddToFunc MailFunction		I Next (AcceptsFocus $0) Iconify -1
+				I Next (AcceptsFocus $0) focus
+				I None (AcceptsFocus $0) Exec $0 $1

AddToFunc Move-or-Raise		I Raise
+				M Move
+				D WindowShade
#+				D Lower

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

AddToFunc Maximize-Func         C Maximize     0 100
+                               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 Iconify-and-Raise     I Iconify
+                               I Raise

############################################################################
# MOUSE Setup
#
# First, the root window. Button 1 brings up the Main Menu. B2 is the
# window operations list, and B3 is the winlist module
#     Button	Context Modifi 	Function
Mouse 1		R   	A       Menu RootMenu Nop
Mouse 2		R    	A       Menu Window-Ops Nop
Mouse 3		R    	A      	WindowList

# Now, title bar buttons
#     Button	Context Modifi 	Function
Mouse 0		1       A       Menu Window-Ops2 Close
Mouse 0         3       A       Destroy
Mouse 0		2    	A     	Delete 
Mouse 0		4    	A     	Maximize-Func 
Mouse 0		6       A       Iconify 

# Button 1 in Frame or Sides is a resize-or-raise, in Icons is a move or 
# de-iconify, and on Top does a move-or-raise
#     Button	Context Modifi 	Function
Mouse 1 	FS      A       Resize-or-Raise
Mouse 1		I       A       Move-or-Iconify
Mouse 1		T       A       Move-or-Raise

# Button 2 in an Icon is de-iconify, in Corners/Sides/Titlebar gets Ops Menu
#     Button	Context Modifi 	Function
Mouse 2 	I       A       Iconify
Mouse 2 	FST     A       Menu Window-Ops2 Nop

# Button 3 does a raise-lower on anything
Mouse 3 	TSIF    A       RaiseLower

############################################################################
# KEYBOARD Setup
#
# 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	MC	Popup "RootMenu"
Key F2		A	MC	Popup "Window-Ops"
Key F3		A	MC	Module FvwmWinList
Key F4		A	MC	Iconify
Key F5		A	MC	Move
Key F6		A	MC	Resize
Key F7		A	MC	Next (AcceptsFocus) focus
Key F8		A	MC	Prev (AcceptsFocus) focus

### General Keys
Key Delete	A	CM	Quit
Key Escape	A	CM	Restart
Key Escape      A       SCM     Exec xscreensaver-command -lock
Key Tab		WTSF	M	FlipFocus
Key S           A       SCM     Stick
Key Z           A       SCM     Iconify

# Pour avoir le clavier azerty
setxkbmap fr

############################################################################
# FvwmButtons
#
# Colors
*FvwmButtonsFore Black
*FvwmButtonsBack #908090

# Font
*FvwmButtonsFont	7x13

# Geometry-- really likes to pick its own size, but giving a position is OK
*FvwmButtonsGeometry -0+0

# Layout: specify rows or columns, not both
*FvwmButtonsColumns 1
#*FvwmButtonsRows 1

# Define the buttons to use.....
#*FvwmButtons Move		arrows2.xpm	Move
#*FvwmButtons Kill		skull.xpm	Destroy
#*FvwmButtons Quit		nuke.xpm	Popup "Quit-Verify"

#*FvwmButtons (de)Iconify	eyenew.xpm	Iconify
#*FvwmButtons Restart eye2.xpm     Restart
#*FvwmButtons Xcalc   rcalc.xpm   Exec "Calculator" xcalc &
#*FvwmButtons junk   3dx.xpm     Swallow "xload"  xload -bg \#908090
#*FvwmButtons xmter x.xpm	     Swallow "xmter" xmter &
#*FvwmButtons ""  clock.xpm   Swallow "xclock" xclock -bg \#908090 -padding 0 &
#*FvwmButtons "" 3dx.xpm Swallow "Time 3D" t3d -fg \#908090 -mag .3 -wobber 0 &
*FvwmButtons(Swallow(Respawn NoHints) xclock \
	`Exec exec xclock -bg lightgoldenrodyellow -padding 0 -geometry +2000-0`)
*FvwmButtons(Title xterm, Icon term.xpm, \
             Action 'Exec "XTerm" xterm \
                -ls -sb -fn 8x13 -title "Color xterm" &')
*FvwmButtons(Title xemacs, Icon xemacs.xpm, \
             Action 'Exec "Xemacs" xemacs &')
#*FvwmButtons(Title gedit, Icon text.xpm, \
#             Action 'Exec "gedit" gedit &')
*FvwmButtons(Title Kwrite, Icon textedit.xpm, \
             Action 'Exec "kwrite" kwrite &')
#*FvwmButtons(2x1, Swallow(UseOld) "Desktop" 'FvwmPager 0 0')
*FvwmButtons(1x1, Swallow(UseOld) "pcodca01" 'FvwmPager 0 0')
*FvwmButtons(1x1, Title load, \
             Swallow(UseOld) "xload" 'Exec xload \
                     -nolabel -bg grey60 -update 5 -geometry -1500-1500 &')

############################################################################
# FvwmIdent
#
# Give us colors and a fonts
*FvwmIdentBack MidnightBlue
*FvwmIdentFore Yellow
*FvwmIdentFont -adobe-helvetica-medium-r-*-*-12-*-*-*-*-*-*-*

############################################################################
# FvwmPager
#
*FvwmPagerBack #5c54c0
*FvwmPagerFore black
#*FvwmPagerFont -adobe-helvetica-bold-r-*-*-10-*-*-*-*-*-*-*
*FvwmPagerHilight #6b64b0
*FvwmPagerGeometry -1+1
*FvwmPagerLabel 0 pcodca01

# Setting the font to 0x0 or nil2 results in no text
#*FvwmPagerSmallFont 0x0
#*FvwmPagerSmallFont 5x8
*FvwmPagerSmallFont 

############################################################################
# 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 +62+176

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

############################################################################
# FvwmIconBox
#
# NOTE: Icons will only be shown in module if Style "??" NoIcon is set
*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

############################################################################
# FvwmScrollBack
#
*FvwmScrollBack grey40
*FvwmScrollFore green

############################################################################
# FvwmForm
#
# 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

#------------------ FvwmTaskBar
Style "FvwmTaskBar" NoTitle,BorderWidth 4,HandleWidth 4,Sticky,StaysOnTop,WindowListSkip,CirculateSkip

*FvwmTaskBarGeometry +0-0
*FvwmTaskBarFore Black
*FvwmTaskBarBack #c0c0c0
*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
*FvwmTaskBarStartIcon mini-exp.xpm
*FvwmTaskBarShowTips
#*FvwmTaskBarShowTransients
#*FvwmTaskBarClockFormat %I:%M%p
#*FvwmTaskBarHighlightFocus
#*FvwmTaskBarAutoHide
#*FvwmTaskBarMailCommand Exec nxterm -T Mail -ls -fn 8x13 -e pine -i
*FvwmTaskBarMailCommand Exec xterm -T Mail -ls -fn 8x13 -e pine -i

# ------------------------------------------------
# available colors(from Latex)
  #\definecolor{snow}{rgb}{1.00,0.98,0.98}
  #\definecolor{ghostwhite}{rgb}{0.97,0.97,1.00}
  #\definecolor{whitesmoke}{rgb}{0.96,0.96,0.96}
  #\definecolor{gainsboro}{rgb}{0.86,0.86,0.86}
  #\definecolor{floralwhite}{rgb}{1.00,0.98,0.94}
  #\definecolor{oldlace}{rgb}{0.99,0.96,0.90}
  #\definecolor{linen}{rgb}{0.98,0.94,0.90}
  #\definecolor{antiquewhite}{rgb}{0.98,0.92,0.84}
  #\definecolor{papayawhip}{rgb}{1.00,0.94,0.84}
  #\definecolor{blanchedalmond}{rgb}{1.00,0.92,0.80}
  #\definecolor{bisque}{rgb}{1.00,0.89,0.77}
  #\definecolor{peachpuff}{rgb}{1.00,0.85,0.73}
  #\definecolor{navajowhite}{rgb}{1.00,0.87,0.68}
  #\definecolor{moccasin}{rgb}{1.00,0.89,0.71}
  #\definecolor{cornsilk}{rgb}{1.00,0.97,0.86}
  #\definecolor{ivory}{rgb}{1.00,1.00,0.94}
  #\definecolor{lemonchiffon}{rgb}{1.00,0.98,0.80}
  #\definecolor{seashell}{rgb}{1.00,0.96,0.93}
  #\definecolor{honeydew}{rgb}{0.94,1.00,0.94}
  #\definecolor{mintcream}{rgb}{0.96,1.00,0.98}
  #\definecolor{azure}{rgb}{0.94,1.00,1.00}
  #\definecolor{aliceblue}{rgb}{0.94,0.97,1.00}
  #\definecolor{lavender}{rgb}{0.90,0.90,0.98}
  #\definecolor{lavenderblush}{rgb}{1.00,0.94,0.96}
  #\definecolor{mistyrose}{rgb}{1.00,0.89,0.88}
  #\definecolor{white}{rgb}{1.00,1.00,1.00}
  #\definecolor{black}{rgb}{0.00,0.00,0.00}
  #\definecolor{midnightblue}{rgb}{0.10,0.10,0.44}
  #\definecolor{}{rgb}{0.00,0.00,0.50}
  #\definecolor{blue}{rgb}{0.00,0.00,0.50}
  #\definecolor{cornflowerblue}{rgb}{0.39,0.58,0.93}
  #\definecolor{darkslateblue}{rgb}{0.28,0.24,0.55}
  #\definecolor{slateblue}{rgb}{0.42,0.35,0.80}
  #\definecolor{mediumslateblue}{rgb}{0.48,0.41,0.93}
  #\definecolor{lightslateblue}{rgb}{0.52,0.44,1.00}
  #\definecolor{mediumblue}{rgb}{0.00,0.00,0.80}
  #\definecolor{royalblue}{rgb}{0.25,0.41,0.88}
  #\definecolor{blue}{rgb}{0.00,0.00,1.00}
  #\definecolor{dodgerblue}{rgb}{0.12,0.56,1.00}
  #\definecolor{deepskyblue}{rgb}{0.00,0.75,1.00}
  #\definecolor{skyblue}{rgb}{0.53,0.81,0.92}
  #\definecolor{lightskyblue}{rgb}{0.53,0.81,0.98}
  #\definecolor{steelblue}{rgb}{0.27,0.51,0.71}
  #\definecolor{lightsteelblue}{rgb}{0.69,0.77,0.87}
  #\definecolor{lightblue}{rgb}{0.68,0.85,0.90}
  #\definecolor{powderblue}{rgb}{0.69,0.88,0.90}
  #\definecolor{paleturquoise}{rgb}{0.69,0.93,0.93}
  #\definecolor{darkturquoise}{rgb}{0.00,0.81,0.82}
  #\definecolor{mediumturquoise}{rgb}{0.28,0.82,0.80}
  #\definecolor{turquoise}{rgb}{0.25,0.88,0.82}
  #\definecolor{cyan}{rgb}{0.00,1.00,1.00}
  #\definecolor{lightcyan}{rgb}{0.88,1.00,1.00}
  #\definecolor{cadetblue}{rgb}{0.37,0.62,0.63}
  #\definecolor{mediumaquamarine}{rgb}{0.40,0.80,0.67}
  #\definecolor{aquamarine}{rgb}{0.50,1.00,0.83}
  #\definecolor{darkgreen}{rgb}{0.00,0.39,0.00}
  #\definecolor{darkolivegreen}{rgb}{0.33,0.42,0.18}
  #\definecolor{darkseagreen}{rgb}{0.56,0.74,0.56}
  #\definecolor{seagreen}{rgb}{0.18,0.55,0.34}
  #\definecolor{mediumseagreen}{rgb}{0.24,0.70,0.44}
  #\definecolor{lightseagreen}{rgb}{0.13,0.70,0.67}
  #\definecolor{palegreen}{rgb}{0.60,0.98,0.60}
  #\definecolor{springgreen}{rgb}{0.00,1.00,0.50}
  #\definecolor{lawngreen}{rgb}{0.49,0.99,0.00}
  #\definecolor{green}{rgb}{0.00,1.00,0.00}
  #\definecolor{chartreuse}{rgb}{0.50,1.00,0.00}
  #\definecolor{mediumspringgreen}{rgb}{0.00,0.98,0.60}
  #\definecolor{greenyellow}{rgb}{0.68,1.00,0.18}
  #\definecolor{limegreen}{rgb}{0.20,0.80,0.20}
  #\definecolor{yellowgreen}{rgb}{0.60,0.80,0.20}
  #\definecolor{forestgreen}{rgb}{0.13,0.55,0.13}
  #\definecolor{olivedrab}{rgb}{0.42,0.56,0.14}
  #\definecolor{darkkhaki}{rgb}{0.74,0.72,0.42}
  #\definecolor{khaki}{rgb}{0.94,0.90,0.55}
  #\definecolor{palegoldenrod}{rgb}{0.93,0.91,0.67}
  #\definecolor{lightgoldenrodyellow}{rgb}{0.98,0.98,0.82}
  #\definecolor{lightyellow}{rgb}{1.00,1.00,0.88}
  #\definecolor{yellow}{rgb}{1.00,1.00,0.00}
  #\definecolor{gold}{rgb}{1.00,0.84,0.00}
  #\definecolor{lightgoldenrod}{rgb}{0.93,0.87,0.51}
  #\definecolor{goldenrod}{rgb}{0.85,0.65,0.13}
  #\definecolor{darkgoldenrod}{rgb}{0.72,0.53,0.04}
  #\definecolor{rosybrown}{rgb}{0.74,0.56,0.56}
  #\definecolor{indianred}{rgb}{0.80,0.36,0.36}
  #\definecolor{saddlebrown}{rgb}{0.55,0.27,0.07}
  #\definecolor{sienna}{rgb}{0.63,0.32,0.18}
  #\definecolor{peru}{rgb}{0.80,0.52,0.25}
  #\definecolor{burlywood}{rgb}{0.87,0.72,0.53}
  #\definecolor{beige}{rgb}{0.96,0.96,0.86}
  #\definecolor{wheat}{rgb}{0.96,0.87,0.70}
  #\definecolor{sandybrown}{rgb}{0.96,0.64,0.38}
  #\definecolor{tan}{rgb}{0.82,0.71,0.55}
  #\definecolor{chocolate}{rgb}{0.82,0.41,0.12}
  #\definecolor{firebrick}{rgb}{0.70,0.13,0.13}
  #\definecolor{brown}{rgb}{0.65,0.16,0.16}
  #\definecolor{darksalmon}{rgb}{0.91,0.59,0.48}
  #\definecolor{salmon}{rgb}{0.98,0.50,0.45}
  #\definecolor{lightsalmon}{rgb}{1.00,0.63,0.48}
  #\definecolor{orange}{rgb}{1.00,0.65,0.00}
  #\definecolor{darkorange}{rgb}{1.00,0.55,0.00}
  #\definecolor{coral}{rgb}{1.00,0.50,0.31}
  #\definecolor{lightcoral}{rgb}{0.94,0.50,0.50}
  #\definecolor{tomato}{rgb}{1.00,0.39,0.28}
  #\definecolor{orangered}{rgb}{1.00,0.27,0.00}
  #\definecolor{red}{rgb}{1.00,0.00,0.00}
  #\definecolor{hotpink}{rgb}{1.00,0.41,0.71}
  #\definecolor{deeppink}{rgb}{1.00,0.08,0.58}
  #\definecolor{pink}{rgb}{1.00,0.75,0.80}
  #\definecolor{lightpink}{rgb}{1.00,0.71,0.76}
  #\definecolor{palevioletred}{rgb}{0.86,0.44,0.58}
  #\definecolor{maroon}{rgb}{0.69,0.19,0.38}
  #\definecolor{mediumvioletred}{rgb}{0.78,0.08,0.52}
  #\definecolor{violetred}{rgb}{0.82,0.13,0.56}
  #\definecolor{magenta}{rgb}{1.00,0.00,1.00}
  #\definecolor{violet}{rgb}{0.93,0.51,0.93}
  #\definecolor{plum}{rgb}{0.87,0.63,0.87}
  #\definecolor{orchid}{rgb}{0.85,0.44,0.84}
  #\definecolor{mediumorchid}{rgb}{0.73,0.33,0.83}
  #\definecolor{darkorchid}{rgb}{0.60,0.20,0.80}
  #\definecolor{darkviolet}{rgb}{0.58,0.00,0.83}
  #\definecolor{blueviolet}{rgb}{0.54,0.17,0.89}
  #\definecolor{purple}{rgb}{0.63,0.13,0.94}
  #\definecolor{mediumpurple}{rgb}{0.58,0.44,0.86}
  #\definecolor{thistle}{rgb}{0.85,0.75,0.85}

merci de mettre le retour de vos commandes ou script entre des balises code c'est l'icone <> au dessus de la zone de texte voir l'exemple ci dessous
1369359175.gif

Dernière modification par ljere (Le 12/04/2014, à 13:18)

Hors ligne

#2 Le 12/04/2014, à 20:57

dazibao

Re : un environnement de bureaux virtuels performant: fvwm

As-tu déjà essayé Enlightenment (17-19) ? C'est un environnement très rapide, modulaire, et  dont l'interface se configure dans les moindres détails sans avoir a éditer des fichiers de config...

Il allie la souplesse et les performances de fvwm2 tout en offrant une expérience utilisateur moins « rustique ». Tu peux le « dépouiller » des fonctionnalités dont tu ne te sers pas, activer autant de bureaux virtuels que tu as besoin...


Enlightenment 19 git version on Ubuntu 14.04 LTS:
http://ubuntuforums.org/showthread.php?t=2203190

Hors ligne

#3 Le 12/04/2014, à 21:11

jpcorriou

Re : un environnement de bureaux virtuels performant: fvwm

Bonjour Dazibao,
Personne autour de moi n'utilise Enlightenment. Je vais regarder.
C'est vrai que si j'avais une version "modernisée" de fvwm,
cela me conviendrait bien.
Je trouve surprenant la conception de l'environnement Ubuntu,
c'est la mauvaise influence de Windows sans doute.
Merci beaucoup de cette info.

Hors ligne