LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-27-2007, 04:08 AM   #1
dhruba.bandopadhyay
LQ Newbie
 
Registered: Jun 2006
Posts: 6

Rep: Reputation: 0
QUERY: how to install/setup FVWM2/Motif


Back in 1999/2000 my university switched from using TWM to FVWM2. I didn't like TWM but I loved FVWM2, even more than Afterstep, Window Maker, Gnome & KDE. The thing I love about FVWM2 was it's Motif look-and-feel.

I remember Red Hat 5.2 (one of the best oldskool distros) default wm was FVWM2. Nowadays I can't find a distro that ships with FVWM2. Does anyone know if there's a distro that still uses FVWM2? Currently I use Fedora Core 4.1. Is it possible to install FVWM2 on any distro without breaking it? Also I had a look at the latest FVWM2 and doesn't look Motif anymore. Does anyone know whether it's still possible to get FVWM2 back to Motif look-and-feel aswell as installing it on latest distros/livecds?
 
Old 04-27-2007, 07:29 AM   #2
Okie
Senior Member
 
Registered: Mar 2002
Location: Oklahoma
Posts: 1,154

Rep: Reputation: 187Reputation: 187
Slackware still includes fvwm2 (i am using it right now) i suggest you use Lesstif instead of motif...

while most fvwm2 users like to customize their system with themes and icons & such i personally decided to go the other direction and make fvwm2 as minimal as possible while keeping features & a menu that is quite usable, my fvwmrc file is small enough i will post it...

Code:
EdgeResistance 100 10
EdgeScroll 100 100
ClickTime 750

DeskTopSize 2x2
MenuStyle * fvwm, Foreground White, Background DarkGreen
MenuStyle * Font -adobe-helvetica-medium-r-*-*-18-*-*-*-*-*-*-*

ColormapFocus FollowsMouse

# default Styles:
# make sure these fonts exist on your system:
Style *           Font -adobe-helvetica-medium-r-*-*-12-*-*-*-*-*-*-*
Style *           IconFont -adobe-helvetica-medium-r-*-*-12-*-*-*-*-*-*-*
Style *           HilightFore White, HilightBack DarkGreen
Style *           BorderWidth 4, HandleWidth 4
Style *           Icon Color lightgrey/dimgrey
Style *           MWMFunctions, MWMDecor, HintOverride
Style *           DecorateTransient, NoPPosition
Style *           FocusFollowsMouse
Style *           TileCascadePlacement
#Style FvwmTaskBar BorderWidth 2, HandleWidth 2, NoTitle

# Styles for various Fvwm modules:
Style Fvwm*       NoTitle,  Sticky, WindowListSkip

# 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 3 R       A       Menu MenuFvwmRoot Nop
Mouse 2 R       A       WindowList
Mouse 1 R       A       Menu MenuFvwmWindowOps Nop

#   for the title bar buttons:
Mouse 0  1      A       Menu MenuFvwmWindowOps Nop
Mouse 0  2      A       Menu MenuFvwmWindowOps Nop

#   for other parts of the window/borders/icons:
Mouse 1 F       A       FuncFvwmResizeOrRaise
Mouse 1 TS      A       FuncFvwmMoveOrRaise
Mouse 1 I       A       FuncFvwmMoveOrIconify
Mouse 2 I       A       Iconify
Mouse 2 FST     A       Menu MenuFvwmWindowOps2 Nop
Mouse 3 TSIF    A       RaiseLower

######################## Initialization Functions ############################
AddToFunc StartFunction
+ I Module FvwmAnimate
+ I Module FvwmPager 0 0

AddToFunc InitFunction
+ I exec xsetroot -mod 88 88 -fg DarkGreen -bg Black

######################## Menus ###################
DestroyMenu MenuFvwmRoot
AddToMenu MenuFvwmRoot  "Root Menu"             Title
+                       "&_ FileMan"           Exec exec rox
+                       "&_ Iconz!"            Exec exec rox --pinboard=PIN
+                       "&_ NEdit"             Exec exec nedit
+                       "&_ System"            Exec exec gkrellm
+                       "&_ Xterm"             Exec exec xterm -bg black -fg white -cr red
+                       ""              Nop
+                       "&_ Graphics"         Popup MenuFvwmGraphics
+                       "&_ Groovy"           Popup MenuFvwmGroovy
+                       "&_ Internet"         Popup MenufvwmInternet
+                       "&_ Utilities"        Popup MenuFvwmUtilities
+                       ""              Nop
+                       "&_ Config"   Popup MenuFvwmConfig
+                       ""              Nop
+                       "&_ Exit Fvwm" Popup MenuFvwmQuitVerify

DestroyMenu MenuFvwmGraphics
AddToMenu MenuFvwmgraphics     "_Graphics_" Title
+                       "&_ Colorz!"     Exec exec gcolor2
+                       "&_ Gimp"        Exec exec gimp
+                       "&_ GQView"      Exec exec gqview
+                       "&_ Paint"       Exec exec mtpaint
DestroyMenu MenuFvwmGroovy
AddToMenu MenuFvwmgroovy     "_Groovy_" Title
+                       "&_ Aumix"      Exec exec aumix
+                       "&_ MPlayer"    Exec exec gmplayer
+                       "&_ RipperX"    Exec exec ripperX
+                       "&_ XMMS"       Exec exec xmms
DestroyMenu MenuFvwmInternet
AddToMenu MenuFvwmInternet   "_Internet_" Title
+                       "&_ Email"             Exec exec thunderbird
+                       "&_ Firefox"           Exec exec firefox
+                       "&_ Mozilla"           Exec exec seamonkey
+                       "&_ Opera"             Exec exec opera
DestroyMenu MenuFvwmUtilities
AddToMenu MenuFvwmUtilities     "_Utilities_" Title
+                       "&_ Calculator" Exec exec xcalc -bg powderblue
+                       "&_ Calender"    Exec exec sunbird
+                       "&_ Clippy"     Exec exec xclipboard -bg powderblue
+                       "&_ OpenOffice" Exec exec soffice -writer
+                       "&_ xPDF"       Exec exec xpdf


DestroyMenu MenuFvwmConfig
AddToMenu MenuFvwmConfig      "Configuration" Title
+ "&_ Sloppy Focus"        FuncFvwmFocusPolicyChange SloppyFocus
+ "&_ Click To Focus"      FuncFvwmFocusPolicyChange ClickToFocus
+ "&_ Focus Follows Mouse" FuncFvwmFocusPolicyChange FocusFollowsMouse
+ "" 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
+ "&_ FullPaging & EdgeWrap" EdgeScroll 100000 100000
+ "" Nop
+ "&_ Animation"     Popup  MenuFvwmAnimate
+ "&_ RootCursor"    Module FvwmForm FvwmForm-RootCursor

# The window Ops menus exhibit a different HotKey style.
# There are 2 versions of the WindowOps Menu, meant to be bound to different
# things.  Here is the "common" part:
DestroyFunc FuncFvwmWindowCommon
AddToFunc FuncFvwmWindowCommon
+ I AddToMenu $0 &Move              Move
+ I AddToMenu $0 &Resize            Resize
+ I AddToMenu $0 ""                 Nop
+ I AddToMenu $0 (De)&Iconify       Iconify
+ I AddToMenu $0 (un)Stick          Stick
+ I AddToMenu $0 (Un)Ma&ximize      Maximize
+ I AddToMenu $0 ""                 Nop
# + I AddToMenu $0 &Delete            Delete
+ I AddToMenu $0 &Close             Close
+ I AddToMenu $0 ""                 Nop
+ I AddToMenu $0 Destroy            Destroy
+ I AddToMenu $0 ""                 Nop

# First windowops menu, bound to:
# mouse 2 on root
# Root menu
DestroyMenu MenuFvwmWindowOps
AddToMenu MenuFvwmWindowOps     "Window Ops"    Title
FuncFvwmWindowCommon MenuFvwmWindowOps
+ "Re&fresh Window" RefreshWindow

DestroyMenu MenuFvwmQuitVerify
AddToMenu MenuFvwmQuitVerify "Really Quit?" Title
+ ""                     Nop
+ "&_ Really Quit"      Quit
+ ""                     Nop
+ ""                     Nop
+ "&_ Restart"          Restart
+ ""                     Nop
+ ""                     Nop
+ "&_ ICEwm"            Restart icewm
+ "&_ KDE"              Restart startkde
+ "&_ MWM"              Restart mwm
+ "&_ OpenBox"          Restart openbox
+ "&_ TWM"              Restart twm
+ "&_ VTWM"             Restart vtwm

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

DestroyFunc FuncFvwmMailXmh
AddToFunc FuncFvwmMailXmh
+ I Next [$0] Iconify false
+ I Next [$0] Focus
+ I None [$0] Exec $0 $1

DestroyFunc FuncFvwmMoveOrRaise
AddToFunc FuncFvwmMoveOrRaise
+ I Raise
+ M Move
+ D Lower

DestroyFunc FuncFvwmMaximize
AddToFunc FuncFvwmMaximize
+ M Maximize   0 100
+ H Maximize   0 100
+ C Maximize   0  80
+ D Maximize 100 100

DestroyFunc FuncFvwmMoveOrIconify
AddToFunc FuncFvwmMoveOrIconify
+ I Raise
+ M Move
+ D Iconify

DestroyFunc FuncFvwmResizeOrRaise
AddToFunc FuncFvwmResizeOrRaise
+ I Raise
+ M Resize
+ D Lower

DestroyFunc FuncFvwmPrint
AddToFunc FuncFvwmPrint
+ I Raise
+ I Exec xdpr -id $w

DestroyFunc FuncFvwmPrintReverse
AddToFunc FuncFvwmPrintReverse
+ I Raise
+ I Exec xdpr 1/2 -h -rv -id $w

DestroyFunc FuncFvwmFocusPolicyChange
AddToFunc FuncFvwmFocusPolicyChange
+ I Style * $0
+ I Recapture

# Read config files for modules:
read ConfigFvwmPager
 
Old 04-27-2007, 07:33 AM   #3
samael26
Member
 
Registered: Oct 2004
Location: France, Provence
Distribution: Debian
Posts: 848

Rep: Reputation: 30
Debian does it. Version of fvwm is 2.5
 
Old 04-27-2007, 09:30 AM   #4
dhruba.bandopadhyay
LQ Newbie
 
Registered: Jun 2006
Posts: 6

Original Poster
Rep: Reputation: 0
Can I use this for Cygwin? Where to put?

Quote:
Originally Posted by Okie
Slackware still includes fvwm2 (i am using it right now) i suggest you use Lesstif instead of motif...

while most fvwm2 users like to customize their system with themes and icons & such i personally decided to go the other direction and make fvwm2 as minimal as possible while keeping features & a menu that is quite usable, my fvwmrc file is small enough i will post it...

Code:
EdgeResistance 100 10
EdgeScroll 100 100
ClickTime 750

DeskTopSize 2x2
MenuStyle * fvwm, Foreground White, Background DarkGreen
MenuStyle * Font -adobe-helvetica-medium-r-*-*-18-*-*-*-*-*-*-*

ColormapFocus FollowsMouse

# default Styles:
# make sure these fonts exist on your system:
Style *           Font -adobe-helvetica-medium-r-*-*-12-*-*-*-*-*-*-*
Style *           IconFont -adobe-helvetica-medium-r-*-*-12-*-*-*-*-*-*-*
Style *           HilightFore White, HilightBack DarkGreen
Style *           BorderWidth 4, HandleWidth 4
Style *           Icon Color lightgrey/dimgrey
Style *           MWMFunctions, MWMDecor, HintOverride
Style *           DecorateTransient, NoPPosition
Style *           FocusFollowsMouse
Style *           TileCascadePlacement
#Style FvwmTaskBar BorderWidth 2, HandleWidth 2, NoTitle

# Styles for various Fvwm modules:
Style Fvwm*       NoTitle,  Sticky, WindowListSkip

# 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 3 R       A       Menu MenuFvwmRoot Nop
Mouse 2 R       A       WindowList
Mouse 1 R       A       Menu MenuFvwmWindowOps Nop

#   for the title bar buttons:
Mouse 0  1      A       Menu MenuFvwmWindowOps Nop
Mouse 0  2      A       Menu MenuFvwmWindowOps Nop

#   for other parts of the window/borders/icons:
Mouse 1 F       A       FuncFvwmResizeOrRaise
Mouse 1 TS      A       FuncFvwmMoveOrRaise
Mouse 1 I       A       FuncFvwmMoveOrIconify
Mouse 2 I       A       Iconify
Mouse 2 FST     A       Menu MenuFvwmWindowOps2 Nop
Mouse 3 TSIF    A       RaiseLower

######################## Initialization Functions ############################
AddToFunc StartFunction
+ I Module FvwmAnimate
+ I Module FvwmPager 0 0

AddToFunc InitFunction
+ I exec xsetroot -mod 88 88 -fg DarkGreen -bg Black

######################## Menus ###################
DestroyMenu MenuFvwmRoot
AddToMenu MenuFvwmRoot  "Root Menu"             Title
+                       "&_ FileMan"           Exec exec rox
+                       "&_ Iconz!"            Exec exec rox --pinboard=PIN
+                       "&_ NEdit"             Exec exec nedit
+                       "&_ System"            Exec exec gkrellm
+                       "&_ Xterm"             Exec exec xterm -bg black -fg white -cr red
+                       ""              Nop
+                       "&_ Graphics"         Popup MenuFvwmGraphics
+                       "&_ Groovy"           Popup MenuFvwmGroovy
+                       "&_ Internet"         Popup MenufvwmInternet
+                       "&_ Utilities"        Popup MenuFvwmUtilities
+                       ""              Nop
+                       "&_ Config"   Popup MenuFvwmConfig
+                       ""              Nop
+                       "&_ Exit Fvwm" Popup MenuFvwmQuitVerify

DestroyMenu MenuFvwmGraphics
AddToMenu MenuFvwmgraphics     "_Graphics_" Title
+                       "&_ Colorz!"     Exec exec gcolor2
+                       "&_ Gimp"        Exec exec gimp
+                       "&_ GQView"      Exec exec gqview
+                       "&_ Paint"       Exec exec mtpaint
DestroyMenu MenuFvwmGroovy
AddToMenu MenuFvwmgroovy     "_Groovy_" Title
+                       "&_ Aumix"      Exec exec aumix
+                       "&_ MPlayer"    Exec exec gmplayer
+                       "&_ RipperX"    Exec exec ripperX
+                       "&_ XMMS"       Exec exec xmms
DestroyMenu MenuFvwmInternet
AddToMenu MenuFvwmInternet   "_Internet_" Title
+                       "&_ Email"             Exec exec thunderbird
+                       "&_ Firefox"           Exec exec firefox
+                       "&_ Mozilla"           Exec exec seamonkey
+                       "&_ Opera"             Exec exec opera
DestroyMenu MenuFvwmUtilities
AddToMenu MenuFvwmUtilities     "_Utilities_" Title
+                       "&_ Calculator" Exec exec xcalc -bg powderblue
+                       "&_ Calender"    Exec exec sunbird
+                       "&_ Clippy"     Exec exec xclipboard -bg powderblue
+                       "&_ OpenOffice" Exec exec soffice -writer
+                       "&_ xPDF"       Exec exec xpdf


DestroyMenu MenuFvwmConfig
AddToMenu MenuFvwmConfig      "Configuration" Title
+ "&_ Sloppy Focus"        FuncFvwmFocusPolicyChange SloppyFocus
+ "&_ Click To Focus"      FuncFvwmFocusPolicyChange ClickToFocus
+ "&_ Focus Follows Mouse" FuncFvwmFocusPolicyChange FocusFollowsMouse
+ "" 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
+ "&_ FullPaging & EdgeWrap" EdgeScroll 100000 100000
+ "" Nop
+ "&_ Animation"     Popup  MenuFvwmAnimate
+ "&_ RootCursor"    Module FvwmForm FvwmForm-RootCursor

# The window Ops menus exhibit a different HotKey style.
# There are 2 versions of the WindowOps Menu, meant to be bound to different
# things.  Here is the "common" part:
DestroyFunc FuncFvwmWindowCommon
AddToFunc FuncFvwmWindowCommon
+ I AddToMenu $0 &Move              Move
+ I AddToMenu $0 &Resize            Resize
+ I AddToMenu $0 ""                 Nop
+ I AddToMenu $0 (De)&Iconify       Iconify
+ I AddToMenu $0 (un)Stick          Stick
+ I AddToMenu $0 (Un)Ma&ximize      Maximize
+ I AddToMenu $0 ""                 Nop
# + I AddToMenu $0 &Delete            Delete
+ I AddToMenu $0 &Close             Close
+ I AddToMenu $0 ""                 Nop
+ I AddToMenu $0 Destroy            Destroy
+ I AddToMenu $0 ""                 Nop

# First windowops menu, bound to:
# mouse 2 on root
# Root menu
DestroyMenu MenuFvwmWindowOps
AddToMenu MenuFvwmWindowOps     "Window Ops"    Title
FuncFvwmWindowCommon MenuFvwmWindowOps
+ "Re&fresh Window" RefreshWindow

DestroyMenu MenuFvwmQuitVerify
AddToMenu MenuFvwmQuitVerify "Really Quit?" Title
+ ""                     Nop
+ "&_ Really Quit"      Quit
+ ""                     Nop
+ ""                     Nop
+ "&_ Restart"          Restart
+ ""                     Nop
+ ""                     Nop
+ "&_ ICEwm"            Restart icewm
+ "&_ KDE"              Restart startkde
+ "&_ MWM"              Restart mwm
+ "&_ OpenBox"          Restart openbox
+ "&_ TWM"              Restart twm
+ "&_ VTWM"             Restart vtwm

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

DestroyFunc FuncFvwmMailXmh
AddToFunc FuncFvwmMailXmh
+ I Next [$0] Iconify false
+ I Next [$0] Focus
+ I None [$0] Exec $0 $1

DestroyFunc FuncFvwmMoveOrRaise
AddToFunc FuncFvwmMoveOrRaise
+ I Raise
+ M Move
+ D Lower

DestroyFunc FuncFvwmMaximize
AddToFunc FuncFvwmMaximize
+ M Maximize   0 100
+ H Maximize   0 100
+ C Maximize   0  80
+ D Maximize 100 100

DestroyFunc FuncFvwmMoveOrIconify
AddToFunc FuncFvwmMoveOrIconify
+ I Raise
+ M Move
+ D Iconify

DestroyFunc FuncFvwmResizeOrRaise
AddToFunc FuncFvwmResizeOrRaise
+ I Raise
+ M Resize
+ D Lower

DestroyFunc FuncFvwmPrint
AddToFunc FuncFvwmPrint
+ I Raise
+ I Exec xdpr -id $w

DestroyFunc FuncFvwmPrintReverse
AddToFunc FuncFvwmPrintReverse
+ I Raise
+ I Exec xdpr 1/2 -h -rv -id $w

DestroyFunc FuncFvwmFocusPolicyChange
AddToFunc FuncFvwmFocusPolicyChange
+ I Style * $0
+ I Recapture

# Read config files for modules:
read ConfigFvwmPager
 
Old 04-27-2007, 09:43 AM   #5
Okie
Senior Member
 
Registered: Mar 2002
Location: Oklahoma
Posts: 1,154

Rep: Reputation: 187Reputation: 187
Quote:
Originally Posted by dhruba.bandopadhyay
Can I use this for Cygwin? Where to put?
i dont know if it works with Cygwin, as far as the .fvwm2fc just copy & paste it to a text file and name it .fvwm2rc and put it in your home directory or ~/.fvwm/.fvwm2rc
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
please help me install motif for opera heinenslin Fedora 2 05-22-2006 03:22 PM
Where should I install fvwm2 scc28y Linux - Newbie 1 03-15-2005 10:51 PM
which Azureus to install for MDK 10.1, GTK or Motif Razbad Linux - Software 5 02-19-2005 10:09 PM
Motif install error degraffenried13 Linux - General 0 01-26-2004 06:31 PM
Motif libXm.so.2 install error degraffenried13 Linux - General 0 01-25-2004 05:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:26 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration